body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #f7f7f7;
  color: #222;
  transition: background 0.5s ease, color 0.5s ease;
}

.container {
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  margin: 50px auto;
  text-align: center;
  max-width: 600px;
  border-radius: 5px;
  padding: 20px;
}

form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

form input[type="text"] {
  padding: 10px;
  font-size: 18px;
  width: 60%;
}

form input[type="submit"] {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

form input[type="submit"]:hover {
  background-color: #0062cc;
}

.icon img {
  width: 100px;
  height: 100px;
}

.temperature {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
}

.description {
  font-size: 24px;
  margin-bottom: 20px;
}

.details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.details > div {
  padding: 15px;
  background-color: #f1f1f1;
  margin: 5px;
  border-radius: 5px;
  min-width: 100px;
  text-align: center;
}

#settings-panel {
  display: none;
  margin-top: 20px;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
}

#settings-panel h2 {
  text-align: center;
}

#settings-panel label {
  display: block;
  margin: 8px 0;
}

#mute-btn, #settings-btn, #reset-settings {
  margin: 10px 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#mute-btn { background: #0d6efd; color: white; }
#settings-btn { background: #6c757d; color: white; }
#reset-settings { background: #dc3545; color: white; }
#reset-settings:hover { background: #a71d2a; }

body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .container {
  background-color: #1e1e1e;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

body.dark-mode .details > div {
  background-color: #2a2a2a;
}

.no-animations .raindrop,
.no-animations .snowflake,
.no-animations .fog,
.no-animations .lightning {
  display: none !important;
}

#effects-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}

.raindrop {
  position: absolute;
  width: 2px; height: 15px;
  background: rgba(0,0,255,0.6);
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(-100px); }
  100% { transform: translateY(100vh); }
}

.snowflake {
  position: absolute;
  color: #fff;
  font-size: 1.2em;
  animation: snow linear infinite;
}

@keyframes snow {
  0% { transform: translateY(-100px); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.fog {
  position: absolute;
  width: 200px; height: 100px;
  background: rgba(200,200,200,0.2);
  border-radius: 50%;
  animation: moveFog 10s linear infinite;
}

@keyframes moveFog {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(100vw); }
}

.lightning {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  display: none;
}

#animated-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(to bottom, #87ceeb 0%, #f0f8ff 100%);
  transition: background 1s ease;
}

.sun-moon {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD700 0%, #FFA500 70%);
  box-shadow: 0 0 80px rgba(255, 223, 0, 0.6);
  z-index: 1;
  transition: left 1s ease, top 1s ease, background 1s ease, box-shadow 1s ease;
}

body.dark-mode .sun-moon {
  background: radial-gradient(circle, #f0f0f0 0%, #cccccc 70%);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}
