/* main background style*/
body {
  background-color: #00212e;
  font-family: "Raleway", sans-serif;
  font-size: 1.75rem;
  text-align: center;
  text-transform: uppercase;
}

/* weather app container */
.weather-container {
  background-image: linear-gradient(to top, #256179, #33c0d3);
  color: #e3f2fd;
  width: 16rem;
  height: 25rem;
  position: relative;
  display: block;
  text-align: center;
  padding: 2.5rem 3.125rem;
  margin: 4rem auto 1rem auto;
}

/* container contents in general */
.container-contents {
  display: none;
}

.location {
  font-size: 1.25rem;
}

#temp, #temp-unit {
  font-size: 3rem;
  margin-bottom: 1rem;
}

#desc {
  font-size: 1rem;
}

/* for the respective weather icons */
.weather-icons {
  position: relative;
  display: inline-block;
  height: 5em;
}

/* switch between celsius or fahrenheit */
#switch {
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 4rem;
}

footer {
  font-size: 0.74rem;
  color: #e3f2fd;
  text-transform: none;
}

footer a {
  text-decoration: none;
  color: cornflowerblue;
}

div.hide {
  display: none;
}
/* designs of each respective weather icon */

.cloud {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 3.6875rem;
  height: 3.6875rem;
  margin: -1.84375rem;
  background: #e3f2fd;
  border-radius: 50%;
  box-shadow: -2.1875rem 0.6875rem 0 -0.6875rem #e3f2fd, 2.0625rem 0.9375rem 0 -0.9375rem #e3f2fd, 0 0 0 0.375rem #e3f2fd, -2.1875rem 0.6875rem 0 -0.3125rem #e3f2fd, 2.0625rem 0.9375rem 0 -0.5625rem #e3f2fd;
}

.cloud:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -0.5rem;
  display: block;
  width: 4.5625rem;
  height: 1rem;
  background: #e3f2fd;
  box-shadow: 0 0.375rem #e3f2fd;
}

.cloud:nth-child(2) {
  z-index: 0;
  background: #e3f2fd;
  box-shadow: -2.1875rem 0.6875rem 0 -0.6875rem #e3f2fd, 2.0625rem 0.9375rem 0 -0.9375rem #e3f2fd, 0 0 0 0.375rem #e3f2fd, -2.1875rem 0.6875rem 0 -0.3125rem #e3f2fd, 2.0625rem 0.9375rem 0 -0.5625rem #e3f2fd;
  opacity: 0.3;
  -webkit-transform: scale(0.5) translate(6rem, -3rem);
  -ms-transform: scale(0.5) translate(6rem, -3rem);
  -webkit-animation: cloud 4s linear infinite;
}

.cloud:nth-child(2):after {
  background: #e3f2fd;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem;
  background: #FFCA28;
  border-radius: 50%;
  box-shadow: 0 0 0 0.375rem #FFCA28;
  -webkit-animation: spin 12s infinite linear;
  animation: spin 12s infinite linear;
}

.rays {
  position: absolute;
  top: -2rem;
  left: 50%;
  display: block;
  width: 0.375rem;
  height: 1.125rem;
  margin-left: -0.1875rem;
  background: #FFCA28;
  border-radius: 0.25rem;
  box-shadow: 0 5.375rem #FFCA28;
}

.rays:before,
.rays:after {
  content: '';
  position: absolute;
  top: 0rem;
  left: 0rem;
  display: block;
  width: 0.375rem;
  height: 1.125rem;
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
  -webkit-transform-origin: 50% 3.25rem;
  -ms-transform-origin: 50% 3.25rem;
  transform-origin: 50% 3.25rem;
  background: #FFCA28;
  border-radius: 0.25rem;
  box-shadow: 0 5.375rem #FFCA28;
}

.rays:before {
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}
*/
.cloud + .sun {
  margin: -2rem 1rem;
}

/*.rain /* removing this removes lower half the rain*/
.lightning,
.snow {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 3.75rem;
  height: 1.5rem; /*orig height: 1.5rem */
  margin: 0.375rem 0 0 -2rem; /*margins moves cloud; orig t-margin: 0.375em*/
  background: #e3f2fd;
}

.rain:after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 90%;
  left: 50%;
  width: 1.125rem;
  height: 1.125rem;
  margin: -1em 0 0 -0.25rem;
  background: #0cf;
  border-radius: 100% 0 60% 50% / 60% 0 100% 50%;
  box-shadow: 0.625rem 0.875rem 0 -0.125rem rgba(255, 255, 255, 0.2), -0.875rem 1.125rem 0 -0.125rem rgba(255, 255, 255, 0.2), -1.375rem -0.125rem 0 rgba(255, 255, 255, 0.2);
  -webkit-transform: rotate(-28deg);
  -webkit-animation: rain 3s linear infinite;
}

.bolt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 0.5rem;
  margin: -0.875rem 0 0 -0.5rem;
  color: #FFCA28;
  background: #FFCA28;
  opacity: 0.3;
  -webkit-animation: lightning 2s linear infinite;
  animation: lightning 2s linear infinite;
}

