/* content modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 0px solid #888;
  width: 80%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
/* content modal end */
body {
  font-family: Arial, sans-serif;
  color: #333;
  background: linear-gradient(135deg, #f0f8ff, #e0ffff);
  min-height: 100vh;
  margin: 0;
  padding: 0px;
  transition: background 3s ease-in-out, background-size 3s ease-in-out;

  text-align: center;
}
header {
  margin: 0;
  width: 100%;
  background-color: #000000;
  position: fixed;
  padding: auto;
}
footer {
  margin: 0;
  background-color: #000000;
  padding: 15px;
}
div {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  text-align: center;
}

#temperatureHeading {
  font-size: 3em;
  font-weight: bold;
  margin: 0 0 5px 0;
}

#cityInput,
button {
  text-align: center;
  margin-bottom: 10px;
  width: 50%;
}

/* Map centering */
#mapContainer iframe {
  display: block;
  margin: 0 auto;
}

/* --- Animated Background Classes (UNCHANGED) --- */

/* Helper for animation */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Clear Day: Bright blue to light gold */
.clear-day-bg {
  background: linear-gradient(45deg, #87ceeb, #51d3ff, #4682b4);
  background-size: 300% 300%;
  animation: gradientAnimation 20s ease infinite;
}

/* Clear Night: Dark blue/purple with stars effect */
.clear-night-bg {
  background: linear-gradient(135deg, #000033, #1d1d60, #4b0082);
  background-size: 300% 300%;
  animation: gradientAnimation 30s ease infinite;
  color: #f0f8ff;
}
.clear-night-bg div {
  background: rgba(0, 0, 0, 0.7);
}

/* Cloudy Day: Grey/white to pale blue */
.cloudy-day-bg {
  background: linear-gradient(160deg, #b0c4de, #f5f5f5, #a9a9a9);
  background-size: 200% 200%;
  animation: gradientAnimation 40s linear infinite;
}

/* Cloudy Night: Dark grey/indigo */
.cloudy-night-bg {
  background: linear-gradient(135deg, #36454f, #1c2833);
  background-size: 150% 150%;
  animation: gradientAnimation 50s ease infinite;
  color: #ccc;
}
.cloudy-night-bg div {
  background: rgba(0, 0, 0, 0.7);
}

/* Rain/Mist/Haze: Muted blue-grey */
.rain-mist-bg {
  background: linear-gradient(180deg, #3d4751, #c0c0c0, #696969);
  background-size: 200% 200%;
  animation: gradientAnimation 35s ease infinite reverse;
}
#gwb {
  /* width: 130px; */
  padding: 5px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;

  background: #ffffff;
  color: #111;

  border: 1px solid #111;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease;
  width: 50%;
}
/* hover */
#gwb:hover {
  background: #111111;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* click feedback */
#gwb:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* remove ugly focus outline */
#gwb:focus {
  outline: none;
}

#cityInput {
  /* border-radius: 20px; */
  padding: 2.5px 1px;
  font-size: 16px;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-weight: 900;
}
.heading {
  font-size: 22px;
  margin-top: 8px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: rgb(255, 255, 255);
}
.heading:hover {
  cursor: pointer;
}
.switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 5px 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;

  color: #fff;
  text-decoration: none;
  border-radius: 999px;

  background: linear-gradient(135deg, #f5d547, #c9b837);
  box-shadow: 0 8px 20px rgba(201, 184, 55, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);

  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.switch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 184, 55, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.switch-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(201, 184, 55, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.search-btn {
  display: inline-flex;
  justify-content: center; /* horizontal center */
  align-items: center; /* vertical center */

  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;

  color: #fff;
  text-decoration: none;
  border-radius: 999px;

  background: linear-gradient(135deg, #f5d547, #c9b837);
  box-shadow: 0 8px 20px rgba(201, 184, 55, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);

  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 184, 55, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.search-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(201, 184, 55, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
