@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  font-family: "Rubik", sans-serif;
}
:root {
  --font-color-main: #332464;
  --white-color: #fff;
}
body {
  background-color: #B4D6F3;
}

#screen {
  background-color: #E0EEFA;
  width: 100%;
  height: auto;
  max-width: 400px;
  min-width: 320px;
  margin: 30px auto;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding-bottom: 20px;
}
nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background-color: var(--font-color-main);
}
nav ul {
  display: flex;
  gap: 2pc;
}
nav ul li a {
  color: var(--white-color);
  font-size: 18px;
}
.active {
  background-color: var(--white-color);
  color: var(--font-color-main);
  border-radius: 100px;
  padding: 8px 15px;
}
/*  */
.city-name {
  color: var(--font-color-main);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
  gap: 5px;
}
.city-name i {
  font-size: 20px;
}
.weather-icon-css {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 180px;
  margin-top: 10px;
}

.weather-icon-css img {
  width: 120px;
  max-width: 60%;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.weather-description {
  height: 90px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  color: var(--font-color-main);
}
.show-metric {
  padding-left: 18px;
  font-size: 48px;
  font-weight: 550;
}
.weather-details {
  font-size: 14px;
  margin: 50px 20px 30px 10px;
  width: 100px;
  display: flex;
  flex-direction: column;
}
.weather-details .h-f {
  display: flex;
  gap: 5px;
}
.forcasts-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 5px;
  color: var(--font-color-main);
}
.today-forecast {
  width: 90px;
  height: 120px;
  border-radius: 15px;
  display: flex;
  gap: 3px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--white-color);
}
.weather-icon-today img {
  width: 28px;
}
.temp-today {
  font-weight: 500;
}
.weather-main-today {
  padding: 3px 0 0 0;
  font-size: 13px;
  text-align: center;
}
.future-forecast {
  width: 60%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-left: 5px;
  border-radius: 15px;
  background-color: var(--white-color);
}
#future-forecast-box {
  display: grid;
  grid-auto-flow: column;
  overflow-y: auto;
  gap: 6px;
  width: 95%;
  padding: 6px 8px;
  overscroll-behavior-x: contain;
}
.weather-forecast-box {
  width: 48px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  border: 1px solid var(--font-color-main);
  transition: all 0.3s ease-in-out;
}
.weather-forecast-box:hover {
  transform: translateY(-3px);
}
.day-weather {
  font-size: 11px;
}
.weather-icon-forecast img {
  width: 18px;
}
.temp-weather {
  font-size: 10px;
}
.weather-main-forecast {
  font-size: 10px;
}

@media screen and (min-width: 430px) {
  #screen {
    max-width: 350px;
    min-width: 320px;
    height: auto;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  }
  nav{
    border-radius: 0 0 20px 20px;
  }
  .city-name{
    margin-top: 20px;
  }
  .weather-icon-css {
    width: 100%;
    height: 180px;
    margin-top: 20px;
  }
  .weather-icon-css img {
    width: 120px;
  }
  .weather-description {
    margin-top: 18px;
  }
  .today-forecast {
    width: 90px;
    height: 120px;
  }
  .future-forecast {
    width: 60%;
    min-width: 60%;
    height: 120px;
  }
  .weather-forecast-box {
    width: 48px;
    min-width: 40px;
    height: 70px;
    border-radius: 10px;
    gap: 1px;
  }
}