@import url('https://fonts.googleapis.com/css2?family=Orbitron&family=Roboto&display=swap');



html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

#preloader {
  background: #040204 url(./images/preloader.gif) no-repeat center;
  background-size: 30%;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 101;
}


body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Orbitron", sans-serif;
    list-style: none;
    box-sizing: border-box;
    background: #000;
  }
  
  nav {
    position: fixed;
    z-index: 100;
    height: 8vh;
    width: 96%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
  }
  
   h1, h2, h5, p, span {
    color: #fff;
   }

   p, span {
    font-family: 'Roboto', sans-serif;
   }

  .logo img {
    color: #fff;
    padding-top: 20px;
    width: 60px;
  }

  @media (max-width: 768px) {
    .logo img {
      padding-top: 0;
      width: 50px;
    }
  }

  @media (max-width: 500px) {
    .logo img {
      width: 40px;
    }
  }
  
  nav .nav-links ul {
    display: flex;
    flex-direction: row;
  }
  
  nav .nav-links ul li {
    padding: 0 4px;
    list-style: none;
  }
  
  nav .nav-links ul li img {
    transform: scale(0.45);
  }

  .swipe-icon {
    display: none;
  }

  .scroll-icon img {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    bottom: 30px;
    z-index: 2;
    width: 30px;
    animation: bounce 800ms infinite alternate-reverse;
  }

  .scroll-icon p {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    bottom: 70px;    
    text-align: center;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
  }

  
  
  section {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
  }

  section::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #000,transparent);
    z-index: 1000;
 }
  
  .bg img {
    width: 100vw;
    height: 100vh;
    filter: brightness(0.8);
    object-fit: cover;
    pointer-events: none;
  }
  
  .rock1 {
    position: absolute !important;
    left: 10vw !important;
    top: 20vh !important;
  }
  
  .rock1 img {
    width: 40%;
    filter: brightness(0.5);
  }
  
  .text h1 {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 2vw;
    right: 0;
    top: 35vh;    
    text-align: center;
    z-index: 2;
    font-size: 5vw;
    letter-spacing: 20px;
    font-family: 'Orbitron', sans-serif;
  }

  
  
  .earth img {
    width: 400px;
    height: 400px;
    position: absolute;
    left: 34vw;
    top: 25vh;
    z-index: 1;
    filter: brightness(0.7);
  }
  
  .mid {
    left: -150px !important;
    bottom: -100px !important;
    top: unset !important;
  }
  
  .mid img {
    width: 100%;
    z-index: 2;
    left: -20px;
    top: 20vh !important;
    filter: brightness(0.8);
  }
  
  .fore {
    right: -50px !important;
    bottom: -200px !important;
    top: 0px !important;
    left: unset !important;
  }
  
  .fore img {
    width: 400px;
    height: 110vh;
    z-index: 3;
    filter: brightness(0.5);
  }

  /* section two scroll */

  #second {
     height: 100vh;
     background: linear-gradient( #000, #131055);
     position: relative;
     width: 100%;
     padding: 45px;
     display: flex;
     justify-content: center;
     align-items: center;
  }

  #second::before {
     content: '';
     position: absolute;
     bottom: 0;
     width: 100%;
     height: 100px;
     background: linear-gradient(to top, #000,transparent);
     z-index: 1000;
  }

  
  #second img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }
  
  .bg2 img {
    width: 100vw;
    height: 100vh; 
   /* filter: brightness(0.6);*/
  }

  section img#moon {
    mix-blend-mode: screen;
  }

  section img#mountains-front  {
    z-index: 10;
  }

  #text2 {
    position: absolute;
    right: 80px;
    color: #fff;
    white-space: nowrap;
    font-size: 4.5vw;
    letter-spacing: 5px;
    font-family: "Orbitron", sans-serif !important;
    z-index: 9;
    
  }

  #mountains-behind, #mountains-front {
    filter: brightness(0.3) ;
    
  }



  /* PLANET SECTION */

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
  }
  .heading {
    font-size: 24px;
  }

  .details {
    font-size: 16px;
    
   
  }

  .right  {
    width: 100%;
    margin: 2 auto;
    max-width: 550px;
    margin-right: 24px;
    
  }

   .planet img {
    animation: bounce 800ms infinite alternate-reverse;
    width: 100%;
    height: 100%;
  
   }

   .pluto {
    filter: invert(1);
   }



   @keyframes bounce {
    0% {
        transform: translateY(8px)
    }

    100% {
        transform: translateY(-8px);
    }
}

/* planets sections */

#third {
  position: relative;
  background: radial-gradient( #c03d06 30%, #000 70%);
  height: 100vh;
  display: flex; 
}

#fourth {
  position: relative;
  background: radial-gradient( #c01906 30%, #000 70% );
  height: 100vh;
  display: flex;
}


