@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: linear-gradient(to right, #283457, #283f79);
}
.header {
  display: flex;
  align-items: center;
  padding: 10px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color:  rgb(208, 202, 202);
  margin:0;
}
#screen {
  background-color: #568ab8;
  background-image: url("../img/background-a089d87ba11e1a4c45a8efa960b86092.jpg");
  width: 100%;
  height: 100%;
}
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:whitesmoke;
  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: 350px;
  margin-top: 10px;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.weather-description {
  height: 150px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  color:whitesmoke;
}
.show-metric {
  padding-left: 30px;
  font-size: 90px;
  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: 20px 10px;
  color: var(--font-color-main);
}
.today-forecast {
  width: 110px;
  height: 190px;
  border-radius: 20px;
  display: flex;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--white-color);
}
.weather-icon-today img {
  width: 40px;
}
.temp-today {
  font-weight: 500;
}
.weather-main-today {
  padding: 3px 0 0 0;
  font-size: 13px;
  text-align: center;
}
.future-forecast {
  width: 70%;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-left: 10px;
  border-radius: 20px;
  background-color: var(--white-color);
}
#future-forecast-box {
  display: grid;
  grid-auto-flow: column;
  overflow-y: auto;
  gap: 10px;
  width: 95%;
  padding: 10px 12px;
  overscroll-behavior-x: contain;
}
.weather-forecast-box {
  width: 70px;
  height: 110px;
  border-radius: 15px;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid var(--font-color-main);
  transition: all 0.3s ease-in-out;
}
.weather-forecast-box:hover {
  transform: translateY(-5px);
}
.day-weather {
  font-size: 15px;
}
.weather-icon-forecast img {
  width: 30px;
}
.temp-weather {
  font-size: 12px;
}
.weather-main-forecast {
  font-size: 12px;
}

@media screen and (min-width: 430px) {
  #screen {
    max-width: 50%;
    min-width: 450px;
    height: 100%;
    margin: 50px auto;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.494);
  }


  #screen {
    width: 90%;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  }
   

  nav{
    border-radius: 0 0 20px 20px;
  }
  .city-name{
    margin-top: 20px;
  }
  .weather-icon-css {
    width: 100%;
    height: 350px;
    margin-top: 40px;
  }
  .weather-icon-css img {
    width: 25rem;
  }
  .weather-description {
   display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
  }
  .today-forecast{
    width: 140px;
  }
  .forcasts-box{
    justify-content: center;
    align-items: center;
  }
  .future-forecast{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .future-forecast {
    width: 60%;
    min-width: 70%;
  }
  .weather-forecast-box{
    width: 100px;
    min-width: 80px;
    height: 120px;
    border-radius: 20px;
    gap: 2px;
    border: 1px solid var(--font-color-main);
  }
}
.footer{
  color: whitesmoke;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  
} 