@font-face {
  font-family: "Roboto Bold";
  src: url("../assets/fonts/Roboto/Roboto-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto Condensed Bold";
  src: url("../assets/fonts/Roboto_Condensed/RobotoCondensed-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto Light";
  src: url("../assets/fonts/Roboto/Roboto-Light.ttf") format("truetype");
}

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  /* for debug only */
  /*outline: 1px solid #f00 !important;*/
}

ol{
  list-style-position: inside;
  line-height: 1.5;
}

body {
  display: block;
  height: 100%;
  width: 100%;
  color: white;
  overflow-x: hidden;
  overflow-y: visible;
  background-color: black;
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  
  font-size: 1em;
}

.logo{
  width: 32px;
  margin: auto;
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 2;
  grid-row-end: 2;
}

footer {
  height: 25vh;
  padding: 16px 15%;
  padding-bottom: 64px;
  color: white;
  background-color: #111;
  font-size: 15px;
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.4px;
  display: grid;
  gap: 32px;
  row-gap: 48px;
  grid-template-columns: auto auto auto;
  align-content: center;
  justify-content: space-evenly;
  z-index: 2;
  position: relative;
}

.header{
  display: block;
  position: fixed;
  height: 16px;
  width: 100%;
  padding: 4px;
  text-align: center;
  text-transform: uppercase;
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  
  font-size: 12px;
  line-height: 16px; /* center text vertically */
  color: white;
  background-color: black;
  z-index: 99;
}

.footnote {
  display: block;
  margin: 16px;
  padding: 16px 15%;
  border-radius: 8px;
  background-color: #262626;
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  
  font-size: 12px;
  line-height: 1.5;
}

.footnote a{
  color: #eee;
}

.footnote p{
  color: #aaa;
  margin: auto;
  max-width: 1152px;
}

.footnote a:hover{
  text-decoration: underline;
}

img {
  width: -moz-calc(100% - 32px);
  width: -webkit-calc(100% - 32px);
  width: -o-calc(100% - 32px);
  width: calc(100% - 32px);
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.img-banner{
  width: 100%;
  margin: 0;
  border-radius: 0;
  animation: 1s ease 0s 1 fade-in;
}

video {
  width: 100%;
  margin: auto;
  padding: 0;
}

.video-banner{
  animation-name: fade-in;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

a {
  text-decoration: none;
}

a.font-superscript{
  cursor: pointer;
}

.link {
  color: white;
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  
}

.link:hover {
  border-bottom: 1px solid white;
}

.btn {
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  color: white;
  font-size: 100%;
  border: none;
  background: none;
  border-radius: 8px;
  display: inline-block;
  padding: 8px 24px;
  opacity: 0.6;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.btn:hover {
  opacity: 1;
}

.btn .tooltip {
  visibility: hidden;
  width: fit-content;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 4px 8px;
  border-radius: 12px;

  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  
  font-size: 60%;

  position: absolute;
  bottom: 100%;
  margin: 0 auto;
  z-index: 99;
}

.btn:hover .tooltip {
  visibility: visible;
}

.btn-shape{
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  
  color: white;
  font-size: 14px;
  background: none;
  border-radius: 32px;
  border: 2px solid white;
  display: inline-block;
  padding: 8px;
  padding-left: 24px;
  padding-right: 24px;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.btn-shape:hover{
  opacity: 1;
  background-color: white;
  color: black;
}

.btn-icon{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 16px;
  min-height: 16px;
  font-size: 150%;
  line-height: 1;
  color: white;
  opacity: 0.6;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  margin: 0 8px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.btn-icon:hover{
  opacity: 1;
}

.btn-icon i{
  display: block;
  text-align: center;
  margin: auto;
}

.overlay {
  position: absolute;
  z-index: 1;
}

.parallax {
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
}

.horizontal-container {
  display: flex;
}

.vertical-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.grid-container {
  display: grid;
  justify-content: space-evenly;
  grid-template-columns: auto auto;
  grid-gap: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

.grid-container img{
  width: 100%;
}

.center-container{
  margin: auto;
  height: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-box {
  box-sizing: border-box;
  padding: 4em;
  width: 75%;
  max-width: 720px;
  margin: auto;
  line-height: 1.5;
}

.center p {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.overlay-text {
  position: fixed;
  top: 1em;
  left: 1em;
  z-index: 1;
}

.parallax-btn {
  display: block;
  color: white;
  opacity: 0.8;
  font-size: 20px;
  text-align: center;
  line-height: 2;
  top: 85%;
  left: 50%;
  width: fit-content;
  transform: translate(-50%, -50%);
  position: relative;
  z-index: 1;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.parallax-btn:hover {
  cursor: pointer;
  opacity: 1;
  text-shadow: 0 0 16px white;
}

#navbar{
  font-weight: bold;
  z-index: 9;
  display: block;
  font-size: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  transition: bottom 0.3s;
}

#navbar-bg{
  margin: 8px;
  padding: 8px 16px;
  border-radius: 16px;
  background-color: #262626;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

.indicator {
  cursor: pointer;
  height: 8px;
  width: 8px;
  background-color: #bbb;
  border-radius: 32px;
  margin: 2px;
  margin-top: 12px;
  margin-bottom: 12px;
  transition: 0.6s;
}

.indicator.active{
  width: 16px;
}

.indicator:hover {
  background-color: white;
}


.font-normal {
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  font-size: 95%;
  line-height: 1.8;
}

.font-medium{
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  font-size: 125%;
  line-height: 1.5;
}

.font-large{
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  font-size: 3em;
  line-height: 1;
  margin-bottom: 16px;
}

.font-condensed{
  font-family: "Roboto Condensed Bold", Arial, Helvetica, sans-serif;
}

.font-bold {
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  
}

.font-superscript{
  padding: 0 2px;
  vertical-align: super;
  font-size: 75%;
}

.font-superscript:hover {
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.25);
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#name {
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  font-size: 150%;
  line-height: 0.8;
  position: fixed;
  margin: 1.5em;
  z-index: 99;
}

#email {
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  font-size: 65%;
}

.credits {
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 4px;
  line-height: 1.5;
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  
}

.credits-small {
  font-size: 0.75em;
}

@media only screen and (max-device-width: 1400px) {
  .parallax {
    width: 100%;
    height: 56.25vw;
    background-attachment: scroll;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .parallax-btn{
    opacity: 1;
    transform: none;
    margin: auto;
    margin-top: auto;
    margin-bottom: 64px;
    top: 0;
    left: 0;
  }

  #parallax-pic-0 {
    background-image: url("../assets/images/atcw_power_day.jpg");
    height: 75vw;
  }
  
  #parallax-pic-1 {
    background-image: url("../assets/images/atcw_power_night.jpg");
    height: 75vw;
  }

  #parallax-pic-5 {
    background-image: url("../assets/images/ap_frame.jpg");
    height: 100vw;
  }
}

@media only screen and (max-width: 1000px) {
  .text-box {
    padding: 32px;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .overlay-text {
    position: static;
    display: inline-block;
    width: fit-content;
    margin: 1.5em auto;
  }

  .grid-container {
    padding: 0;
    grid-template-columns: auto;
  }

  #name {
    font-size: 1em;
    margin: 16px;
    margin-bottom: 2em;
  }

  .horizontal-container {
    justify-content: center;
  }

  #navbar {
    font-size: 90%;
    font-weight: normal;
  }

  #navbar-bg{
    border-radius: 0;
    margin: 0;
    padding: 8px;
  }

  img{
    width: 100vw;
    margin: 0;
    border-radius: 0;
  }

  footer{
    min-height: 280px;
    gap: 16px;
    grid-template-columns: auto;
    text-align: center;
  }

  .logo{
    max-height: 32px;
    width: auto;
    margin: 0 auto;
    grid-column-start: auto;
    grid-column-end: auto;
    grid-row-start: auto;
    grid-row-end: auto;
  }

  .btn{
    padding: 8px 14px;
  }

  .btn-icon{
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .btn-icon.keep-size{
    width: inherit;
    height: inherit;
    font-size: inherit;
  }

  .gallery-control.btn-icon{
    width: 64px;
    height: 64px;
  }

  .gallery-control.btn-icon i{
    font-size: 150%;
  }

  .font-medium{
    font-size: 110%;
  }

  .font-large{
    font-size: 2em;
  }

  .footnote{
    margin: 16px 0;
    padding: 16px;
    border-radius: 0;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#parallax-pic-0 {
  background-image: url("../assets/images/atcw_power_day.jpg");
}

#parallax-pic-1 {
  background-image: url("../assets/images/atcw_power_night.jpg");
}

#parallax-pic-2 {
  background-image: url("../assets/images/atcw_signal.jpg");
  height: 100%;
  animation: 2s ease 0s 1 scale-fade-in;
}

#parallax-pic-3 {
  background-image: url("../assets/images/tbh_ss_4.jpg");
}

#parallax-pic-4 {
  background-image: url("../assets/images/hd_frame_0.jpg");
}

#parallax-pic-5 {
  background-image: url("../assets/images/ap_frame.jpg");
}

#parallax-pic-6 {
  background-image: url("../assets/images/dayless_showcase_tools.jpg");
}

#parallax-pic-7 {
  background-image: url("../assets/images/oblivion_cover.jpg");
}

#parallax-solid {
  background-color: black;
  z-index: 2;
}

@keyframes scale-fade-in{
  0%{
      opacity: 0;
      transform: scale(1.5);
  }
  100%{
      opacity: 1;
      transform: scale(1);
  }
}

@keyframes scale-out-fade-in{
  0%{
      opacity: 0;
      transform: scale(0.5);
  }
  100%{
      opacity: 1;
      transform: scale(1);
  }
}

@keyframes fade-in{
  0%{
      opacity: 0;
  }
  100%{
      opacity: 1;
  }
}