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

body {
  background-color: azure;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  background-image: url("https://images.pexels.com/photos/531756/pexels-photo-531756.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
  background-size: cover;
}

.header {
  text-align: center;
  color: #fff;
  background-color: rgb(13 110 250 / 50%);
  font-family: "Times New Roman", Times, serif;
}

.weather-box {
  width: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.card {
  width: 30rem;
  height: 15rem;
  background-color: whitesmoke;
  opacity: 0.85;
}

.card-title {
  font-family: monospace;
  text-align: center;
  padding-top: 1rem;
  font-weight: bolder;
}

.card-text {
  color: darkslategray;
  font-family: sans-serif;
  font-weight: bolder;
}

.clock {
  display: flex;
  justify-content: center;
}

.clock div {
  margin: 5px;
  position: relative;
  color: darkslategrey;
}

.clock span {
  width: 10vw;
  height: 15vh;
  background-color: whitesmoke;
  opacity: 0.85;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.clock .text {
  height: 8vh;
  font-size: 1rem;
  text-transform: uppercase;
  background: rgb(212, 208, 189);
  opacity: 0.8;
}

.clock #ampm {
  bottom: 0;
  color: darkslategray;
  position: absolute;
  width: 3rem;
  height: 2.5rem;
  font-size: 1.5rem;
  opacity: 0.8;
  background: cornsilk;
}

.usage_guide {
  background-color: cornsilk;
  width: 80vw;
  height: 50vh;
  font-family: "Times New Roman", Times, serif;
  margin: 6rem 8rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: darkslategray;
  visibility: hidden;
  position: absolute;
  z-index: 2;
}

.show {
  visibility: visible;
  transition: 1s ease-in-out;
}

.icon {
  display: none;
}

@media (max-width: 1300px) {
  .card {
    height: 20rem;
  }
}

@media (max-width: 980px) {
  .clock span {
    width: 12vw;
  }
  .usage_guide {
    width: auto;
    margin: 8rem 5rem;
  }
}

@media (max-width: 800px) {
  .clock span {
    width: 14vw;
  }
  .weather-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .card {
    width: auto;
    height: auto;
    text-align: center;
  }
  .usage_guide {
    width: auto;
    margin: 6rem 6rem;
  }
}

@media (max-width: 680px) {
  .clock span {
    width: 20vw;
  }
  .weather-box {
    display: flex;
    flex-direction: column;
    width: auto;
  }
  .card {
    width: 30rem;
    text-align: center;
  }
  .usage_guide {
    width: auto;
  }
}

@media (max-width: 540px) {
  .clock {
    justify-content: flex-start;
    width: auto;
  }
  .clock span {
    width: 25vw;
  }
  .usage_guide {
    width: auto;
    height: fit-content;
  }
}

@media (max-width: 400px) {
  .clock span {
    height: 10vh;
    font-size: 3rem;
  }
  .clock .text {
    height: 6vh;
    font-size: 0.8rem;
  }
  .clock #ampm {
    width: 3rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
  .sunrise-card {
    display: flex;
    align-items: center;
  }
  .sunrise-card-text {
    width: 20rem;
  }
}

@media (max-width: 330px) {
  .clock span {
    height: 8vh;
    font-size: 3rem;
  }
  .clock .text {
    height: 4vh;
    font-size: 0.8rem;
  }
  .clock #ampm {
    width: 2.2rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
  .text {
    display: none;
  }
  .icon {
    display: block;
  }
  .usage_guide {
    margin: 5rem 3rem;
  }
}

@media (max-width: 260px) {
  .sunrise-card-text {
    width: 11rem;
  }
  .clock div {
    margin: 3px;
  }
  .clock span {
    height: 8vh;
    font-size: 2.5rem;
  }
  .clock .text {
    height: 4vh;
    font-size: 0.6rem;
  }
  .clock #ampm {
    width: 2rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  .usage_guide {
    margin: 3rem 1rem;
  }
}
