@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Lexend:wght@300;400;500;700&family=Playfair+Display:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap");

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

body {
  height: 100vh;
  width: 100%;
  font-family: "Lexend", sans-serif;
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 75px 150px;
}

header form input {
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2rem);
  padding: 12px 24px;
  color: white;
}

input:focus {
  outline-width: 0;
}

.city-search-container {
  position: relative;
}

header form img {
  max-width: 14px;
  position: absolute;
  top: 30%;
  right: 20px;
}

::placeholder {
  color: rgb(255, 255, 255);
  opacity: 0.4;
}

.container {
  background-image: none;
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: background-image 1s ease-in-out;
}

.weather-info {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 65%;
  padding: 24px;
}

.weather-info-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 1380px;
}

.weather-top {
  display: flex;
  gap: 24px;
}

.weather-today-container {
  min-width: 360px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 48px;
  position: relative;
}

.weather-today-container img {
  max-width: 70px;
  position: absolute;
  top: 48px;
  right: 48px;
}

.current-temperature {
  font-size: 60px;
  position: absolute;
  top: 37%;
}

.other-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.other-info p {
  font-size: 12px;
  opacity: 0.4;
}

.weather-daily-container {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.weather-daily-container img {
  max-width: 48px;
}

.weather-daily,
.weather-hourly,
.weather-today-container {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2rem);
}

.weather-daily {
  height: 360px;
  width: 180px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.weather-daily p {
  font-size: 12px;
  opacity: 0.4;
}

.daily-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.weather-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.weather-hourly-container {
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.weather-hourly {
  padding: 30px 30px;
  width: 156.5px;
  height: 156.5px;
  flex-shrink: 0;
  flex-grow: 100;
  position: relative;
}

.weather-hourly img {
  max-width: 25px;
  margin-bottom: 8px;
}

.hourly-temperature {
  font-size: 24px;
}

.hourly-time {
  font-size: 12px;
  opacity: 0.4;
  padding-bottom: 20%;
}

.hourly-section {
  display: flex;
  gap: 18px;
  height: 100%;
  width: 100%;
  /* position: absolute;
  top: 0;
  left: 0; */
}

.hourly-sections-container {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hourly-section-btn {
  width: 10px;
  height: 10px;
  background-color: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.788);
}

.hourly-section-btn:hover:not(.section-selected) {
  cursor: pointer;
}

.section-selected {
  background-color: white;
}

.unit-toggle-container {
  position: relative;
  width: 50px;
  height: 25px;
  border-radius: 25px;
  backdrop-filter: blur(2em);
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.2s ease;
}

.unit-toggle-container .unit-toggle-button {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: white;
  transition: 0.2s ease;
}

.unit-toggle-container.active {
  background-color: rgba(255, 255, 255, 0.171);
}

.unit-toggle-container.active .unit-toggle-button {
  transform: translateX(26px);
}

.header-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
