.attribution {
  font-size: 11px;
  text-align: center;
  /* position: fixed; */
  bottom: 10px;
  width: 100%;
  z-index: 1000;
  margin-top: auto;
}
.attribution a {
  color: hsl(152, 90%, 48%);
}

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom, rgb(5, 8, 44), rgb(3, 1, 115));
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
}

nav{
 margin: 25px;
 display: flex;
 justify-content: space-between;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.header {
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white !important;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.search form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header input {
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.header input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

.header button {
  background-color: hsl(228, 45%, 44%);
  border: none;
  color: white;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.header button:hover {
  background-color: hsl(228, 45%, 34%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-content {
  display: flex;
  flex: 1;
  gap: 20px;
  padding: 20px;
}

.section-1 {
  flex: 2;
  /* backdrop-filter: blur(5px); */
  /* background-color: rgba(5, 8, 44); */
  border-radius: 15px;
  box-shadow: 0 0 2px 1px rgba(7, 107, 170, 0.3);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-2 {
  flex: 1;
  backdrop-filter: blur(15px);
  /* background-color: rgba(17, 24, 27, 0.498); */
  box-shadow: 0 0 2px 1px rgba(7, 107, 170, 0.3);
  border-radius: 15px;
  padding: 30px;
  min-height: 400px;
}

.temperature {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  justify-items: flex-start;
}

.temperature h1 {
  font-size: 4rem;  
  margin-bottom: 10px;
  font-weight: 600;
}

.temperature h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  opacity: 0.9;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.weather-details > div {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-details > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}

.weather-details h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.8;
  font-weight: 400;
}

.weather-details h3 {
  font-size: 1.8rem;
  font-weight: 300;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header h2 {
    font-size: 2rem;
  }

  .search form {
    flex-direction: column;
    width: 100%;
  }

  .header input {
    max-width: 100%;
    margin-bottom: 15px;
  }

  .header button {
    width: 200px;
  }

  .main-content {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .section-1,
  .section-2 {
    padding: 20px;
  }

  .temperature {
    padding: 30px 15px;
    background: url("./assets/images/bg-today-small.svg");
    background-size: cover;
  }

  .temperature h1 {
    font-size: 3rem;
  }

  .weather-details {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .weather-details > div {
    padding: 20px 15px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header {
    padding: 15px;
  }

  .header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .temperature {
    padding: 20px 10px;
    background: url("./assets/images/bg-today-small.svg");
    background-size: cover;
  }

  .temperature h1 {
    font-size: 2.5rem;
  }

  .temperature h3 {
    font-size: 1rem;
  }

  .weather-details {
    grid-template-columns: 1fr;
  }

  .weather-details h3 {
    font-size: 1.5rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .header input {
    max-width: 350px;
  }

  .main-content {
    padding: 20px 15px;
  }
  .temperature {
    padding: 35px 20px;
    background: url("./assets/images/bg-today-small.svg");
    background-size: cover;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .header h2 {
    font-size: 3rem;
  }
  .temperature {
    padding: 50px 30px;
    background: url("./assets/images/bg-today-large.svg");
    background-size: cover;
  }

  .temperature h1 {
    font-size: 5rem;
  }
}

/* Loading state styles */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animation for weather cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weather-details > div {
  animation: fadeInUp 0.6s ease forwards;
  background-color: rgba(0, 0, 0, 0.1);
}

.weather-details > div:nth-child(1) {
  animation-delay: 0.1s;
}
.weather-details > div:nth-child(2) {
  animation-delay: 0.2s;
}
.weather-details > div:nth-child(3) {
  animation-delay: 0.3s;
}
.weather-details > div:nth-child(4) {
  animation-delay: 0.4s;
}

/* 
.daily-forcast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 20px;
}


.daily-forcast > div {
  overflow: inherit;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 5px 5px 5px 5px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-forcast > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}

.daily-forcast h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.8;
  font-weight: 400;
}

.daily-forcast h3 {
  font-size: 1.8rem;
  font-weight: 300;
} */




.daily-forcast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 20px;
}

.daily-forcast > div {
  overflow: inherit;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 5px 5px 5px 5px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-forcast > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}

.daily-forcast h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.8;
  font-weight: 400;
}

.daily-forcast h3 {
  font-size: 1.8rem;
  font-weight: 300;
}

.dailyImg {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.temp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
}

.max-temp {
  font-weight: 600;
 color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 0 10px 5px rgb(255, 255, 255);
}

.min-temp {
  font-weight: 400;
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 0 10px 5px rgb(255, 255, 255);
}


/* hour;y temp */
.hour-forcast {
  display: grid;
  grid-template-rows: repeat(2fr);
  gap: 10px;
  opacity: 0.6;
}
.hour-forcast > div {
  overflow: inherit;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content:space-around;

}

.hour-forcast > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}
.hour-forcast > div> .hour, .hour-temp {
 color: #ffffff;
 font-weight: 500;
 font-size: 18px;
 
}
