/* font loading */
@import url('https://fonts.googleapis.com/css?family=Londrina+Solid:400&display=swap');


/* animation duration */
:root {
  --anim-speed: 6s;
}

/* Global Style */
html, body{
  width: 100%;
  height: 100%;
}

body{
  background-color: #9ad4d9;
  color: white;
  margin: 0;
  font-family: 'Londrina Solid', sans-serif;
}

a{
  text-decoration: none;
  color: #40585a;
}

li:hover{
  text-decoration: underline;
}


/* header style */
header{
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: 20px;
  height: 180px;
}

#nav-logo{
  padding: 10px 0;
}

#nav-logo:after {
  margin-top: 4px;
  content:"";
  float:left;
  background: #40585a;
  width: calc(100% - 4px);
  height: 0;
  border-radius: 2px;
  border: 2px solid #40585a;
}

header nav ul{
  display: -webkit-box;
  display: flex;
  justify-content: space-around;
  padding: 0;
}

header nav ul li{
  list-style: none;
  padding: 0 20px;
  font-size: x-large;
  color: #40585a;
  font-weight: 400;
}

header nav ul li.home{
  text-decoration: underline;
}


/* container style */
main{
  width: 1170px;
  margin: 0 auto;
  max-width: calc(100% - 40px);

}


/* intro styling */
main h1.intro-header {
  font-size: 3.5rem;
  text-align: center;
}

main .plus-content{
  height: 0;
  overflow: hidden;
}

main .intro{
  margin-top: 15vh;
  -webkit-animation-name: hide-intro;
          animation-name: hide-intro;
  -webkit-animation-duration: var(--anim-speed);
          animation-duration: var(--anim-speed);
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

main .intro .subtitle{
  text-align: center;
  font-size: xx-large;
  color: #40585a;
  width: 66%;
  margin: 0 auto;
}


main .intro .progress{
  width: 40%;
  height: 10px;
  margin: 30px auto;
  border: 3px solid #40585a;
  border-radius: 20px;
}

main .intro .progress .bar{
  width: 50%;
  height: 100%;
  background: #40585a;
  -webkit-animation-name: progress-bar;
          animation-name: progress-bar;
  -webkit-animation-duration: var(--anim-speed);
          animation-duration: var(--anim-speed);
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

/* proj styling */
main .proj-header{
 font-size: 3rem;
 text-align: center;
}

main .proj-header h2{
  letter-spacing: 0.1rem;
}

main .proj-header, main .proj-array{
  /* height: 0; */
  opacity: 0;
  margin-bottom: -999px;
  -webkit-animation-name: show-proj;
          animation-name: show-proj;
  -webkit-animation-duration: var(--anim-speed);
          animation-duration: var(--anim-speed);
  -webkit-animation-delay: var(--anim-speed);
          animation-delay: var(--anim-speed);
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

main .proj-array{
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
          justify-content: space-between;
}

main article{
  display: inline-block;
  width: calc(33% - 10px);
  text-align: center;
  color: #40585a;
}

main article .proj-name{
  font-size: x-large;
  padding: 10px 0;
}
main article img{
  -o-object-fit: contain;
     object-fit: contain;
     height: min-intrinsic;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.1);

}

main article .img-container{
  position: relative;
  display: -webkit-box;
  display: flex;
}



/* mobile header specific */
@media screen and (max-width: 768px) {
  header{
    margin: 0 20px;
    width: auto;
    max-width: 400px;
  }
  header .gugel-logo{
    max-width: 33%;
    -o-object-fit: contain;
       object-fit: contain;
  }
  header .gugel-title{
    max-width: 65%;
    -o-object-fit: contain;
       object-fit: contain;
  }
}

/* mobile proj specific */
@media (max-width: 768px) {
  main .proj-array{
    flex-wrap: wrap;
  }

  main article{
    width: 100%;
    max-width: 480px;
    margin: 0 auto 30px auto;
  }
}

/* for super small devices */
@media (max-width: 333px) {
  main h1.intro-header{
    font-size: 3rem;
  }
}

/* start animation */
@-webkit-keyframes hide-intro {
  90%{
    opacity: 1;
  }
  99%{
    margin: 15vh 0;
  }
  100% {
        opacity: 0;
        height: 0;
        margin: 0;
  }
}
@keyframes hide-intro {
  90%{
    opacity: 1;
  }
  99%{
    margin: 15vh 0;
  }
  100% {
        opacity: 0;
        height: 0;
        margin: 0;
  }
}

@-webkit-keyframes show-proj {
  0%{
    opacity: 0.5;
  }
  10%{
    opacity: 1;
  }
  100%{
    height: 100%;
    height: inherit;

    opacity: 1;
  }

}

@keyframes show-proj {
  0%{
    margin-bottom: 0;
    opacity: 0;
    height: inherit;
  }
  10%{
    opacity: 1;
  }
  100%{
    margin-bottom: 0;
    height: min-intrinsic;
    opacity: 1;
  }

}

@-webkit-keyframes progress-bar {
  0%{
    width: 0%;
  }
  20% {
    width: 0%;
  }
  90%{
    width: 100%;
  }
  100%{
    width: 100%;
  }
}

@keyframes progress-bar {
  0%{
    width: 0%;
  }
  20% {
    width: 0%;
  }
  90%{
    width: 100%;
  }
  100%{
    width: 100%;
  }
}
