@font-face{
  font-family: 'Lactos';
  src: url("resources/lactos.otf") format("opentype");
}

html{
  overflow-x: hidden;
}

body{
  margin: 0;
  color: #dad4c2;
  background-color: #031B00;
  font-family: "Montserrat", sans-serif;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

h1, h2, h3{
  font-family: 'Lactos';
  letter-spacing: 2px;
}

h1.stretch {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

h3{
  font-size: 24px;
}

#topbar{
  position: fixed;
  top: 0;
  width: calc(100vw - 40px);
  padding-left: 20px;
  padding-right: 20px;
  z-index: 10000;
}

#name{
  flex-grow: 1;
}

#aq{
  display: inline-block;
}

#aq:hover{
  cursor: pointer;
}

#audio-icon{
  width: 24px;
  vertical-align: text-bottom;
  margin-left: 5px;
  cursor: pointer;
  z-index: 1000;
}

#menu{
  flex-grow: 2;
  display: flex;
  justify-content: flex-end;
  row-gap: 1vh;
  flex-direction: column;
  position: absolute;
  top: 27px;
  right: 20px;
}

#menu span{
  align-self: flex-end;
}

#menu span:hover{
  cursor: pointer;
}

.dot{
  width: 12px;
  position: absolute;
  z-index: 10001;
}

#bottombar{
  position: fixed;
  bottom: 0;
  width: calc(100vw - 40px);
  padding-left: 20px;
  padding-right: 20px;
  z-index: 1000;
}

#ig{
  width: 25px;
  vertical-align: middle;
}

#contact{
  height: 74.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: no-wrap;
}

#contact a, #contact span{
  align-self: center;
  text-decoration: none;
  color: #dad4c2;
}

#email{
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 4px;
  margin-left: 10px;
}

@media only screen and (max-width : 500px){
  #contact span{
    display: none;
  }
  #contact{
    justify-content: flex-start;
  }
}

#cover{
  height: 2320px;
  width: 100vw;
  background-image: url('resources/cover.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

@supports (-webkit-overflow-scrolling: touch) {
  #cover{
    background-attachment: scroll;
  }
}

#clickme{
  width: 200px;
  position: absolute;
  top: 20px;
  left: 120px;
}

#sketch1{
  width: 400px;
  position: absolute;
  bottom: 200px;
}

#sketch2{
  width: 400px;
  max-width: 100%;
  position: absolute;
  right: 0px;
  bottom: 0px;
}

#sketch3{
  width: 500px;
  max-width: 100%;
  position: absolute;
  top: 1720px;
  left: 0px;
}

.section-icon{
  width: 100%;
  max-width: 400px;
  display: block;
  margin: auto;
  position: sticky;
  top: calc(16vh - 5vw);
  transform-origin: top center;
  transition: transform 0.1s linear;
}

.filler{
  height: 120vh;
}

.mainheading{
  position: sticky;
  top: calc(21vh - 3vw);
  font-size: calc(5vw + 4vh);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0px 20px;
}

#audio{
  width: 100%;
  background-color: #444A3B;
}

.scrollmagic-pin-spacer{
  margin-left: 100vw !important;
}

.scroll-horizontal{
  display:flex;
  flex-direction: row;
  height: 60vh;
  margin-left: 100vw;
  width: max-content;
}

#sound-design-scroll{
  width: min-content;
}

#recording-scroll{
  width: min-content;
}

.audio-category{
  position: absolute;
  top: 30vh;
  margin: 0;
  transition: tranform 0.3s ease;
  pointer-events: none;
}

.h-wrapper{
  height: 60vh;
  padding: 50px;
  padding-top: 35vh;
}

.h-box{
  color: #dad4c2;
  position: relative;
  height: 40vh;
  width: min-content;
}

.h-box img{
  max-height: 40vh;
  max-width: 90vw;
}

.h-box a{
  line-height: 0;
}

.img-wrapper{
  position: relative;
}

.embed{
  height: 40vh;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.7); /* Black see-through */
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  padding: 20px;
  transition: .5s ease;
  opacity:0;
  font-size: 20px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  justify-content: center;
}

.caption-line1{
  width: 100%;
}

.caption-line2{
  width: 100%;
  margin: 0;
}

