:root{
    --bg: #00000 ;
    --water: #0071bc;
    --section: lightBlue;
    --blue:midnightBlue;
    --orange: rgb(255, 138, 96);
    font-family: arial;
  }
  *{
    box-sizing:border-box;
  }
  a{
    text-decoration: none;
    color: white;
  }
  a:hover{
    cursor: alias;
    color:var(--orange);
    font-weight: 100;
  }
  img,video{
    position: relative;
    height:auto;
    width:100%;
    object-fit: cover;
  }
  body{
    min-height:100vh;
    margin:0;
    max-height:100vh;
    overflow:scroll;
    scroll-behavior: smooth;
    background-color:var(--bg);
    display: grid;
  }
  body > section{
    scroll-margin-top: 2vh;
    scroll-snap-align: start;
    scroll-snap-type: proximity;
  }
  h1{
    padding: 0 4vw;
    z-index: 5;
    font-family: "montserrat", 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: min(8vh, 8vw);
    color: var(--blue);
    place-self: center;
  }
  p{
    padding: 0 1vw;
    font-size: min(3vw, 18px);
    justify-self: start;
  }


  
  /*top progress bar*/
  #progress-container {
    z-index: 14;
    height: 1vh;
    width: 100%;
    background-color: var(--water);
    position: fixed;
    top: 0;
    left: 0;
  }
  #progress {
    z-index: 15;
    height: 1vh;
    width: 0%;
    background-color: var(--orange);
    position: fixed;
    top: 0;
    left: 0;
    /*animation: progress linear;
    animation-timeline: scroll(root y);*/
  }
  @keyframes progress {
    to {
      background-color: orangeRed;
      width: 100%;
    }
  }
  .logo{
    z-index:3;
    width: 12vw;
    object-fit: cover;
  }
  .nav{
    padding: 0 28px;
    box-shadow:   var(--section) 0 2px 20px 2px;
    position: -webkit-sticky;
    position:sticky;
    top:0;
    display: flex;
    align-items:flex-end;
    justify-content: space-between;
    column-gap: 1em;
    z-index:10;
    height: fit-content;
    background-color:var(--blue);
    font-size: max(1.6vw, 12px);
    color: white;
  }
  .link{
    display: flex;
    column-gap: 2em;
  }
  .nav h2{
    position: relative;
    padding-top: 1.5vh;    
    font-size: 2vh;
  }

  .upper,.marquee{
    z-index: 3;
    background-color: white;
    height: 4vh;
    color: var(--blue);
    font-size: 16px;
    justify-content: flex-end;
    align-items:center;
  }
  


  /*content*/
  section{
    width: 100vw;
    height: fit-content;
    background-color: var(--bg);
    overflow-y:scroll;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
  }
  .footer{
    display:flex;
    flex-flow: column wrap;
    align-items: end;
    padding: 2vh 4vh 0;
  }
  .footer h2{
    margin: 0 ;
  }
  .overlayText{
    position: absolute;
    margin: 24px;
    z-index: 8;
    top: 0%;
    color:var(--section);
    font-size: 6vw;
    font-weight: 900;
    mix-blend-mode:screen;
    animation: down 3s ease-out ;
    animation-timeline: scroll(y);
  }
  
  @media screen and (min-device-width: 960px){
    @keyframes down{
      0%{
        transform: translateY(1%);
      }
      100%{
        transform: translateY(1000%);
      }
    }
  }
  @keyframes down{
    0%{
      transform: translateY(1%);
    }
    100%{
      transform: translateY(200%);
    }
  }
  
  .data,.game, .ctx{
    background-color: var(--bg);
    width:100vw;
    height: 60vh;
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;    
    scrollbar-width: none;
  }
  .box{
    position: relative;
    z-index:1;
    width: 100vw;
    aspect-ratio: 3 / 1;
    overflow-y: scroll;
    scrollbar-width: none;
  }
  .block{
    z-index:1;
    text-wrap:pretty;
    background-color: var(--orange);
    color: var(--blue);
    width: 100vw;
    padding: 4vh;
  }
  .block h2{
    font-size: max(3vh, 2.4vw);
    padding: 0 4vw;
  }
  .ctx{
    margin-bottom: 4vh;
    height: fit-content;
  }
  .box2{
    width: fit-content;
    aspect-ratio: 3 / 1;
    border: solid 1px var(--blue);
    margin: 2vh;
  }
  .icon{
    width: 20%;
    margin-right: 5%;;
  }

  #water {
    z-index: 3;
    mix-blend-mode: multiply;
    position: fixed;
    bottom: 0;
    width: 100vw;
    height: 0;
    background-color:var(--water);
    background: linear-gradient(0deg, orangeRed 0%, rgb(138, 178, 231) 50%, #bdedf1 90%, white 100%);
  }
/* css animation timeline not compatible to safari and firefox
.water{ 
    z-index: 3;
    mix-blend-mode: multiply;
    position: fixed;
    bottom: 0;
    width: 100vw;
    height: 0vh;
    background-color:var(--water);
    background: linear-gradient(0deg, orangeRed 0%, rgb(138, 178, 231) 50%,#bdedf1 90%, white 100%);
    animation: rise 3s 5s linear ;
    animation-timeline: scroll();
  
  }*/
  @keyframes rise {
    0%{
      height: 0vh;
    } 
    100%{
      height: 90vh;
    }
  }

  .penguin{
    position: absolute;
    width: 2vw;
    right: 24px;
    top: 0;
  }
  
  .ice{
    position: relative;
    width: 10svh;
    transform: scaleX(-1);
    transform-origin: 40%;
    float: right;
    top: -1svh;
  }


 .shrink{
    transition: 3ms;
    /* animation: shrink 3s linear ;
    animation-timeline: scroll(); */
  }
    @keyframes shrink {
      0%{
        scale: 6;
      }  
      50%{
        scale: 8;
      }  
      90%{
        scale: 6;
      }  
      100%{
        scale: 1;
      }
    }
  
  .left{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 20vh;
    width: fit-content;
    z-index: -10;
  }
  .penguin2{
    position: sticky;
    bottom: 0;
    right: 0;
  }
  /* .city{
    animation: run 8s alternate ;
    animation-timeline: scroll();
  } */
  

  .fixed{
    position: fixed;
  }
  
.draggable:hover{
    cursor: grab;
}


  @keyframes appear {
    0%{
      opacity: 0;
    } 
    70%{
      opacity: 0;
    } 
    100%{
      opacity:1;
    }
  }
button {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 6px;
  text-decoration: none;  
  background-color: var(--blue);
  color: white;
  font-weight: 800;
  font-size: 3vh;
  width: fit-content;
  opacity: 0;
  /* animation: appear 3s 5s linear ;
  animation-timeline: scroll(); */
}
button:hover {
    background-color: white;
    color: var(--blue);
    font-weight: 800;
    border-radius: 2rem;
    border: 0;
    box-shadow: 2px 2px 12px 5px var(--section);
    cursor: alias;
}
