/* Home page: layouts/home, home/index/* */

.home {
  background: url("/assets/background-560c8034.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* -- Header on top of the splash -- */

.home-menu {
  padding: 1.5em;
  background: transparent;

  a,
  .brand {
    color: white;
  }

  li a:hover,
  li a:focus {
    color: white;
  }
}

/* -- Splash: full-screen search, the content scrolls over it -- */

.splash-container {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 128, 128, 0.78);
}

.splash {
  position: absolute;
  inset: 100px 0 0;
  width: 80%;
  height: 50%;
  margin: auto;
  text-align: center;
  text-transform: uppercase;

  @media (min-width: 48em) {
    width: 50%;
  }
}

.splash-head {
  padding: 1em 1.6em;
  border: 3px solid white;
  border-radius: 5px;
  color: white;
  font-size: 20px;
  font-weight: 100;
  line-height: 1em;

  @media (min-width: 48em) {
    font-size: 250%;
  }

  @media (min-width: 78em) {
    font-size: 300%;
  }
}

.splash-input {
  display: block;
  width: 100%;
  margin-right: 0;
  padding-right: 3em;
  background: transparent;
  text-align: center;
  text-transform: uppercase;

  &:focus {
    outline: none;
  }

  &::placeholder {
    color: rgba(255, 255, 255, 0.8);
  }
}

.splash .search-button {
  float: right;
  margin-top: -3.15em;
  padding-left: 0.5em;
  border: none;
  background: transparent;
  color: white;
}

.splash-subhead {
  color: white;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px transparent inset;
  -webkit-text-fill-color: #333;
}

/* Bouncing "scroll down" chevron */
#bamf-scroll-icon {
  position: absolute;
  bottom: 0;
  left: 45%;
  right: 45%;
  display: flex;
  justify-content: center;
  width: 10%;
  color: white;
  font-size: 500%;
  opacity: 0.5;
}

.scroll-hint {
  animation: scroll-hint 2s infinite both;
}

@keyframes scroll-hint {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* -- Content below the splash -- */

.content-wrapper {
  position: absolute;
  top: 100%;
  z-index: 2;
  width: 100%;
  min-height: 12%;
  background: white;

  #footer {
    position: relative;
  }
}

.content {
  @media (min-width: 48em) {
    margin-bottom: 4%;
    padding: 1em;
  }
}

.content-head {
  margin: 2em 0 1em;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-head-ribbon {
  color: white;
}

.content-subhead {
  color: var(--atlas-heading);
  text-align: center;

  i {
    display: block;
    margin-right: 7px;
    color: var(--atlas-primary);
  }
}

.manual-text {
  text-align: center;
}

/* -- Intro -- */

#intro {
  padding: 5% 14%;
  background-color: #b2dfdb;

  p {
    font-size: 19px;
    font-weight: 300;
  }

  .intro-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;

    a {
      margin: 0 5px 5px 0;
      padding: 10px 16px;
      border: 1px solid transparent;
      border-radius: 6px;
      background-color: var(--atlas-primary);
      color: white;
      font-size: 20px;
      line-height: 1.3333333;
      touch-action: manipulation;

      &:hover {
        background-color: #00796b;
      }
    }
  }

  @media (max-width: 500px) {
    padding: 14%;
    text-align: justify;

    p {
      margin-bottom: 15px;
    }
  }
}

/* -- Latest maps -- */

.ribbon-wrapper {
  background: url("/assets/banner-7fc06f92.png") no-repeat center center fixed;
  background-size: cover;
}

.ribbon {
  margin: 0 auto;
  background: rgba(0, 128, 128, 0.78);
  color: #eee;

  &.content {
    margin-bottom: 0;
  }
}

#recent-maps {
  @media (max-width: 500px) {
    padding-top: 1px;
  }
}

.showcases {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto 3.125em;
  text-align: center;

  @media (min-width: 48em) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.showcase {
  margin: 0 0.5em 2em;
  padding: 0 0 3em;
  border: 1px solid #147976;
  background: #fcfcfc;
}

.showcase-header {
  background: #fff;
  color: #111;

  h2 {
    margin: 0;
    padding-top: 2em;
    color: rgba(0, 0, 0, 0.75);
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 0.25em;
    text-transform: uppercase;
  }

  .showcase-header-title {
    margin-bottom: 2.2em;
  }
}

.showcase-time {
  margin: 0.2em 0 0;
  font-size: 6em;
  font-weight: 100;

  span {
    display: block;
    padding-bottom: 2em;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.2em;
    font-weight: 400;
    text-transform: uppercase;
  }
}

.showcase-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;

  li {
    padding: 0.8em 0.5em;
    overflow: hidden;
    border-bottom: 1px solid #e7e7e7;
    background: #f7f7f7;
    color: #526066;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
  }
}

.view-showcase-button {
  position: relative;
  bottom: -1.5em;
  display: inline-block;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 2em;
  background: #fff;
  color: #333;
  font-weight: bold;
  line-height: normal;
  white-space: nowrap;

  &:hover {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
  }
}
