* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Quicksand', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100vh;
  background-size: cover;
  color: #fff;
  transition: background-image 1s ease-in-out;
}

.btn {
  width: 60px;
  height: 60px;
  border: 0;
  background: url("https://www.pngarts.com/files/7/Update-Button-PNG-Image.png");
  background-size: contain;
  background-repeat: no-repeat;
  filter: grayscale(1);
  margin: 10px;
  position: absolute;
  opacity: 0.65;
  transition: 0.2s;
}

.btn_weather {
  left: 10px;
  top: 10px;
}

.btn_quote {
  bottom: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
}

.btn:hover {
  filter: grayscale(.8);
  opacity: 0.8;
}

.btn:active,
.btn:focus {
  outline: 0;
}

.btn:active{
  transform: scale(1.02)
}

.quote {
  font: 1.2rem 'Quicksand', sans-serif;
  margin: 4.2em 10px 3em;
  background: rgba(0, 0, 0, 0.65) ;
  border: 2px solid #000;
  border-radius: 1em;
  width: 800px;
  height: 130px;
  filter: drop-shadow(2px 4px 6px rgba(255,255,255,0.2));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.quote figcaption {
  width: 200px;
  text-align: right;
  align-self: flex-end;
  font-size: 0.7em;
  margin: 0 0.8em 0.6em;
  opacity: 0.7;
}

.quote blockquote {
  margin: 1em;
}

.quote figcaption {
  text-align: right;
}

.time {
  font-size: 8rem;
}

.date {
  font-size: 1.5rem;
}

h1 {
  margin-bottom: 3rem;
}

h2 {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.time,
.date,
h1, h2 {
  filter: drop-shadow(2px 2px 1px black);
}

.weather-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 200px;
  background: linear-gradient(to right top, rgba(0, 0, 0, 0.5), transparent 60%);
  border-radius: 1em;
  border: 1px solid rgba(31, 31, 31, 0.837);
  filter: drop-shadow(1px 1px 3px black);
}

.city,
.weather-icon,
.temperature,
.weather-humidity,
.weather-wind-speed,
.weather-description {
  filter: drop-shadow(1px 1px 1px black);
}

.city {
  font-size: 1.5em;
  border-bottom: 1px solid rgb(255, 255, 255, 0.5);
}

.weather-icon {
  font-size: 90px;
  transition: 0.2s;
}

.weather-icon:hover {
  transform: scale(1.2);
}

@media (max-width: 1260px) {
  .weather-widget {
    width: 150px;
  }

  .city {
    font-size: 1.3em;
  }

  .weather-icon {
    font-size: 50px;
  }

  .weather-description,
  .weather-wind-speed,
  .weather-humidity {
    font-size: 14px;
  }

  .quote {
    width: 600px;
  }

}

@media (max-width: 950px) {
  .time {
    font-size: 6rem;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1em;
  }

  .btn_weather {
    width: 50px;
    height: 50px;
  }

  .quote {
    width: 300px;
  }

  .quote blockquote {
    margin: 0.4em;
  }
  
  .quote figcaption {
    width: 250px;
    font-size: 0.7em;
  }
}

@media (max-width: 700px) {

  .quote {
    margin-top: 7em;
  }

  .time {
    font-size: 4rem;
  }

  .weather-widget {
    flex-direction: row;
    flex-wrap: wrap;
    width: 200px;
    align-items: center;
  }

  .city {
    border-bottom: none;
    font-size: 1em;
    flex: 0 1 60%;
  }

  .weather-icon {
    font-size: 36px;
  }

  .temperature {
    font-size: 14px;
  }

  .weather-humidity,
  .weather-wind-speed {
    flex-grow: 1;
  }

  .weather-description {
    flex: 1 0 100%;
  }
}