/* Global Styles */
body {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #eaf4fc;
  display: block;
  max-width: 100%;
  min-height: 100vh;
  animation: backgroundChangeAnimation 10s infinite alternate;
}

@keyframes backgroundChangeAnimation {
  0% { background-color: #ebf4fa; }
  50% { background-color: #e8f2fa; }
  100% { background-color: #e7f4ff; }
}

/* Header */
#webHeader {
  text-align: center;
  color: #9df9ef;
  font-size: 100px;
  padding: 10px;
  opacity: 0.8;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  -webkit-text-stroke: 2px rgb(0, 0, 0);
  animation: fadeIn 1s ease-in-out;
}

/* Fade-in animation for the header */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 0.8; }
}

/* Container */
.container {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  padding: 20px;
  max-width: 60%;
  margin: 0 auto;
}

#inputContainer {
  text-align: center;
  font-size: larger;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  transition: 0.4s ease;
  display: flex;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #2692ff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

#cityInput {
  flex: 1;
  padding: 10px;
  margin-left: 6px;
  border: 1px solid #2692ff;
  border-radius: 4px;
  outline: none;
  font-size: 16px;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  transition: width 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

#cityInput:focus {
  content: "";
  border: #00b3ff 2px solid;
  box-shadow: 0 0 10px rgba(0, 179, 255, 0.5);
}

/* Current Weather */
.currentWeather {
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
  background-color: #e3f5fd;
  max-width: fit-content;
  margin: auto;
  margin-bottom: 20px;
  border: #2692ff 1px solid;
}

.currentWeather:hover {
  background-color: #d3f3ff;
}

/* Slide-in animation for the current weather container */
@keyframes slideIn {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.currentTempNumber {
  font-size: 60px;
  font-weight: bold;
  padding-left: 20px;
  -webkit-text-stroke: 1px #ffffff;
}

#currentTemperature img {
  width: 200px;
  height:200px;
  vertical-align: middle;
  animation: horizontalAnimation 8s infinite;
  margin-right: 1em;
  margin-left: 1em;
}

@keyframes horizontalAnimation {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(15px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(-15px); }
}

#cityName {
  text-align: center;
  margin-top: 10px;
  color: black;
  font-size: 4rem;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Current Weather Details */
.currentWeatherDetails-container {
  background-color: #f0f0f0;
  margin-bottom: 3rem;
  padding: 20px;
  border-radius: 4px;
  background-color: #e3f5fd;
  max-width: fit-content;
  /* margin-bottom: 20px; */
  border: #2692ff 1px solid;
  text-align: left;
  font-family: "Lato", sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-top:20px;
}

.currentWeatherDetails-container:hover {
  background-color: #d3f3ff;
} 

.weather-detail {
  font-size: 1.2em;
  margin: 10px 0;
  -webkit-text-stroke: 1px #ffffff;
}

#currentTime,
#feels_like,
#humidity,
#pressure,
#windVelocity,
#sunrise,
#sunset {
  display: block;
  -webkit-text-stroke: 0.3px #e3f5fd;
}

/* #currentTime {
  color: #2e8ded;
}

#feels_like {
  color: #ff4281;
}

#humidity {
  color: #00bcd4;
}

#pressure {
  color: #9c27b0;
}

#windVelocity {
  color: #3f51b5;
}

#sunrise,
#sunset {
  color: #ff9800;
} */

/* Weather Forecast */
#todayWeatherContainer,
#forecastContainer {
  display: flex;
  justify-content: space-evenly;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  overflow-y: hidden;
  margin: 20px 0;
  padding: 20px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.weather-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  min-width: 150px;
  border-radius: 4px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  background-color: #e3f5fd;
  border: #00b3ff 1px solid;
}

.weather-wrapper:hover {
  background-color: #d3f3ff;
}

.weather-day {
  font-weight: bold;
  font-size: 40px;
  margin-bottom: 10px;
}

.weather-day:hover {
  color: #00b3ff;
}

/* week day names */
#day1, #day2, #day3, #day4, #day5 {
  display: flex;
  justify-content: space-evenly;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  min-width: 350px;
  overflow-y: hidden;
  margin: auto;
  padding: 20px;
  border-radius: 4px;
  box-sizing: border-box;
  /* font-family: Arial, sans-serif; */
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  animation: slideInFromRight 1s ease-in-out;
}

.weather-information {
  text-align: center;
  width: 18%;
  padding: 10px;
  cursor: pointer;
}


.weather-information:hover {
  display: block;
}

.maxTempurture, .minTempurture {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 5px 0;
  -webkit-text-stroke: #e3f5fd;
}

.weatherData {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 24px;
}

/* Animation */
.imgClass {
  animation-name: horizontalAnimation;
  animation-duration: 8s;
  animation-iteration-count: infinite;
}

@keyframes scaleAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Buttons */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 20px 0 20px 0;
}

.animated-button {
  color: rgb(9, 7, 7);
  position: relative;
  padding: 10px 20px;
  background-color: #4bdeff;
  border: black 1px solid;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  font-size: 1em;
}

.animated-button span {
  display: inline-block;
  position: relative;
  transition: 0.6s;
}

.animated-button::before, .animated-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.animated-button::before {
  opacity: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transform: scale(0.1, 1);
}

.animated-button:hover span {
  letter-spacing: 1px;
}

.animated-button:hover::before {
  opacity: 1;
  transform: scale(1, 1);
}

.animated-button::after {
  background-color: rgba(255, 255, 255, 0.1);
}

.animated-button:hover::after {
  opacity: 0;
  transform: scale(0.1, 1);
}

/* Footer */
#footer {
  background-color: #cdedf8;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e7e7e7;
  width: 100%;
  border: #00b3ff 1px solid;
  display: flex;
  justify-content: center;
  gap: 20px;
}

#footer p {
  margin: 0;
  color: #333;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

#footer a {
  color: #007BFF;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* Additional Styles */
.hide {
  display: none;
}

#detailsIcon {
  width: 10px;
  height: 10px;
  margin-right: 5px;
}

#weatherDetailsContainer {
  position: fixed;
  top: 5px;
  right: 5px;
  background-color: #f0f4f8;
  padding: 10px;
  border: #2692ff 1px solid;
  backdrop-filter: blur(10px);
  border-radius: 4px;
  z-index: 1000;
}

#weatherDetails {
  display: block;
  max-width: 400px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 4px;
  background-color: #f0f4f8;
}

#details {
  font-size: 24px;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  font-style: normal;
  color: #0d47a1;
  animation: slideInFromRight 1s ease-in-out;
}

@keyframes slideInFromRight {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

#details ul.sideways-list li {
  text-align: left;
  color: #0d47a1;
}

.weather-wrapper img.imgClass {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}


@media (max-width: 576px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .currentWeather {
    max-width: 80%;
  }

  .currentWeatherDetails-container {
    max-width: 80%;
  }

  #todayWeatherContainer,
  #forecastContainer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .weather-wrapper {
    width: 45%;
    margin: 10px;
  }

  .weather-day {
    font-size: 30px;
  }

  .currentTempNumber {
    font-size: 50px;
  }

  .imgClass {
    width: 80px;
    height: 80px;
  }

  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .animated-button {
    padding: 15px 30px;
    font-size: 1.2em;
  }
}