/**
 * Main project styling goes here.
 * http://lesscss.org/
 */
body.wnyc #header-fb,
body.wnyc #header-twitter {
  display: none;
}

body.pym {
  min-height: 10em;
  background: url("../img/map-background.png") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: url("../img/map-background.png") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.pym .container {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  background: none;
  min-height: 30em;
  height: 100%;
}

a {
  color: #de1e3d;
}

.input-text {
  border: 0;
  background-color: #ffffff;
  padding: 0.5em 0.75em;
  border: 2px solid transparent;
  border-radius: 3px;
  -webkit-appearance: none;
}

.input-area {
  width: 300px;
  height: 150px;
  border: 0;
  background-color: #ffffff;
  padding: 0.5em 0.75em;
  border: 2px solid transparent;
  border-radius: 3px;
  -webkit-appearance: none;
}

.action-button {
  border: 0;
  margin: 0;
  background-color: #de1e3d;
  color: #ffffff;
  padding: 0.5em 0.75em;
  cursor: pointer;
  border-radius: 3px;
  border: 2px solid transparent;
  -webkit-appearance: none;
}

.action-button:hover {
  border: 2px solid #de1e3d;
  color: #de1e3d;
  background-color: #ffffff;
}

.action-button span {
  margin-left: 0.25em;
  display: none;
}

.search-geolocate {
  display: none;
}

.geolocation .search-geolocate {
  display: inline-block;
}

.errors {
  color: #de1e3d;
  padding: 0.5em;
  display: none;
}

.loading {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.4);
  background-image: url('../img/loading.gif');
  background-image: url('../img/loading.svg');
  background-size: 128px 128px;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 999;
  width: 100%;
}

.initial-search {
  position: absolute;
  width: 100%;
  height: 100%;
}

.initial-search .search-container {
  max-width: 36em;
  margin: 0 auto;
  background-color: rgba(16, 16, 16, 0.5);
  padding: 1em 1em 1.4em 1em;
  position: relative;
  top: 50%;
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center;
}

.initial-search .search-container .search-intro {
  font-size: 2em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #ffffff;
}

.initial-search .search-input {
  font-size: 1.5em;
  width: 70%;
}

.initial-search .action-button {
  font-size: 1.5em;
}

.initial-search .errors {
  color: #ffffff;
  font-size: 1.25em;
}

.explore {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: none;
}

.explore .map {
  position: relative;
  width: 100%;
  height: 50%;
}

.pym .explore .map {
  height: 20em;
}

.explore .map-bottom {
  position: relative;
  width: 100%;
  border-top: 1px solid #474747;
}

.explore .bottom-wrapper {
  max-width: 32em;
  margin: 0 auto;
  padding: 0 0.5em 1.5em 0.5em;
}

.explore .legend-search-container {
  text-align: center;
  margin: 0 auto 1.5em auto;
  padding-top: 0.5em;
}

.explore .legend-search-container .errors {
  margin: 0 auto;
}

.explore .legend-search {
  overflow: hidden;
}

.explore .input-text,
.explore .input-area,
.explore .action-button {
  font-size: 1.25em;
}

.explore .search-input {
  width: 70%;
  background-color: #ebebeb;
}

.explore .instructions {
  text-align: center;
  font-style: italic;
  color: #989898;
  margin-bottom: 1.5em;
}

.explore .legend {
  max-width: 30em;
  margin: 0 auto;
}

.explore .legend p {
  margin-bottom: 1em;
}

.explore .legend > div {
  margin-bottom: 1em;
}

.explore .legend-item {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin-right: 0.5em;
  margin-top: 2px;
  float: left;
}

.explore .item-nobody {
  background-color: #ffcc00;
}

.explore .item-state {
  background-color: #ff6600;
}

.explore .item-others {
  background-color: #0dbcee;
}

.explore .details {
  padding-top: 1em;
  display: none;
}

.explore .details h3 {
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.explore .details p,
.explore .details .has-form {
  margin-bottom: 1em;
}

.explore .details .indent {
  display: inline-block;
  margin-left: 1.5em;
  font-size: 0.85em;
  font-style: italic;
  color: #989898;
}

.explore .details img {
  padding-top: 0.5em;
  max-width: 100%;
}

.explore .details .dep-link-form {
  display: inline-block;
}

.explore .details .dep-link-form * {
  display: inline-block;
}

.explore .details .dep-link-form button {
  border: none;
  background: none;
  color: #de1e3d;
  padding: 0;
  margin: 0;
  font-size: 1em;
  cursor: pointer;
}

.explore .data-highlight {
  display: inline-block;
  padding: 0 0.25em;
  background-color: rgba(229, 17, 51, 0.14);
}

.explore .details-back {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2em;
  border-radius: 0;
  z-index: 99999;
  top: 50%;
}

.pym .explore .details-back {
  top: 0;
}

.details-form-container {
  background-color: #ebebeb;
  padding: 1em;
  font-size: 1em;
  margin-left: -0.5em;
  margin-right: -0.5em;
}

.details-form-container .input-text,
.details-form-container .input-area,
.details-form-container .action-button {
  font-size: 1em;
}

.details-form-container .input-text,
.details-form-container .input-area {
  width: 100%;
}

.details-form-container .input-area {
  padding: 1em;
}

.details-form-container .form-item {
  margin-bottom: 1em;
}

.details-form-container .form-description {
  font-size: 0.85em;
}

.details-form-container .site-submission-response {
  display: none;
  font-weight: bold;
}

.details-form-container .required-mark {
  color: #de1e3d;
}

.details-form-container .input-text.field-error,
.details-form-container .input-area.field-error {
  border: 1px solid #de1e3d;
}

.details-form-container .errors {
  margin-bottom: 1em;
}

@media screen and (max-width: 620px) {
  .explore .details-back {
    top: 0;
  }
}

@media screen and (max-width: 570px) {
  .initial-search .search-container {
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
  }
}

@media screen and (max-width: 479px) {
  .search-container {
    font-size: 0.8rem;
  }

  .legend-search-container .search-input {
    width: 70%;
  }
}

@media screen and (max-width: 399px) {
  .initial-search .action-button {
    display: block;
    width: 80%;
    margin: 0.2em auto 0 auto;
    text-align: left;
  }

  .initial-search .action-button span {
    display: inline;
  }

  .initial-search .search-container {
    width: 100%;
    font-size: 0.8rem;
    text-align: center;
    background-color: transparent;
  }

  .initial-search .search-container .search-input {
    border: 1px solid #989898;
    width: 80%;
  }

  .initial-search .search-container .errors {
    color: #de1e3d;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 1.25em;
    margin: 1em auto;
    width: 80%;
  }

  .initial-search .search-container .search-intro {
    font-size: 1.75em;
    color: #de1e3d;
  }

  .explore .legend-search-container {
    font-size: 0.8rem;
  }

  .explore .legend-search-container .search-input {
    width: 50%;
  }

  .explore .details-back {
    font-size: 1.25em;
  }
}
