@charset "UTF-8";

@font-face {
  font-family: 'HNFD';
  src: url("Hershey-Noailles-Futura-Duplex-Light.woff");
}



/* GLOBAL */

html, body {
  min-height: 100%;
  color: #414042;
  }
  body {
    background-color: #D6DCCF;
    margin: 0;
    overflow-x: hidden;
    font-family: "Mona Sans", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    }

  h2 {
    font-size: 180%;
    margin-bottom: 30px;
    font-family: HNFD;
    font-weight: 300;
    line-height: 1.2;
    }

  p {
    margin-bottom: 25px;
    font-weight: 300;
    font-family: "Mona Sans", sans-serif;
    }

  strong {
    font-weight: 500;
    }



#site-wrapper {
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
  }


.container {
  padding-right: 3rem !important;
  padding-left: 3rem !important;
  max-width: 1320px;
  margin: 0 auto;
  }
  @media (width <= 768px) {
    .container { 
      max-width: 540px; 
      padding-right: 3rem !important;
      padding-left: 3rem !important;
      font-size: 0.9rem;
      }
    }
  @media (768px <= width <= 992px) {
    .container { 
      max-width: 720px; 
      padding-right: 3rem !important;
      padding-left: 3rem !important;
      font-size: 0.9rem;
      }
    }
  @media (992px <= width <= 1200px) {
    .container { 
      max-width: 960px; 
      padding-right: 4.5rem !important;
      padding-left: 4.5rem !important;
      }
    }
  @media (1200px <= width <= 1400px) {
    .container { 
      max-width: 1140px; 
      padding-right: 6rem !important;
      padding-left: 6rem !important;
      }
    }
  @media (1400px <= width) {
    .container { 
      max-width: 1200px; 
      padding-right: 8rem !important;
      padding-left: 8rem !important;
      font-size: 1.1rem;
      }
    }


#navbar {
  background-color: #DBE7E7;
  padding-top: 1rem;
  padding-bottom: 0.7rem;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  transition: transform 0.4s ease;
  }
  #navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    }

  #header-logo {
    width: 333px; 
    max-width: 50vw;
    }
  
  .nav-menu {
    display: block;
    margin-top: 11px;
    vertical-align: center;
    color: #414042;
    margin-right: 0;
    }
    #nav-menu-top.nav-menu ul {
      display: flex;
      list-style: none;
      gap: 10px;
      }
      .nav-menu a { 
        font-size: 1.3rem;
        font-weight: 300;
        letter-spacing: 0.1rem;
        font-family: "HNFD";
        padding: 5px;
        text-decoration: none;
        color: rgba(0,0,0,0.55);
        transition: color 0.2s;
        }
      .nav-menu a:hover { 
        color: rgba(0,0,0,0.8);
        }


  #hamburger {
    display: inline-block;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid rgba(100,100,100,0.3);
    border-radius: 5px;
    padding: 4px;
    }
    #hamburger div {
      width: 25px;
      height: 2px;
      background-color: #666;
      margin: 6px 5px;
      }
      @media (min-width: 991px) {
        #hamburger { display: none }
        }


/* Side navigation menu for mobile */
#nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 140px;
  background: white;
  box-shadow: -4px 0 15px rgba(0,0,0,0.2);
  z-index: 9999; /* very high to stay on top */
  transform: translateX(100%);
  transition: transform 0.4s ease;
  background-color: #818181;
  }
  #nav-sidebar .nav-menu {
    display:block;
    padding-top:15px;
    }
    #nav-sidebar .nav-menu a {
      padding: 4px 8px 8px 20px;
      text-decoration: none;
      font-size: 20px;
      color: #fff;
      display: block;
      text-align: left;
      transition: 0.3s;
      }


/* Hide top menu on smaller resolutions */
@media (max-width: 991px) {
  #nav-menu-top { display: none; }
  }


/* Transforms when side menu is open */
body.menu-open #site-wrapper {
  transform: translateX(-140px);
  }
  body.menu-open #navbar {
    transform: translateX(-140px);
    }
  body.menu-open #nav-sidebar {
    transform: translateX(0);
    }


/* Ensure side menu is hidden on larger resolutions */
@media (min-width: 991.01px) {
  #nav-sidebar { display: none; }

  body.menu-open #site-wrapper {
    transform: translateX(0) !important;
    }
  body.menu-open #navbar {
    transform: translateX(0) !important;
    }
  body.menu-open #nav-sidebar {
    transform: translateX(140px) !important;
    }
  }






#main {
  margin-top: 75px;
  padding-bottom: 80px;
  background: #D6DCCF;
  padding-top: 60px;
  }
  body.home #main {
    padding-bottom: 0;
    padding-top: 0;
    }

  section + section {
    margin-top: 50px !important;
    }
    section p a.sequence-breadcrumb {
      color: rgb(95, 94, 96);
      text-decoration: none;
      border-bottom: none;
      }
      section p a.sequence-breadcrumb:hover {
        color: #000;
        }

    section p a {
      color: rgba(162, 42, 41, 1);
      border-bottom: 1px solid rgba(0,0,0,0.5);
      text-decoration: none;
      font-weight: 500;
      }
    section p a:hover {
      color: rgba(202, 52, 51, 1);
      }

  .vert-headroom {
    margin-top: 50px;
    }

  @media (min-width: 992px) {
    section p {
      max-width: 61.8%;
      }
    }






