﻿:root {
    --retro-font: "Lucida Console", Consolas, monospace;
    --dark-blue: #00112f;
    --mid-blue: #003f8f;
    --bright-blue: #2c80c8;
    --ice-blue: #d7efff;
    --yellow: #ffe66b;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: var(--dark-blue);
}

.weather-channel-page {
    position: fixed;
    inset: 0;
    font-family: var(--retro-font);
    color: white;
    text-transform: uppercase;
    background: var(--dark-blue);
    overflow: hidden;
}

#map {
    height: 100vh;
    width: 100vw;
}

.control-panel,
#weatherBox {
    position: absolute;
    z-index: 1000;
    background: linear-gradient(#063b86, #001f52);
    border: 4px solid var(--ice-blue);
    box-shadow: 0 0 0 4px #00153a, 0 0 20px #000;
    color: white;
    text-shadow: 2px 2px #000;
    letter-spacing: 1px;
}

.control-panel {
    top: 16px;
    left: 16px;
    padding: 12px;
    width: 280px;
}

#weatherBox {
    right: 16px;
    top: 16px;
    width: 260px;
    padding: 16px;
}

.title {
    font-size: 22px;
    font-weight: bold;
    color: var(--yellow);
    text-shadow: 3px 3px #000;
    margin-bottom: 8px;
}

input,
button {
    font-family: var(--retro-font);
    font-size: 16px;
    padding: 8px;
    border: 2px solid #8ec5ff;
    text-transform: uppercase;
}

input {
    width: 120px;
    background: #eaf6ff;
    color: #00153a;
}

button {
    background: var(--yellow);
    color: #00153a;
    cursor: pointer;
    font-weight: bold;
}

#status {
    margin-top: 8px;
    font-size: 13px;
    color: #d8ecff;
    white-space: pre-line;
}

#temp {
    font-size: 56px;
    color: var(--yellow);
    font-weight: bold;
    text-shadow: 4px 4px #000;
}

#condition {
    font-size: 20px;
    font-weight: bold;
}

#details {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.weather-icon {
    width: 72px;
    height: 72px;
    image-rendering: pixelated;
    vertical-align: middle;
    margin-right: 12px;
    filter: drop-shadow(4px 4px 0 #00133d);
}

.audio-button {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2000;
    background: var(--yellow);
    color: #00153a;
    font-weight: bold;
    border: 3px solid #8ec5ff;
    box-shadow: 0 0 0 3px #00153a, 0 0 18px #000;
    letter-spacing: 1px;
}

#bgAudio {
    display: none;
}

.retro-overlay {
    position: absolute;
    inset: 0;
    z-index: 1500;
    pointer-events: none;
    color: white;
    text-shadow: 3px 3px #00133d;
    font-family: var(--retro-font);
    background: radial-gradient(circle at center, rgba(0, 110, 190, .35), transparent 55%), linear-gradient(90deg, rgba(0, 18, 80, .96), rgba(0, 82, 160, .92)), repeating-linear-gradient( 0deg, rgba(255,255,255,.10) 0px, rgba(255,255,255,.10) 1px, transparent 1px, transparent 5px );
}

.retro-card {
    position: absolute;
    left: 50%;
    top: 7%;
    transform: translateX(-50%);
    width: min(82vw, 980px);
    max-height: 78vh;
    overflow: hidden;
    padding: clamp(16px, 3vw, 32px);
    border: 6px solid var(--ice-blue);
    background: linear-gradient(135deg, rgba(0, 21, 80, .95), rgba(0, 90, 160, .88)), repeating-linear-gradient( 90deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 2px, transparent 2px, transparent 8px );
    box-shadow: 0 0 0 5px #00153a, 0 0 0 10px var(--bright-blue), 0 0 35px #000;
}

.retro-card h1 {
    margin: 0;
    background: #001e63;
    border: 3px solid #ccecff;
    padding: 12px 18px;
    font-family: var(--retro-font);
    font-size: clamp(28px, 4.5vw, 46px);
    color: var(--yellow);
    letter-spacing: 3px;
    text-shadow: 4px 4px #000;
}

.retro-card .line {
    margin-top: 22px;
    font-family: var(--retro-font);
    font-size: clamp(18px, 2.7vw, 30px);
    line-height: 1.45;
    letter-spacing: 1px;
}

.current-overlay-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: center;
}

.current-overlay-icon .weather-icon {
    width: 128px;
    height: 128px;
    filter: drop-shadow(5px 5px 0 #00133d);
}

.current-overlay-data {
    font-size: 34px;
    line-height: 1.5;
}

.current-overlay-temp {
    color: var(--yellow);
    font-size: 56px;
    font-weight: bold;
    text-shadow: 4px 4px #000;
}

.retro-alert {
    color: var(--yellow);
    background: #8a0000;
    border: 3px solid var(--yellow);
    padding: 8px 12px;
    display: inline-block;
    margin-top: 8px;
}

.forecast-grid {
    display: grid;
    gap: clamp(10px, 1.5vw, 18px);
    width: 100%;
    box-sizing: border-box;
}

.hourly-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.seven-day-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.forecast-card {
    min-width: 0;
    background: rgba(0, 20, 80, .75);
    border: 3px solid var(--ice-blue);
    padding: clamp(8px, 1.4vw, 14px);
    text-align: center;
    box-shadow: 4px 4px 0 #00133d;
    overflow: hidden;
}

.forecast-name {
    color: var(--yellow);
    font-size: clamp(14px, 2vw, 20px);
    min-height: 24px;
}

.forecast-temp {
    color: white;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: bold;
}

.forecast-card .weather-icon {
    width: clamp(42px, 7vw, 72px);
    height: clamp(42px, 7vw, 72px);
    margin: 8px 0;
}

.crawl {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 35px;
    overflow: hidden;
    white-space: nowrap;
}

.crawl span {
    display: inline-block;
    min-width: 100%;
    padding-left: 20px;
    animation: crawl 22s linear infinite;
    will-change: transform;
    font-family: var(--retro-font);
}

@keyframes crawl {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

#radarLegend {
    position: absolute;
    right: 16px;
    bottom: 96px;
    z-index: 1000;
    background: linear-gradient(#063b86, #001f52);
    border: 4px solid var(--ice-blue);
    box-shadow: 0 0 0 4px #00153a, 0 0 20px #000;
    padding: 12px;
    color: white;
    text-shadow: 2px 2px #000;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 1px;
}

.legend-title {
    color: var(--yellow);
    font-weight: bold;
    margin-bottom: 6px;
}

.legend-color {
    display: inline-block;
    width: 32px;
    height: 12px;
    margin-right: 8px;
    border: 1px solid white;
    box-shadow: 2px 2px 0 #000;
}

    .legend-color.light {
        background: #3cff3c;
    }

    .legend-color.moderate {
        background: #ffff00;
    }

    .legend-color.heavy {
        background: #ff9900;
    }

    .legend-color.severe {
        background: #ff0000;
    }

.almanac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.almanac-box {
    background: rgba(0, 20, 80, .75);
    border: 3px solid var(--ice-blue);
    padding: 20px;
    box-shadow: 4px 4px 0 #00133d;
}

    .almanac-box.wide {
        grid-column: span 2;
    }

.almanac-label {
    color: var(--yellow);
    font-size: 26px;
    margin-bottom: 10px;
}

.almanac-value {
    font-size: 42px;
    font-weight: bold;
}
