body {
  color: white;
  overflow-x: hidden;  /*Ensures none of the overlaps off of the page creates a sideways scroll*/
  font-family: "Josefin Sans", sans-serif;
}

html { 
  background: url(images/BACKGROUND4.svg); 
  background-repeat: repeat-y;
  background-size: 100% auto;
}

/*------------LANDING-------------*/

.top {
  display: flex; /*Allows the picture and text to wrap horizontally*/
}

.landing {
  display: inline-block;
  width: 40%;
  margin-right: 35%;
  margin-left: 1.5%;
  margin: 0 35% 20% 1.5%;
  position: relative; /*Allows the animation to effect it (left and top)*/
  animation-name: textMove;
  animation-duration: 1s;
}
/*CSS Animation*/
@keyframes textMove {
  0%    {left:300px; top:0px;}
  100%  {left:0px; top:0px;}
}

.landing h1 {
  margin: 10% 0 20% 0;
  font-size: 220px;
  font-style: italic;
}

.landing h2 {
  width: 140%; /*To ensure the div is big enough for the text to have proper hierarchy*/
  font-size: 130px;
  margin-left: 30%;
}

.shipone {
  position: relative;
  height: auto;
  margin-top: -15%;
}


/*------------PLANETS--------------*/

.planets {
  overflow: visible;
}

.smallship {
  position: sticky;
  top: 110px;
}

/*----------EARTH--------------*/

.infobuttons {
  position: absolute;
  margin: 10rem 0 0 60rem;
}

#but1, #but2, #but3 {
  width: 20%;
}

#but2 {
  margin-left: 5rem;
}

#but3 {
  margin-left: 30rem;
}

.earth {
  padding: 0 0 5% 13%;
  display: flex;
}

.titleone {
  font-size: 120px;
  width: fit-content;
  padding: 5% 18% 0 3%;
  height: fit-content;
}

.earthicon {
  width: 60%;
  height: auto;
}

.info {
  display: flex;
  position: absolute;
  margin: 20% 0 0 5%;
  padding: 0 1% 0 1%;
  height: fit-content;
  width: auto;
  background-color: #4B4E50;
  border-radius: 5px;
}

.info p {
  font-size: 35px;
  padding-left: 1rem;
  width: 22rem;
}

/*----------QUIZ SECTION----------------*/

.quiz {
  margin-bottom: 20%;
}

.titlequiz, .quizone, .quiztwo, .quizthree {
  width: 100%;
  height: auto;
  font-size: 220px;
  text-align: center;
}

.titlequiz {
  margin: 0 0 2% 0;
}

.cardone, .cardtwo, .cardthree {
  padding-right: 8%;
}

/*---------------PLUTO SHRINK SECTION--------------*/

.pluto {
  width: 100%;
  text-align: center;
  margin: 0 0 25% 0;
  height: 100%;
}

.pluto p {
  background-color: #5B6476;
  width: 70%;
  border-radius: 10px;
  margin-left: 13%;
  padding: 2% 0 2% 0;
}

.pluto h2 {
  width: fit-content;
  margin: 0 0 5% 32%;
  font-size: 200px;
}

.plutoicon {
  width: 1364px;
  transition: width 0.3s ease;
  position: absolute;
  margin-left: -36%;
}

.plutofacts {
  font-size: 40px;
  margin: 13%;
}

.sliding {
  width: 900px;
  margin: 0px 0 0 26%;
  --track-active-offset: 100%;
  --track-color-active: var(--sl-color-primary-600);
  --track-color-inactive: var(--sl-color-primary-100);
}

/*---------------GALLERY SECTION--------------*/

.imgslider h2 {
  font-size: 110px;
  margin: 40% 0 0 3%;
}

.imgslider {
  margin: 0 0 300px 5.5%; 
}

/*-----------ENDING--------------*/

.bottom {
  width: 100%;
  text-align: center;
  position: relative;
  overflow: visible;
  min-height: 200vh; /* gives it a tall scrollable area */
}

.clouds {
  margin: 0 0 0 -5%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /*Places the image above the ship while the ship is still sticky*/
}

.shipon{
  position: sticky;
  top: 140px;
}

.grey {
  background-color: #5B6476;
  width: 115%;
  height: 215px;
  margin: 0 0 -5% -4%;
}

/*@media (max-width: 768px) {
    
  .landing h1 {
    font-size: 100px;
  }
  
  .landing h2 {
    font-size: 50px;
    margin-top: 80%;
  }

  .titleone {
    margin-top: 400px;
  }

  .shipone {
    height: 800px;
  }

  .planets {
    display: flex;
    flex-direction: column;
  }

  .smallship {
    display: none;
  }

  .bottom {
    min-height: 55rem;
  }

  .clouds {
    width: 832.217px;
    height: 409.6px;
  }

  .shipon {
  margin-top: 28rem;
  height: 610px;
  width: 340px;
  }

  .earth {
    display: flex;
    flex-direction: column;
  }

  .infobuttons {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: 0px;
  }

  .info {
    position: relative;
    width: fit-content;
  }

  #but1, #but2, #but3 {
  width: 1%;
  margin-left: 0px;
  }

  .quiz{
    margin-top: 5%;
  }

  .pluto h2 {
    margin-left: 4rem;
  }

  .plutoshrink {
    width: 30rem;
  }

  .sliding {
    width: 20rem;
  }

  .grey {
    height: 165px;
  }
}

  


@media (min-width: 1024px) {
       
  .landing h1 {
    font-size: 100px;
  }
  
  .landing h2 {
    font-size: 50px;
    margin-top: 80%;
  }

  .shipone {
    height: 800px;
  }

  .planets {
    display: flex;
    flex-direction: column;
  }

  .smallship {
    display: none;
  }

  .bottom {
    height: 300px;
  }

  .clouds {
    height: 37%;
  }

  .shipon {
  top: 23rem;
  height: 37%;
  }

  .earth {
    display: flex;
    flex-direction: column;
  }

  .infobuttons {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: 0px;
  }

  .info {
    position: relative;
    width: fit-content;
  }

  #but1, #but2, #but3 {
  width: 1%;
  margin-left: 0px;
  }

  .quiz{
    margin-top: 5%;
  }

  .pluto h2 {
    margin-left: 10rem;
  }

  .plutoshrink {
    width: 30rem;
  }

  .sliding {
    width: 20rem;
  }

}