@import url('https://fonts.googleapis.com/css?family=Quicksand&display=swap');

body {
  background-repeat: no-repeat;
  width: 80%;
  background-size: 100% 240%;
  display: inline;
  overflow: hidden;
}

p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
}

.sky {
  display: block;
  position: relative;
  width: 100%;
  height: 500px;
  background: lighten(desaturate(blue, 30%), 40%);
  animation:
    sunset 4s ease-in-out 1.5s forwards 1,
    sunrise 4s ease-in-out 10s forwards 1;
}

.heading {
  padding-top: 3%;
}

#words {
  font-size: 30px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: 0.2px;
  text-align: center;
  color: #ffffff;
  margin: 0;
}

.toggle-box {
  width: 10%;
  border-radius: 20px;
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
  background-color: #ffffff;
  margin-left: 75%;
  padding: 1rem 2rem 1rem 2rem;
  text-align: center;
}

#words2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  text-align: center;
  letter-spacing: 0.1px;
  color: #000000;
  margin-top: 0rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 78px;
  height: 46px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  -o-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  width: 32px;
  height: 32px;
  left: 7px;
  bottom: 7px;
  background-color: white;
  -webkit-transition: .4s;
  -o-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #ffd976;
}

input:focus + .slider {
  -webkit-box-shadow: 0 0 1px #ffd976;
  box-shadow: 0 0 1px #ffd976;
}

input:checked + .slider:before {
  -webkit-transform: translateX(32px);
  -ms-transform: translateX(32px);
  transform: translateX(32px);
}

.slider.round {
  border-radius: 23px;
}

.slider.round:before {
  border-radius: 50%;
}



img.up{
    content: "";
    display: block;
    border-radius: 50%;
    height: 100px;
    width: 100px;
    position: absolute;
    -webkit-animation:
      am 2s ease-in-out forwards 1;
    animation:
      am 2s ease-in-out forwards 1;
  }

  img.down{
      content: "";
      display: block;
      border-radius: 50%;
      height: 100px;
      width: 100px;
      position: absolute;
      -webkit-animation:
        pm 2s ease-in-out forwards 1;
      animation:
        pm 2s ease-in-out forwards 1;
    }

@keyframes am {
  0% { top: 110%; left: -10rem; opacity: 0.3}
  100% { top: 10%; left: 10%; opacity: 1}

}

@keyframes pm {
  0% { top: 10%; left: 10%; opacity: 1}
  100% { top: 110%; left: -10rem; opacity: 0.3}
}

@keyframes sunset {
  75% {background: gold;}
  80% { background: DarkGoldenrod1;}
  90% { background: orchid4;}
  100% { background: darken(desaturate(blue, 30%), 40%);}
}

@keyframes sunrise {
  0% { background: darken(desaturate(blue, 30%), 40%);}
  20% { background: orchid4;}
  60% { background: DarkGoldenrod1;}
  70% {background: gold;}
  100% {background:lighten(desaturate(blue, 30%), 40%)}
}