* {
  color: #f8ffe5;  
}
h1, h2, h3 {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 300;
  margin: 0;
  text-align: right;
}
h2 {
  font-size: 1.7em;
  position: relative;
  top: -0.5em;
}
h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  margin-left: 0.5em;
  font-weight: 400;
  text-align: left;
  position: relative;
  top: -0.4em;
  line-height: 1.3em;
}
.loader {
  display: block;
  width: 40px;
  height: 40px;
  border: 6px solid #f8ffe5;
  border-top: 6px solid #51fbcd;
  border-radius: 50%;
  box-shadow: 0 0 3px #999;
  animation: spin 1.5s linear 5, off 1s 6s forwards;
  position: relative;
  top: 120px;
  left: 230px; 
}
.loader-container {
  max-width: 500px;
  position: absolute;
  top: 4em;
  left: 30%;
}
.container {
  max-width: 500px;
  background-color: #06d6a0;
  margin: 2em auto;
  border-radius: 15px;
  position: relative;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 15px 5px -14px #333;
  opacity: 0;
  animation: fadeIn 2s 7s forwards;
}
.header-container {
  display: flex;
  width: 100%;
  height: 70px;
  position: relative;
}
.CF {
  width: 25%;
  margin-top: 0.2em;
  padding-left: 0.4em;
}
.switch-body {
  display: inline-block;
  width: 36px;
  height: 14px;
  margin: 1em auto;
  padding: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 3px solid #f8ffe5;
  border-radius: 15px;
  float: left;
  cursor: pointer;
  box-shadow: 0 1px 2px -1px #333;
}
.switch-body input {
  display: none;
}
.celsius,
.fahrenheit {
  display: inline-block;
  margin: 0.5em 0.2em;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  float: left;
}
.switch {
  width: 14px;
  height: 14px;
  background-color: #f8ffe5;
  border-radius: 50%;
  position: absolute;
  top: 4;
  left: 5;
  transition: 0.2s ease-in;
}
input:checked + .switch {
  transform: translateX(22px);
}
.widget-title {
  width: 75%;
  height: 50px;
}
.widget-title h1 {
  margin: 0.1em 0.4em 0 0;
  font-size: 2.5em;
  text-transform: uppercase;
}
.info-container {
  display: flex;
  width: 100%;
  height: 210px; 
}
.left {
  width: 50%;
  margin: 1em 0;
  padding: 1em;
}
.weather-icon {
  max-width: 90px;
  position: relative;
  top: -1.3em;
  left: 0.5em;
}
.weather-icon img {
  max-width: 100%;
}
.right {
  width: 50%;
  padding: 1em;
}
.right h3 {
  top: -0.7em;
}
.tempr {
  display: block;
  font-size: 6em;
  position: relative;
  top: -0.1em;
}
.city {
  position: relative;
  top: -0.4em;
}
.fa-map-marker {
  font-size: 0.7em;
  margin-right: 0.2em;
  position: relative;
  top: -0.1em;
}
.today-date {
  top: -1em;
  text-align: right;
}
.credits {
  max-width: 500px;
  margin: 3em auto 0;
  position: relative;
  opacity: 0;
  animation: fadeIn 2s 7s forwards;
}
.credits h3 {
  margin-top: 0.2em;
  color: #333;
  font-size: 0.9em;
  font-weight: 300;
  text-align: center;
}
.credits a {
  text-decoration: none;
  color: #04ae81;
}
/* Animations */

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes off {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Media Queries */

@media screen and 
      (min-width: 320px) and 
      (max-width: 640px) and 
      (orientation: portrait){
  .container {
    min-height: 300px;    
  }
  .loader-container {
    left: -4.5em;
  }
  .CF {
    width: 40%
  }
  .widget-title {
    width: 60%;
  }
  .widget-title h1 {
    font-size: 2em;
  }
  .tempr {
    font-size: 5em;
    top: 0.1em;
  }
}