* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

body {
  background: #2a2a2a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.sunny-theme {
  background: linear-gradient(160deg, #FDDF7C, #FB6240);
}

.cloudy-theme {
  background: linear-gradient(160deg, hsl(210, 80%, 85%), hsl(225, 90%, 25%));
}

.rainy-theme {
  background: linear-gradient(160deg, hsl(185, 100%, 75%), hsl(235, 100%, 20%));
}

.snow-theme {
  background: linear-gradient(160deg, hsl(223, 80%, 70%), hsl(223, 90%, 20%));
}

.windy-theme {
  background: linear-gradient(160deg, hsl(140, 100%, 80%), hsl(190, 100%, 25%));
}

.night-theme {
  background: linear-gradient(160deg, hsl(235, 78%, 20%), hsl(275, 100%, 8%));
}

.thunderstorm-theme {
  background: linear-gradient(160deg, hsl(255, 100%, 60%), hsl(290, 100%, 12%));
}

.theme-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.theme-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.theme-btn.sunny {
  background-color: #FDDF7C;
  color: #333;
}

.theme-btn.cloudy {
  background-color: hsl(210, 80%, 85%);
  color: #333;
}

.theme-btn.rainy {
  background-color: hsl(185, 100%, 75%);
  color: #333;
}

.theme-btn.snow {
  background-color: hsl(223, 80%, 70%);
  color: #333;
}

.theme-btn.windy {
  background-color: hsl(140, 100%, 80%);
  color: #333;
}

.theme-btn.night {
  background-color: hsl(235, 100%, 45%);
  color: white;
}

.theme-btn.thunderstorm {
  background-color: hsl(255, 100%, 60%);
  color: white;
}

.phone-frame {
  width: 375px;
  height: 800px;
  background: #111;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.notch {
  position: absolute;
  width: 180px;
  height: 28px;
  background: #111;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 100;
}

.home-indicator {
  position: absolute;
  width: 140px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  z-index: 100;
}

.phone-screen {
  width: 100vw;
  min-height: 100vh;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  transition: background 0.5s ease;
}

.container {
  width: 100%;
  max-width: none;
  overflow-y: auto;
  color: #ffffff;
  position: relative;
  padding: 40px 20px 90px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.container::-webkit-scrollbar {
  display: none;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 25px;
  font-size: 14px;
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  z-index: 10;
}

.time {
  font-weight: 600;
}

.status-icons {
  display: flex;
  gap: 6px;
}

.main-weather {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 0 20px;
}

.weather-icon {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emoji-large {
  font-size: 60px;
  line-height: 1;
}

.temp {
  font-size: 110px;
  font-weight: 200;
  line-height: 1;
  margin: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.degree {
  position: absolute;
  top: 15px;
  right: -30px;
  font-size: 50px;
}

.feels-like {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 5px;
}

.weather-condition {
  font-size: 28px;
  margin: 5px 0;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 2px;
}

.date {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 5px;
}

.metrics {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 15px;
}

.metric {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 12px 5px;
  text-align: center;
}

.metric-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.metric-value {
  font-size: 18px;
  font-weight: 500;
  margin: 2px 0;
}

.metric-label {
  font-size: 13px;
  opacity: 0.9;
}

.air-quality-section {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 15px;
  margin: 0 0 15px;
}

.aqi-gauge {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, #4CAF50, #FFEB3B, #FF9800, #F44336, #9C27B0, #7E57C2);
  border-radius: 5px;
  position: relative;
  margin: 10px 0;
}

.aqi-marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%);
}

.aqi-value {
  font-size: 22px;
  font-weight: 600;
  margin: 5px 0;
}

.aqi-text {
  font-size: 16px;
  margin-bottom: 5px;
}

.aqi-description {
  font-size: 14px;
  opacity: 0.9;
}

.sun-times-section {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 15px;
  margin: 0 0 15px;
}

.sun-times-container {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.sunrise, .sunset {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sun-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.sun-time {
  font-size: 18px;
  font-weight: 500;
}

.sun-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 2px;
}

.day-arc {
  width: 100%;
  height: 50px;
  position: relative;
  margin: 15px 0 5px;
}

.arc-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
}

.sun-position {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffeb3b;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffeb3b;
  transform: translate(-50%, -50%);
}

.moon-phase-section {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 15px;
  margin: 0 0 15px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-left: 5px;
}

.moon-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.moon-display {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.moon-svg {
  width: 100%;
  height: 100%;
}

.moon-details {
  flex: 1;
}

.moon-phase-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.moon-percentage {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.moon-times {
  font-size: 14px;
  opacity: 0.85;
}

.moonrise, .moonset {
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  max-width: 160px;
}

.moon-label {
  opacity: 0.9;
}

.moon-value {
  font-weight: 500;
}

.moon-phase-new .moon-shadow {
  fill: #111111;
}

.moon-phase-waxing-crescent .moon-shadow {
  d: path("M50,5 A45,45 0 1,0 50,95 A20,45 0 1,1 50,5");
}

.moon-phase-first-quarter .moon-shadow {
  d: path("M50,5 A45,45 0 1,0 50,95 A0,45 0 1,1 50,5");
}

.moon-phase-waxing-gibbous .moon-shadow {
  d: path("M50,5 A45,45 0 1,0 50,95 A-20,45 0 1,1 50,5");
}

.moon-phase-full .moon-shadow {
  fill: transparent;
}

.moon-phase-waning-gibbous .moon-shadow {
  d: path("M50,5 A45,45 0 1,1 50,95 A-20,45 0 1,0 50,5");
}

.moon-phase-last-quarter .moon-shadow {
  d: path("M50,5 A45,45 0 1,1 50,95 A0,45 0 1,0 50,5");
}

.moon-phase-waning-crescent .moon-shadow {
  d: path("M50,5 A45,45 0 1,1 50,95 A20,45 0 1,0 50,5");
}

.sunny-theme .moon-svg circle {
  fill: #FFFFFF;
}

.sunny-theme .moon-phase-section,
.sunny-theme .metric,
.sunny-theme .air-quality-section,
.sunny-theme .sun-times-section {
  background: rgba(0, 0, 0, 0.07);
}

.forecast {
  margin-bottom: 15px;
}

.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.forecast-title {
  font-size: 18px;
  font-weight: 600;
}

.forecast-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.forecast-day {
  font-size: 14px;
  margin-bottom: 5px;
}

.forecast-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.forecast-temp {
  font-size: 16px;
  font-weight: 500;
}

.forecast-item {
  text-align: center;
  padding: 5px 0;
}

html, body {
  touch-action: manipulation;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rain-total {
  text-align: right;
  color: #fff;
}

.rain-total-value {
  font-size: 1.6rem;
  font-weight: 600;
}

.rain-total-unit {
  font-size: 0.9rem;
  margin-left: 2px;
  opacity: 0.85;
}

.rain-total-label {
  font-size: 0.7rem;
  opacity: 0.7;
}