#fifth {
  position: relative;
  background: radial-gradient( #06a1c0 30%, #000 65%);
  height: 100vh;
  display: flex;
}

#sixth {
  position: relative;
  background: radial-gradient( #fc4c00 30%, #000 65% );
  height: 100vh;
  display: flex;
}

#seventh {
  position: relative;
  background: radial-gradient( #f8b294 30%, #000 65% );
  height: 100vh;
  display: flex;
}

#eighth {
  position: relative;
  background: radial-gradient( #e5c0b0 30%, #000 65%  );
  height: 100vh;
  display: flex;
}

#ninth {
  position: relative;
  background: radial-gradient( #bb2c01 30%, #000 65% );
  height: 100vh;
  display: flex;
}

#tenth {
  position: relative;
  background: radial-gradient( #0046c8 30%, #000 65% );
 
  height: 100vh;
  display: flex;
}


#eleventh {
  position: relative;
  background: radial-gradient( #4a2500 30%, #000 65% );
  height: 100vh;
  display: flex;
}


/* PLANET GAZING SECTION */

#last {
  position: relative;
  width: 100%;
  height: 100vh;
  padding-top: 32px;
  padding-bottom: 32px;
 
}

#last::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #000 50%,transparent);
  z-index: 1000;
}

.bg3 img {
  width: 110vw;
  height: 105vh;
  overflow-x:hidden;
  filter: brightness(0.7);
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  pointer-events: none;
}



.star-1 img {
  position: absolute;
  top: 80px;
  right: 20px;
  z-index: 1;
  width: 100px;
  animation: shoot 0.9s linear infinite;
}
.star-2 img {
  position: absolute;
  top: 170px;
  right: 90px;
  z-index: 1;
  width: 100px;
  animation: shoot 0.8s linear infinite;
  animation-delay: 1s;
}

.star-3 img {
  position: absolute;
  top: 250px;
  right: 0px;
  z-index: 1;
  width: 100px;
  animation: shoot 0.9s linear infinite;
  animation-delay: 2.5s;
}

.star-4 img {
  position: absolute;
  bottom: 200px;
  right: 0px;
  z-index: 1;
  width: 100px;
  animation: shoot 0.8s linear infinite;
  animation-delay: 3.5s;
  
}

/* GITHUB REPO */

.github img {

position: absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
bottom: 300px;
z-index: 2;
width: 130px;
}

.github button {
  position: absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
bottom: 220px;
z-index: 2;


}

.btn  {
  border: 1px solid white;
  padding: 16px;
  width: 200px;
  background-color: transparent;
  cursor: pointer;
 
}

.github a {
  color: white;
  font-weight: bold;
  font-family: 'Orbitron',sans-serif;
  letter-spacing: 1px;
}

button:hover {
  background-color: black;
  transition: all 600ms ease;
}




@keyframes shoot {
   0%{
    transform: translateX(0);
   }
   100%{
    transform: translateX(-1000px);
   }
}




/* footer */


footer {
  border-top: 0.5px solid whitesmoke;
  margin-top: 28px;
}

.footer-logo img {
  width: 200px;
}

.footer-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 10px;
}

.footer-list ul {
  display: flex;
  padding-right: 32px;
  cursor: not-allowed;
  
}

.footer-list img {
  width: 20px;
}


.footer-list li {
  padding: 24px;
  
}

.copyright {
  text-align: center;
}



/* MEDIA QUERIES */


/* IPADS, SMALLS SCREENS, PHONES */


@media (max-width: 768px) {
   .scroll-icon {
    display: none;
   }

   .swipe-icon {
    display: inline;
   }

   .swipe-icon img {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    bottom: 30px;
    z-index: 2;
    width: 25px;
    animation: bounce 800ms infinite alternate-reverse;
  }

  #second {
    padding: 0;
  }

  .footer-container {
    padding: 0;
  }

  .swipe-icon p {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    bottom: 70px;    
    text-align: center;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
  }

  .fore img {
    display: none;
  }

  .text h1 {
    font-size: 8vw;
  }

 .heading {
    font-size: 18px;
  }

  .details {
    font-size: 16px;
  }
 

}


@media (max-width: 690px) {
  #text2 {
    position: absolute;
    right: 12px;
    font-size: 5vw;
  }

  nav .nav-links ul {
    padding-right: 8px;
  }
}

@media (max-width: 500px) {
  section::before {
    height: 200px;
    bottom: -55px;
  }
  
  #text2 {
    position: absolute;
    right: -200px;
  }

  nav .nav-links ul {
    padding-right: 14px;
  }

  .details {
    font-size: 12px;
  }
  
  .heading {
    font-size: 14px;
  }

  nav  {
    width: 92%;
  }

  .copyright {
    font-size: 14px;
  }

 
}

  