@charset "utf-8";

@import url(https://fonts.googleapis.com/css?family=Josefin+Sans:400,600);
@import "normalize";
@import "font-awesome/font-awesome";
@import "select/default";

$header-height: 50px;

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: rgba(0, 0, 0, .9);
}

::-moz-selection {
  background: rgba(0, 0, 0, .9);
}

body,
html {
  width: 100%;
  height: 100%;
}

html {
  font-size: 16px;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: .05em;
}

.full-size {
  width: 100%;
  height: 100%;
}

.header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: $header-height;
  box-shadow: 0 0 6px rgba(0, 0, 0, .26);
}

.logo {
  float: left;
  margin: 0;
  padding: 0 1rem;
  font-size: 1.5rem;
  line-height: $header-height;
  letter-spacing: .05em;
}

.gnav {
  float: right;
  margin: 0;
  padding: 0;
  list-style: none;

  &__item {
    float: left;
    border-left: 1px solid #eaeaea;

    a, button {
      display: block;
      min-width: $header-height;
      padding: 0 1rem;
      background: #fff;
      border: none;
      color: #000;
      line-height: $header-height;
      cursor: pointer;
      text-decoration: none;
      transition: all .2s ease-out;

      &:focus {
        outline: none;
      }

      &:hover {
        background: #000;
        color: #fff;
      }
    }

    .Select {
      min-width: 150px;
    }
  }
}

.row {
  overflow: hidden;
  height: 100%;
  padding-top: $header-height;
}

.col {
  position: relative;
  float: left;
  width: 50%;
  height: 100%;
}

.color-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;

  &__item {
    position: relative;
    flex-grow: 1;
    margin: 0;

    .color {
      position: absolute;
    }

    &--add {
      $_height: 40px;
      flex-basis: $_height;
      text-align: center;
      cursor: pointer;
      background: #fff;
      line-height: $_height;
      transition: all .2s ease-out;

      &:hover {
        background: #000;
        color: #fff;
      }
    }
  }
}

.color {
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: .72rem;
  cursor: pointer;

  &--active {
    @extend .color;

    .color__inner,
    .color__bg {
      opacity: 1;
    }
  }

  &__inner,
  &__bg {
    opacity: .3;
  }

  &__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
  }

  &__label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
  }

  &__delete {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: block;
    width: 50px;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: all .25s ease-out;

    &:focus {
      outline: none;
    }

    &:hover {
      opacity: .5;
    }
  }

  &__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
  }
}

.main-color {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  &__label {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    transform: translate(-50%, -50%);
  }
}
