@import url("https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");

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

:root {
  --WHITE: #ffffff;
  --BLACK: #000000;
  --DEEP_GRAY: #303030;
  --LIGHT_GRAY: #979797;
}

body {
  font-family: "Inter", sans-serif;
  background: url("./assets/desktop/bg-image-daytime.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  padding-top: 3.5rem;
}

blockquote {
  font-family: inherit;
  color: var(--WHITE);
  font-size: 1.12rem;
  max-width: 40%;
  line-height: 28px;
}

cite {
  font-family: inherit;
  color: var(--WHITE);
  font-size: 1.12rem;
  font-weight: bold;
  display: block;
}

.quote-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-left: 10rem;
}

.quote {
  display: flex;
}

.clock_details_wrapper {
  width: 80%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6rem;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: last baseline;
  transition: transform 500ms ease;
}
.details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.greeting_wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.greeting {
  font-family: inherit;
  letter-spacing: 4px;
  line-height: 28px;
  color: var(--WHITE);
  font-size: 1.25rem;
}
.time_wrapper {
  display: flex;
  align-items: last baseline;
  gap: 0.5rem;
}
.mobile_clock_details_wrapper {
  display: none;
}
.time {
  font-family: inherit;
  font-size: 12.5rem;
  letter-spacing: -5px;
  font-weight: bold;
  color: var(--WHITE);
  line-height: 200px;
}
.region {
  font-family: inherit;
  font-size: 2.5rem;
  line-height: 28px;
  color: var(--WHITE);
}
.city {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 4.8px;
  line-height: 28px;
  color: var(--WHITE);
}
.button_wrapper {
  width: 110px;
  height: 40px;
  background-color: var(--WHITE);
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
  position: absolute;
  z-index: 9999;
  right: 0;
}
.more_btn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
}
button {
  width: 100%;
  height: 100%;
  background-color: var(--BLACK);
  border-radius: 50%;
  border: 0;
}
button:hover {
  background-color: var(--LIGHT_GRAY);
}
.more {
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  line-height: 28px;
  letter-spacing: 2px;
  color: var(--DEEP_GRAY);
}
.more:hover {
  opacity: 50%;
}
.overlay {
  height: 50vh;
  background-color: var(--LIGHT_GRAY);
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-left: 10rem;
  padding-top: 4.7rem;
  opacity: 0;
  transition: opacity 500ms ease;
}
.user_details {
  width: 60%;
  display: flex;
  justify-content: space-between;
}
.vertical_line {
  border: 1px solid var(--BLACK);
  opacity: 25%;
}
.timezone-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
}
.timezone {
  font-family: inherit;
  font-size: 1rem;
  line-height: 28px;
  letter-spacing: 3px;
  color: var(--BLACK);
}
.zone,
.number_of_days,
.no_of_day,
.week_number {
  font-family: inherit;
  font-size: 3.5rem;
  font-weight: bold;
}
.first_part,
.second_part {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}
.day,
.weekday,
.week {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 3px;
  line-height: 28px;
  color: var(--BLACK);
}
.refresh_btn {
  cursor: pointer;
}
.mobile_overlay {
  display: none;
}

@media (max-width: 425px) {
  body {
    background: url("./assets/mobile/bg-image-daytime.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 2rem;
    overflow: hidden;
    font-family: "Inter", sans-serif;
  }
  .quote-wrapper {
    padding-left: 0;
    width: 90%;
    margin: auto;
  }
  blockquote {
    max-width: 100%;
    font-size: 0.8rem;
    letter-spacing: 0px;
    line-height: 22px;
  }
  cite {
    font-size: 0.8rem;
    letter-spacing: 0px;
    line-height: 22px;
  }
  .clock_details_wrapper {
    display: none;
  }
  .time {
    font-size: 5rem;
  }
  .mobile_greeting {
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--WHITE);
  }
  .mobile_clock_details_wrapper {
    display: block;
    position: absolute;
    top: 22rem;
    left: 1.63rem;
    transition: transform 500ms ease;
  }
  .mobile_details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile_greeting_wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .mobile_time_wrapper {
    display: flex;
    align-items: last baseline;
    gap: 1rem;
  }
  .mobile_region {
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 28px;
    color: var(--WHITE);
  }
  .mobile_time {
    font-family: inherit;
    font-size: 5rem;
    font-weight: bold;
    color: var(--WHITE);
  }
  .mobile_city {
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 3px;
    line-height: 28px;
    font-weight: bold;
    color: var(--WHITE);
  }
  .mobile_button_wrapper {
    width: 105px;
    height: 33px;
    background-color: var(--WHITE);
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.7rem;
    position: absolute;
    z-index: 9999;
    left: 0;
    margin-top: 3rem;
  }
  .mobile_more {
    letter-spacing: 3.75px;
    line-height: 14px;
    font-size: 0.75rem;
    font-weight: bold;
  }
  .mobile_more_btn {
    width: 28px;
    aspect-ratio: 1;
  }
  .overlay {
    display: none;
  }
  .mobile_overlay {
    display: block;
    height: 37vh;
    background-color: var(--LIGHT_GRAY);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-top: 3rem;
    opacity: 0;
    transition: opacity 500ms ease;
  }
  .mobile_user_details {
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile_timezone_wrapper,
  .mobile_year_wrapper,
  .mobile_weekday_wrapper,
  .mobile_week_number_wrapper {
    display: flex;
    justify-content: space-between;
  }
  .mobile_timezone,
  .mobile_day,
  .mobile_weekday,
  .mobile_week {
    font-family: inherit;
    font-size: 0.7rem;
    letter-spacing: 2px;
    line-height: 28px;
    color: var(--DEEP_GRAY);
  }
  .mobile_zone,
  .mobile_number_of_days,
  .mobile_no_of_day,
  .mobile_week_number {
    font-family: inherit;
    font-size: 1.3rem;
    color: var(--DEEP_GRAY);
    font-weight: bold;
  }
}
