:root {
  --bg-main: #07111f;
  --bg-panel: rgba(255,255,255,0.12);
  --bg-panel-dark: rgba(0,0,0,0.35);
  --accent: #4fc3f7;
  --accent-soft: #81d4fa;
  --text-main: #ffffff;
  --text-muted: #b0bec5;
  --danger: #b00020;
  --success: #1b8f4d;
  --warning: #ffb300;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #183f63, #07111f 70%);
  color: var(--text-main);
  text-align: center;
}

a {
  color: var(--accent);
}

#statusRibbon {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #0b2d48;
  color: white;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

#statusRibbon span {
  color: var(--accent);
  padding: 0 4px;
}

.hero {
  padding: 38px 20px;
  background: rgba(0,0,0,0.35);
}

.hero h1 {
  margin: 0;
  font-size: 46px;
  color: var(--accent);
}

.hero p {
  color: #cfd8dc;
  font-size: 18px;
  margin-bottom: 0;
}

nav {
  background: rgba(10,35,55,0.95);
  padding: 13px 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

nav a {
  display: inline-block;
  color: white;
  text-decoration: none;
  margin: 6px 10px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  background: rgba(79,195,247,0.18);
  color: var(--accent-soft);
  transform: translateY(-2px);
}

.section {
  max-width: 1150px;
  margin: 38px auto;
  padding: 0 20px;
}

.section-title {
  color: var(--accent);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 18px;
}

.card {
  background: #222;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.glass-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.42);
}

.label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

.value {
  font-size: 31px;
  font-weight: bold;
  color: var(--accent);
  margin-top: 8px;
}

.main-temp-card {
  max-width: 900px;
  margin: 35px auto;
  padding: 36px;
  border-radius: 28px;
  background: rgba(255,255,255,0.13);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.18);
}

.weather-icon {
  font-size: 68px;
  margin-bottom: 10px;
}

.big-temp {
  font-size: 96px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
}

.feels {
  font-size: 28px;
  color: #b3e5fc;
  margin-top: 12px;
}

.updated {
  margin-top: 12px;
  color: #cfd8dc;
}

button,
.button {
  display: inline-block;
  padding: 11px 18px;
  margin: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: black;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover,
.button:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.radar-img {
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

iframe,
img {
  max-width: 100%;
}

iframe {
  width: 100%;
  height: 750px;
  border: 0;
  border-radius: 18px;
}

.footer-source,
footer {
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
  padding: 26px;
}

.alert-ok {
  background: #1e88e5;
}

.alert-warning {
  background: #ff9800;
}

.alert-danger {
  background: #b00020;
}

@media (max-width: 800px) {
  #statusRibbon {
    font-size: 13px;
    line-height: 1.8;
  }

  .hero h1 {
    font-size: 34px;
  }

  .big-temp {
    font-size: 70px;
  }

  .feels {
    font-size: 22px;
  }

  .section {
    margin: 28px auto;
    padding: 0 14px;
  }

  nav a {
    margin: 4px;
    font-size: 14px;
  }
}
/* Interactive NWS radar */

.nws-radar-card {
  padding: 18px;
  overflow: hidden;
}

#nwsRadarMap {
  width: 100%;
  height: 650px;
  min-height: 650px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #222;
  border-radius: 14px;
  margin-top: 15px;
}

#radarLoop {
  display: block;
  width: 100%;
  max-width: 850px;
  height: auto;
  margin: 0 auto 15px;
}

.radar-controls,
.radar-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#nwsRadarTime {
  margin-top: 14px;
  text-align: center;
  font-weight: bold;
}
/* Interactive NWS radar */
#nwsRadarMap {
  width: 100%;
  height: 650px;
  min-height: 450px;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
}

#nwsRadarStatus {
  margin-top: 10px;
  text-align: center;
}

/* Final interactive radar map sizing */
#nwsRadarMap {
  width: 100% !important;
  height: 650px !important;
  min-height: 450px !important;
  display: block !important;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
}

#nwsRadarMap.leaflet-container {
  width: 100% !important;
  height: 650px !important;
}
