.wrapper {
  display: block;
  @media (min-width: $viewport-md) {
    display: none;
  }
}

.us {
  width: 180px;
  height: 180px;
  @include margin(16, top bottom);
}

.grid {
  list-style-type: none;
  padding: 0;
  li {
    display: inline-block;
    @include margin(8, right bottom);
  }
}

.state {
  @include remove-button-style();
  display: inline-block;
  width: 64px;
  height: 64px;
  background: white;
  text-align: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: relative;
  text-decoration: none;
  align-items: normal;
  &:hover {
    text-decoration: none;
  }
  > span {
    width: 100%;
    height: 100%;
    @include padding(8, top);
    display: flex;
    flex-direction: column;
  }
}

.name {
  font-weight: bold;
  abbr {
    border-bottom: 0;
    text-decoration: none;
  }
}

.indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15px;
}

.legend {
  list-style-type: none;
  @include margin(16, top);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  @media (min-width: $viewport-md) {
    display: none;
  }
  li {
    flex-basis: 50%;
    @include margin(16, bottom);
    display: flex;
    align-items: center;
  }
  .swatch {
    width: 20px;
    height: 20px;
    @include margin(8, right);
  }
}

.overlay {
  background: hsla(0, 0%, 0%, 0.33);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
}

.modal {
  background: $color-slate-100;
  width: 100vw;
  height: 100vh;
  @include padding(16);
  outline: none;
  overflow-y: scroll;
}

.modal-close {
  @include remove-button-style;
  float: right;
  @include type-size(600);
  font-weight: 300;
  color: $color-slate-700;
}
