@import '~Breakpoints';
@import '~Colors';
@import '~FontSize';
@import '~Layout';

.wrapper {
  @include container();
  padding-top: 1rem;
  padding-bottom: 20rem;
  margin-top: -10rem;
  box-shadow: 0 0 2rem $gray;
}

.svg {
  display: none;
  @supports (display: flex) {
    display: block;
  }
  margin-top: 5rem;
  g g {
    fill: $gray;
    path {
      stroke: $gray;
      stroke-width: .05rem;
      stroke-linejoin: bevel;
      stroke-opacity: .8;
      transition: fill .5s ease;
    }

    &.available {
      cursor: pointer;
      fill: $gray-light;
      text {
        display: block;
      }
      &:hover, &:active, &:focus, &.active {
        fill: $brand-primary;
        text {
          fill: $gray-darkest;
        }
      }
    }

  }
  text {
    transition: fill .5s ease 0s;

    display: none;
    font-size: .4rem;
    letter-spacing: .05rem;
    font-weight: 100;
    fill: white;
    //pointer-events: none;
    text-shadow: .1rem .1rem .1rem $gray-darkest;
  }
}

.quotes {
  display: none;
  &.active {
    display: block;
  }
}

.quote {
  position: relative;
  padding-left: 10rem;

  &:before {
    font-weight: 100;
    content: '\201C';
    line-height: .666;
    @include fontSizer(15);
    color: $gray;
    position: absolute;
    left: 0;
    top: 0;
  }
  &:not(:last-of-type) {
    border-bottom: .1rem solid $gray-light;
  }
}

.name, .detail {
  color: $brand-primary;
}

.name {
  @include fontSizer(2);
  text-transform: uppercase;
  font-weight: 300;
}

.detail {
  @include fontSizer(1.6, 1.4);
  font-style: italic;
  font-weight: 100;
}

.fallbackList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.fallbackState {
  display: block;
  @supports (display: flex) {
    display: none;
  }
  cursor: pointer;
  background-color: white;
  transition: all ease .5s;
  line-height: 2;
  text-transform: uppercase;
  color: $gray;
  letter-spacing: .2rem;
  margin-top: 1.5rem;
  & + & {
    margin-left: 1.5rem;
  }
  border-radius: .5rem;
  border: .2rem solid $gray;
  &.active, &:hover, &:active, &:focus {
    background-color: $brand-primary;
    color: white;
  }
}

.dropdown {
  background-color: white;
  border: 0.2rem solid $gray;
  border-radius: .5rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  height: 4rem;
  width: 20rem;
  margin: 5rem auto 0;
  &:after {
    content: '';
    height: 1rem;
    width: 1rem;
    border: 0.2rem #737373;
    -webkit-transform: rotate(45deg) translateY(-50%);
    transform: rotate(45deg) translateY(-50%);
    border-bottom-style: solid;
    border-right-style: solid;
    position: absolute;
    right: 1.5rem;
    top: 40%;
    z-index: -1;
  }

  select {
    &, &:active, &:focus, &:hover {
      outline: none;
    }
    padding-left: 2rem;
    -webkit-appearance: none;
    color: $gray;
    border: none;
    background-color: transparent;
    height: 100%;
    width: 120%;
    position: absolute;
    top: 0;
    left: 0;
  }
}
