/* Global */

li {
  margin-bottom: 0;
}

.arrow-list li:before {
  content: "\f138";
  font-family: FontAwesome;
  margin-right: 5px;
}

.has-error .help-block {
  color: #c00;
}

/* .pull-top reset */
.wyntk,
.popular {
  font-size: 0;
}

.wyntk .pull-top {
  font-size: 1rem;
  margin: 0;
}

.popular .pull-top {
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
}

/* Typography */
.label {
  font-size: 0.6875rem;
}

/* Header */
.home .searchbox,
.home .not-available-skip,
.not-available .home-skip {
  display: none !important;
}

/* Find/Explore/Ask */
.navbar-collapse .findaskexplore {
  color: #fff;
  margin-bottom: 15px;
  padding: 0;
}

.navbar-collapse .findaskexplore a {
  color: #fff;
}

.navbar-collapse .findaskexplore a:focus {
  outline: none;
  text-decoration: none;
  border-bottom: 2px dotted #fff;
}

.navbar-collapse .findaskexplore h1 a:focus {
  border-bottom: none;
  text-decoration: underline;
}

.navbar-collapse .findaskexplore input[type="radio"]:focus {
  padding: 2px;
  outline: 2px dotted #fff;
}

.navbar-collapse .findaskexplore .whatsnew {
  color: #fff;
  padding: 2px 4px;
  outline: 1px dotted #fff;
}

/* Find Box */
.navbar-collapse .findaskexplore .findbox {
  background: url(/assets/images/global/bg_find.png) no-repeat #0e7fa7;
}

.navbar-collapse .findaskexplore .findbox .search-field {
  width: calc(100% - 105px);
}

.navbar-collapse .findaskexplore .findbox .search-btn {
  width: 100px;
}

.navbar-collapse .findaskexplore .homeask li {
  font-size: 0.875rem;
}

/* Main Story */
.mainstory-image {
  border: 1px #dbdbdb solid;
}

/* Features */
.feature {
  background: #ebebeb;
}

.feature img {
  border-right: 1px solid #fff;
}

.feature .feature-content {
  padding: 8px 15px 0;
}

/* add external icon to external featured links */
a[rel=external] .feature-content h5:after {
  font-family: FontAwesome;
  font-size: 14px;
  line-height: 1;
  margin-left: 5px;
  content: "\f08e";
}

a[rel=external]:after {
  content: "";
  margin: 0;
}

/* Events */
.event-links {
  padding-bottom: 21px;
}

.event-links a {
  margin-right: 15px;
}

.event-links a:first-child {
  margin-left: 15px;
}

/* What's Popular */
.whats-popular .popular a {
  display: block;
}

.whats-popular .popular .grid-image img {
  transform: translateY(-50%);
  top: 50%;
  bottom: auto;
  padding: 0 2.5px;
}

.whats-popular .popular .grid-detail {
  padding: 0 4px;
}

/* Lightbox */
.modal-backdrop.in {
  opacity: 0.7;
}

.homepage-modal .modal-dialog {
  max-width: 320px;
  margin: 0 auto;
}

.homepage-modal .modal-content .modal-body .modal-close {
  color: #c00;
  background-color: #fff;
  border-radius: 9999px;
  padding: 2px;
  opacity: 1;
  font-weight: 600;
  font-size: 40px;
  line-height: 24px;
  margin: 10px 10px 0;
}

.homepage-modal .modal-content {
  margin: 25px 15px;
  overflow: hidden;
}

.homepage-modal .modal-content h2 {
  font-size: 1.5rem;
  line-height: 2.5rem;
  margin-top: 3rem;
}

.homepage-modal .modal-content .primary-text {
  line-height: 28px;
}

.homepage-modal .modal-content .secondary-text {
  position: relative;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: #fff;
  line-height: 24px;
  background-color: #c00;
}

.homepage-modal .modal-content .secondary-text .content {
    width: 50%;
    float: right;
}

.homepage-modal .modal-content .secondary-text img {
  position: absolute;
  width: 130px;
  left: 15px;
  top: -50px;
  transform: rotate(15deg);
}

.homepage-modal .modal-content .secondary-text .flex-parent {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

@media only screen and (min-width: 768px) {

  /* Lightbox */

  .homepage-modal .flex-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .homepage-modal .modal-dialog {
    max-width: initial;
    width: 740px;
  }

  .homepage-modal .modal-content .modal-body .modal-close {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
  }

  .homepage-modal .modal-content {
    margin: 25px 0;
  }

  .homepage-modal .modal-content h2 {
    font-size: 1.75rem;
    margin-top: 1rem;
  }

  .homepage-modal .modal-content .primary-text {
    font-size: 18px;
  }

  .homepage-modal .modal-content .secondary-text {
    margin-top: -90px;
  }

  .homepage-modal .modal-content .secondary-text img {
    width: 170px;
    left: 15px;
    top: -92px;
  }
}

@media only screen and (min-width: 992px) {
  /* Global */
  .border-top {
    border-top: 1px solid #dbdbdb;
  }

  .move-top {
    margin-top: -216px;
  }

  /* Find/Explore/Ask */
  .navbar-collapse .bg-warning {
    background: #d14805;
  }

  .navbar-collapse .findaskexplore {
    /* create green/blue/orange background */
    background: url(/assets/images/global/bg.png) repeat-y;
    background-size: contain;
  }

  .navbar-collapse .findaskexplore .findbox:before {
    background: #0e7fa7;
    content: "";
    height: 100%;
    width: 1000%;
    margin-left: -1000%;
    position: absolute;
    left: -1px;
    top: 0;
  }

  .navbar-collapse .findaskexplore .homeexplore,
  .navbar-collapse .findaskexplore .homeask {
    padding: 5px 15px 8px;
  }

  .navbar-collapse .findaskexplore .homeexplore {
    background: url(/assets/images/global/bg_explore.png) no-repeat top left #528300;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
  }

  .navbar-collapse .findaskexplore .homeexplore li {
    margin-left: 13px;
    text-indent: -13px;
  }

  .navbar-collapse .findaskexplore .homeexplore li:before {
    content: "\f105";
    font-family: FontAwesome;
    margin-right: 5px;
    font-weight: bold;
    font-size: 1.3rem;
  }

  .navbar-collapse .findaskexplore .homeask {
    background: url(/assets/images/global/bg_ask.png) no-repeat #d14805;
  }

  .navbar-collapse .findaskexplore .homeask .question {
    font-weight: normal;
  }

  /* Features */
  .feature {
    border-left: 5px #fff solid;
  }

  /* Borders */

  .events::before,
  .whats-popular::before,
  .would-like-to::after,
  .wyntk::after {
    content: "";
    position: absolute;
    top: 20px;
    height: calc(100% - 20px);
    border-right: 1px solid #dbdbdb;
  }

  .events::before {
    height: 100%;
    top: 0;
    left: 0;
  }

  .whats-popular::before {
    left: 0;
  }

  .would-like-to::after,
  .wyntk::after {
    right: -1px;
  }

  /* Second Row */
  .secondrow {
    padding-top: 20px;
  }
}

@media only screen and (min-width: 1092px) {
  /* Global */
  .move-top {
    margin-top: -165px;
  }
}

@media only screen and (min-width: 1300px) {
  /* Global */
  .move-top {
    margin-top: -252px;
  }

  /* Find/Explore/Ask */
  .navbar-collapse .findaskexplore {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
  }
}
