* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

body {
  min-height: 100vh;
}

.header {
  position: relative;
  background-color: #151515;
  height: 75px;
}

.header .logo {
  position: absolute;
  top: 25px;
  left: 90px;
  width: auto;
  height: 24px;
}

.header .menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: 100vh;
  background: #FFFFFF;
  transition: all 0.5s ease;
}

.header .search-button {
  position: absolute;
  top: 25px;
  right: 30px;
  width: auto;
  height: 25px;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: transparent;
}

.header .search-button .search-icon {
  width: auto;
  height: 25px;
}

.header .menu-hidden {
  left: -110%;
}

.toggle-menu-button {
  position: absolute;
  top: 25px;
  left: 30px;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background-color: transparent;
  z-index: 1;
}

.toggle-menu-button .line {
  display: block;
  width: 30px;
  height: 3.8px;
  background: #FFFFFF;
  border-radius: 2px;
  transform-origin: 4px 0px;
  transition:
    transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    opacity 0.55s ease;
}

.toggle-menu-button .line-top-checked {
  transform: rotate(45deg) translate(-2px, -1px);
  transform-origin: 0% 0%;
  background: #232323;
}

.toggle-menu-button .line-middle-checked {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

.toggle-menu-button .line-bottom-checked {
  transform: rotate(-45deg) translate(0, -1px);
  transform-origin: 0% 100%;
  background: #232323;
}

.search-container {
  position: absolute;
  top: 75px;
  width: 100vw;
  height: 90px;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.search-container-hidden {
  display: none;
}

.search-form {
  position: relative;
  width: 100%;
  height: 35px;
  margin: 0 30px;
}

.search-form .search-button {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 30px;
  height: 30px;
  scale: 0.6;
  padding: 5px;
}

.search-form .search-button .search-icon {
  width: auto;
  height: 30px;
}

.search-form .search-input {
  width: 100%;
  height: 100%;
  padding: 5px 10px 5px 35px;
  border: 1px solid #707070;
  border-radius: 5px;
  outline: none;
}

.main {
  height: calc(100vh - 75px);
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
}

.current-weather-section {
  background-color: #185E89;
  padding: 15px 20px;
  text-align: center;
  color: #FFFFFF;
}

.current-weather-title {
  font-size: 1.25rem;
  font-weight: 500;
}

.current-weather-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
}

.temperature {
  font-size: 3.7rem;
  font-weight: 600;
  margin-right: 15px;
}

.weather-icon {
  width: 75px;
  height: 75px;
}

.feels-like-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.feels-like-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.feels-like {
  font-size: 1.15rem;
}

.weather-details {
  margin: 0;
}

.wind, .humidity, .pressure {
  display: flex;
  justify-content: space-between;
  padding: 8px 5px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
}

.pressure {
  border-bottom: 1px solid #e0e0e0;
}

.wind dt, .humidity dt, .pressure dt {
  font-weight: normal;
  margin: 0;
}

.wind dd, .humidity dd, .pressure dd {
  margin: 0;
}

.daytime-periods-section {
  background-color: rgba(239, 239, 239, 0.8);
  padding: 20px 10px 10px 10px;
  margin-left: 5px;
}

.daytime-periods-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 12px 12px;
  color: #404040;
  text-decoration: underline;
}

.daytime-periods-container {
  display: flex;
  justify-content: space-between;
  margin: 0 15px;
}

.period {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.period:hover {
  background-color: rgba(240, 240, 240, 0.8);
}

.period img.forecast-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.period span {
  font-size: 0.9rem;
  color: #505050;
  text-transform: capitalize;
}

.hourly-forecast-section {
  border-radius: 12px;
  padding: 0px 15px 15px 15px;
  margin-top: 15px;
}

.hourly-forecast-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 12px 12px;
  color: #404040;
  text-decoration: underline;
}

.hourly-forecast-container {
  display: flex;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
  gap: 10px;
  padding-bottom: 10px;
}

.hourly-forecast-container::-webkit-scrollbar {
  height: 6px;
}

.hourly-forecast-container::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-forecast-container::-webkit-scrollbar-thumb {
  background-color: #d0d0d0;
  border-radius: 20px;
}

.hourly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 10px 5px;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hourly-item:hover {
  transform: translateY(-3px);
  background-color: rgba(240, 240, 240, 0.7);
}

.hourly-time {
  font-size: 0.85rem;
  color: #505050;
  margin-bottom: 5px;
}

.hourly-icon {
  width: 35px;
  height: 35px;
  margin: 3px 0;
}

.hourly-temp {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 5px;
}

.forecast-section {
  position: fixed;
  bottom: 0;
  display: flex;
  overflow-x: auto;
  width: 100%;
  background: #185E89;
}

.forecast-card {
  flex: 0 0 auto;
  width: 110px;
  padding: 10px 0;
  border-right: 1px solid #dfdfdf;
  border-left: 1px solid #dfdfdf;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.forecast-card img {
  width: 48px;
  height: 48px;
}