.bolt:nth-child(2) {
  width: 0.5rem;
  height: 0.25rem;
  margin: -1.875rem 0 0 -1.5rem;
  -webkit-transform: translate(2.5rem, 2.25rem);
  -ms-transform: translate(2.5rem, 2.25rem);
  opacity: 0.2;
  -webkit-animation: lightning 1.5s linear infinite;
}

.bolt:before,
.bolt:after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  margin: -1.75rem 0 0 -1.25rem;
  border-top: 1.25rem solid transparent;
  border-right: 0.75rem solid #FFCA28;
  border-bottom: 0.75rem solid #FFCA28;
  border-left: 0.5rem solid transparent;
  -webkit-transform: skewX(-10deg);
  -ms-transform: skewX(-10deg);
}

.bolt:after {
  margin: -0.25rem 0 0 -0.0125em;
  border-top: 0.75rem solid #FFCA28;
  border-right: 0.5rem solid transparent;
  border-bottom: 1.25rem solid transparent;
  border-left: 0.75rem solid #FFCA28;
  -webkit-transform: skewX(-10deg);
  -ms-transform: skewX(-10deg);
}

.bolt:nth-child(2):before {
  margin: -0.875rem 0 0 -0.75rem;
  border-top: 0.625rem solid transparent;
  border-right: 0.375rem solid #FFCA28;
  border-bottom: 0.375rem solid #FFCA28;
  border-left: 0.25rem solid transparent;
}

.bolt:nth-child(2):after {
  margin: -0.125rem 0 0 0;
  border-top: 0.375rem solid #FFCA28;
  border-right: 0.25rem solid transparent;
  border-bottom: 0.625rem solid transparent;
  border-left: 0.375rem solid #FFCA28;
}

.flake:before,
.flake:after {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -1.25rem 0 0 -1.25rem;
  content: '\2744';
  color: #37474F;
  list-height: 1erm;
  opacity: 0.2;
  -webkit-animation: spin 8s linear infinite reverse;
  animation: spin 8s linear infinite reverse;
}

.flake:after {
  margin: -0.125rem 0 0 -1.375rem;
  font-size: 1.5rem;
  opacity: 0.4;
  -webkit-animation: spin 14s linear infinite;
  animation: spin 14s linear infinite;
}

.flake:nth-child(2):before {
  margin: -0.875rem 0 0 0.25rem;
  font-size: 1.25rem;
  opacity: 0.2;
  -webkit-animation: spin 10s linear infinite;
  animation: spin 10s linear infinite;
}

.flake:nth-child(2):after {
  margin: 0.5rem 0 0 0.125rem;
  font-size: 2rem;
  opacity: 0.4;
  -webkit-animation: spin 16s linear infinite reverse;
  animation: spin 16s linear infinite reverse;
} */
/* For the animations */

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes cloud {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(0.5) translate(-6rem, -3rem);
  }
}

@keyframes cloud {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(0.5) translate(-6rem, -3rem);
    transform: scale(0.5) translate(-6rem, -3rem);
  }
}

@-webkit-keyframes rain {
  0% {
    background: #0cf;
    box-shadow:
      0.625rem 0.875rem 0 -0.125rem rgba(255, 255, 255, 0.2),
      -0.875rem 1.125rem 0 -0.125rem rgba(255, 255, 255, 0.2),
      -1.375rem -0.125rem 0 #0cf;
  }

  25% {
    box-shadow:
      0.625rem 0.875rem 0 -0.125rem rgba(255, 255, 255, 0.2),
      -0.875rem 1.125rem 0 -0.125rem #0cf,
      -1.375rem -0.125rem 0 rgba(255, 255, 255, 0.2);
  }

  50% {
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
      0.625rem 0.875rem 0 -0.125rem #0cf,
      -0.875rem 1.125rem 0 -0.125rem rgba(255, 255, 255, 0.2),
      -1.375rem -0.125rem 0 rgba(255, 255, 255, 0.2);
  }

  100% {
    box-shadow:
      0.625rem 0.875rem 0 -0.125rem rgba(255, 255, 255, 0.2),
      -0.875rem 1.125rem 0 -0.125rem rgba(255, 255, 255, 0.2),
      -1.375rem -0.125rem 0 #0cf;
  }
}

@-webkit-keyframes lightning {
  45% {
    color: #FFCA28;
    background: #FFCA28;
    opacity: 0.2;
  }
  50% {
    color: #FFCA28;
    background: #FFCA28;
    opacity: 1;
  }
  55% {
    color: #FFCA28;
    background: #FFCA28;
    opacity: 0.2;
  }
}

@keyframes lightning {
  45% {
    color: #FFCA28;
    background: #FFCA28;
    opacity: 0.2;
  }
  50% {
    color: #FFCA28;
    background: #FFCA28;
    opacity: 1;
  }
  55% {
    color: #FFCA28;
    background: #FFCA28;
    opacity: 0.2;
  }
}


