* {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  user-select: none; /* Standard syntax */
}
html {
  margin: 0;
  padding: 0;
   background: #f0f0f0;
}

.left-side {
  padding: 20px;
  width: 100%;
}

.heading {
  text-align: center;
}
.search-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#search-input {
  width: 80%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #0052aa;
}
#search-input:focus {
  outline: none;
  border-color: #0052aa;
}
#search-button {
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 5px;
  border: none;
  background-color: #0052aa;
  color: white;
  cursor: pointer;
}
#search-button:hover {
  background-color: #003d80;
}
.city-info {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}
#city-img {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
}
#city-name {
  font-size: 8rem;
  font-weight: bold;
  color: white;
  text-align: center;
  position: absolute;
  top: 50%;
}

.Clear {
  text-shadow: 0 0 5px #fff, 0 0 10px #ff0, 0 0 20px #ff0, 0 0 30px #ffa500,
    0 0 40px #ffa500;
  animation: glowPulse 2s infinite alternate;
}

/* Cloudy Glow */
.Clouds {
  text-shadow: 0 0 5px #fff, 0 0 10px #ccc, 0 0 20px #999, 0 0 30px #888,
    0 0 40px #777;
  animation: glowPulse 2s infinite alternate;
}

/* Rainy Glow */
.Rain {
  text-shadow: 0 0 5px #fff, 0 0 10px #00f, 0 0 20px #0ff, 0 0 30px #0ff,
    0 0 40px #0ff;
  animation: glowPulse 2s infinite alternate;
}

/* Snow Glow */
.Snow {
  text-shadow: 0 0 5px #fff, 0 0 10px #e0f7ff, 0 0 20px #b3ecff,
    0 0 30px #99e6ff, 0 0 40px #80dfff;
  animation: glowPulse 2s infinite alternate;
}

/* Storm Glow */
.Thunderstorm {
  text-shadow: 0 0 5px #fff, 0 0 10px #9400d3, 0 0 20px #8a2be2,
    0 0 30px #4b0082, 0 0 40px #2e0854;
  animation: glowPulse 2s infinite alternate;
}

/* animation: glowPulse 2s infinite alternate; */

@keyframes glowPulse {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

.city-weather-status {
  width: 100%;
}

.city-weather-status img {
  width: 100%;
    height: auto;
}

.weather-status {
    font-size: 1.5rem;
  text-align: center;
}
#status-text {
    font-size: 2rem;
  font-weight: bold;
}
.weather-details{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 1rem;
}


#temperature,
#humidity,
#wind-speed ,
#weather-description {
    font-weight: bold;
}

/* -------------------------
   RESPONSIVE DESIGN
   ------------------------- */

/* For tablets and smaller desktops */
@media (max-width: 992px) {
  .container {
    flex-direction: column; /* Stack left & right sides vertically */
    height: auto;
  }

  .left-side, 
  .right-side {
    height: auto;
    padding: 15px;
  }

  #city-name {
    font-size: 4rem; /* Reduce large text for smaller screens */
  }
}

/* For mobile screens */
@media (max-width: 576px) {
  .heading h1 {
    font-size: 1.8rem; /* Smaller heading */
  }

  #search-input {
    width: 70%; /* Keep search bar usable */
  }

  #search-button {
    padding: 8px 15px;
  }

  #city-name {
    font-size: 2.5rem; /* Much smaller text */
    top: 40%; /* Adjust placement */
  }

  .weather-status {
    font-size: 1rem;
  }

  #status-text {
    font-size: 1.3rem;
  }

  .temperature {
    font-size: 1.5rem;
  }
}





/* Smooth fade effect for images */
#city-img,
#city-weather-img {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.fade-in {
    opacity: 1 !important;
}

/* Smooth text update */
.fade-text {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-in-out;
}

.fade-text.show {
    opacity: 1;
    transform: translateY(0);
}