/* LANDING PAGE */

body.home {
  overflow-y: hidden;
  }

  .iframe-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    }

    .iframe-wrapper iframe {
      opacity: 0.01;
      transition: opacity 0.6s ease-in-out;
      width: 100vw;
      height: 53.0973vw; /* Given 16:9 aspect ratio, 9/16*100 = 56.25 */
      min-height: 100vh;
      min-width: 188.333vh; /* Given 16:9 aspect ratio, 16/9*100 = 177.77 */
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 12;
      }





/* MAP PAGE */

.mappings section img {
  width: 100%;
  max-width: 100%;
  }

#app-screenshots {  
  display: flex;
  justify-content: space-between;
  align-items: center; 
  gap: 5px; 
  }

@media (768px <= width) {
  #app-screenshots { 
    max-width: 61.8%;  
    }
  }

#app-screenshots img {
  max-width: 100%;
  height: auto;
  flex: 1 1 0;
  object-fit: contain;
  }





/* SOUND PAGE (SEQUENCE LIST) */

.sequences-list {
  margin-top: 50px;
  }
  .sequence-listing {
    margin: 0 40px;
    display: flex;
    flex-direction: row;
    margin-left: 0;
    margin-right: 0;
    }
    .sequence-thumb {
      float: left;
      display: block;
      position: relative;
      width: 20%;
      min-width: 100px;
      max-width: 150px;
      height: 100px;
      background-image: url(../assets/img/placeholder-thumb.png);
      background-position: center center;
      background-size: cover;
      margin-bottom: 35px;
      }
      .sequence-thumb a {
        display: block;
        width: 100%;
        height: 100%;
        }

    .sequence-text {
      margin-left: 40px;
      display: block;
      max-width: 80%;
      }
      .sequence-text h4, .sequence-text h4 a {
        color: rgb(95, 94, 96); 
        text-decoration: none;
        display: block;
        font-weight: 500;
        font-size: 18px;
        transition: color 0.1s linear;
        margin: 0 0 0.4rem;
        padding: 0;
        }
        .sequence-text h4 a:hover {
          color: #000;
          }

      .sequence-text p {
        font-size: 95%;
        margin-top: 0;
        }
        .sequence-text p:last-child {
          margin-bottom: 35px;
          }





/* SEQUENCE PAGE */

.sequence-breadcrumb {
  text-transform: uppercase;
  font-size: 73%;
  letter-spacing: 1.6px;
  font-weight: 500;
  }
  figure {
    margin: 0;
    }
  figcaption {
    margin-bottom: 8px;
    font-weight: 300;
    font-size: 95%;
    }
  audio {
    min-width: 61.8%;
    }
    @media (768px <= width <= 992px) {
      audio {min-width: 97%; }
      }
    @media (width <= 768px) {
      audio {min-width: 100%; }
      }



#filmstrip-outer {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
  }
  #filmstrip-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 10;
    opacity: 0.01;
    transition: opacity 0.8s linear;
    pointer-events: none;
    }
    #filmstrip-inner.visible {
      opacity: 1;
      }

    #filmstrip {
      width: 20000px;
      height: 350px;
      position: relative;
      transform: translateX(0);
      z-index: 11;
      }
      #filmstrip.animating {
        animation: 600s linear infinite filmstrip;
        }
        @keyframes filmstrip {
          to { transform: translateX(-60%); }
          }
        @media (prefers-reduced-motion: reduce) {
          #filmstrip { animation: none; }
          }

      #filmstrip > iframe {
        width: 500px;
        height: 100%;
        flex-shrink: 0;
        pointer-events: none;
        position: absolute;
        }

  .cover-spin {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
    pointer-events: none; 
    }
    .cover-spin::after {
      box-sizing: border-box;
      vertical-align: middle;
      content: '';
      display: block;
      position: absolute;
      left: 50%;
      top: 50%;
      width: 40px;
      height: 40px;
      border: solid 4px #c6c6c6;
      border-radius: 50%;
      border-top-color: transparent;
      animation: spin 0.8s linear infinite;
      }
      @keyframes spin {
        from { transform: translate(-50%, -50%) rotate(0deg); }
        to { transform: translate(-50%, -50%) rotate(360deg); }
        }




/* ABOUT */

.dl-apps {
	margin-bottom: 10px;
	}
	.app-logos {
		margin-bottom: 30px;
		}
	.app-logos a {
		margin-right: 5px;
		cursor: pointer;
		}
	.app-logos img, .app-logos a {
		width: 50px;
		cursor: pointer;
		transition: opacity 0.2s;
		opacity: 0.8;
		}
		.app-logos img:hover {
			opacity: 1;
			}