.new-tab{
  width: 40px;
  height: 40px !important;
  align-self: center;
}

.h-box > :first-child:hover .overlay{
  opacity: 1;
}

.h-box > :first-child:hover{
  cursor: pointer;
}

#film{
  width: 100%;
  background-color: #031B00;
}

.title{
  font-size: calc(5vw + 4vh);
  text-align: center;
  margin: 0;
}

.subtitle{
  text-align: center;
  margin: 0;
}

.filmwrap{
  padding: 0px 20px;
  width: 900px;
  max-width: 90vw;
  margin: auto;
}

.screener-div{
  position: relative;
}

.screener{
  width: 100%;
}

.screener-div:hover .overlay{
  opacity: 1;
}

.screener-div:hover{
  cursor: pointer;
}

.play-icon{
  width: 75px;
  height: 75px;
  align-self: center;
}

.description{
  margin-bottom: 50px;
}

.laurelwrap{
  width: 100%;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.laurelwrap img{
  width: 33%;
  max-width: 400px;
}

.main-carousel{
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.carousel-cell img{
  height: 300px;
  margin-right: 20px;
}

/*
.stills-scroll {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  overflow: hidden;
  user-select: none;
  column-gap: 20px;
}

.stills-scroll img{
  height: 300px;
  margin-right: 20px;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 20px;
  min-width: 100%;
  animation: scroll 50s linear infinite;
  will-change: transform;
}

@keyframes scroll {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

/*
.stills-scroll:hover .marquee-content {
  animation-play-state: paused;
}

@media (pointer:coarse) {
  .stills-scroll:hover .marquee-content {
    animation-play-state: running;
  }
}
*/

.show-credits{
  cursor: pointer;
  padding-left: 10px;
}

.show-credits:hover{
  background-color: #dad4c2;
  color: #031B00;
}

.credits{
  display: none;
}

.credits-accordian{
  margin: 50px 0px;
}

#illustration{
  width: 100%;
  background-color: #CC8603;
}

#illustration-overlay{
  flex-direction: column;
  align-items: flex-start;
  display: none;
  z-index: 10001;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

#illustration-overlay img{
  max-height: 90vh;
  max-width: 100vw;
  object-fit: contain;
}

#overlay-caption{
  margin-left: 10px;
}

#exit{
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 25px;
  margin: 0;
  z-index: 10000000;
  cursor: pointer;
  text-shadow: 1px 1px 2px black;
}

#illustration-container{
  margin-top: 30px;
  position:relative;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
}

#illustration-container img{
  cursor: pointer;
  position: absolute;
  max-width: 300px;
  height: auto;
  transition: all 0.2s ease;
  transform: translate(var(--x-position), var(--y-position)) scale(0.75);
}

@media (pointer:fine) {
  #illustration-container img:hover {
      transform: translate(var(--x-position), var(--y-position)) scale(1);
      z-index: 999 !important;
  }
}

@media (min-width:801px){
  #illustration-container{
    display: grid;
  }
  #illustration-container-2{
    display: none;
  }
  #illustration{
    height: calc(525vh + 500px + 5vw);
  }
}

#illustration-container-2{
  display: none;
  columns: 2;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

#illustration-container-2 img{
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width:800px){
  #illustration-container-2{
    display: block;
  }
  #illustration-container{
    display: none;
  }
  #illustration{
    height: auto;
  }
}

#about{
  height: min-content;
  min-height: 100vh;
  width: 100%;
  background-color: #813527;
}

#about-container{
  display: flex;
  justify-content: center;
  column-gap: 20px;
}

#about-container img{
  width: 40%;
  object-fit: contain;
  transform: rotate(-3deg);
}

#about-container div{
  width: 40%;
  align-self: center;
}

@media only screen and (max-width : 800px){
  #about-container{
    flex-wrap: wrap;
    padding: 0px 20px;
    row-gap: 20px;
  }
  #about-container img{
    width: 100%;
  }
  #about-container div{
    width: 100%;
  }
}

#sayhi{
  margin-top: 50px;
  text-align: center;
  padding: 0px 20px;
}

#sayhi h3{
  margin-bottom: 0px;
}

#sayhi p{
  margin-top: 0px;
}
