body {
    background-color: #0d1a26;
    font-family: Arial, sans-serif;
    color: #e6e6e6;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 10vh;
}

h1 {
    text-align: center;
    color: #87ceeb;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.container {
    width: 90%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.weather-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.weather-card h2,
.camera-card h2,
.radar-card h2,
.forecast-card h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #87ceeb;
}

.weather-card p {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0 0 0;
}

/* Bliksemtoelichting */
.bliksem-detail {
    font-size: 0.8rem !important;
    font-style: italic;
    color: #ccc !important;
    font-weight: normal !important;
    line-height: 1.2;
    margin-top: 5px !important;
    margin-bottom: -15px !important;
}

.camera-card,
.radar-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nieuwe styling voor de camera-toelichting */
.camera-toelichting {
    font-size: 1rem; /* Zelfde grootte als de daglicht-card tekst */
    color: #e6e6e6; /* Wit/Lichtgrijs */
    text-align: center; /* Centreer de tekst */
    margin: 15px 0 5px 0; /* Voeg wat verticale ruimte toe */
    width: 100%; /* Zorg dat het de volledige breedte van de kaart gebruikt */
}

.camera-image-container {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-top: 10px;
}

.radar-card iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    margin-top: 10px;
    border: none;
}

#loading-message {
    font-style: italic;
    color: #aaa;
    display: none;
}

/* 3-daagse verwachting */
.forecast-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
}

.forecast-compact {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding: 15px 0 5px 0;
    text-align: center;
}

.forecast-compact .day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    color: #e6e6e6;
    margin: 0;
    padding: 0;
}

.forecast-compact .dagnaam {
    font-weight: bold;
    /* WIJZIGING: VERLAAG DEZE WAARDE NAAR 0px OF 5px */
    margin-bottom: 55px; 
    margin-top: 0;
    line-height: 1;
    color: #87ceeb;
    text-transform: uppercase;
}

.forecast-compact i {
    font-size: 3rem;
    /* WIJZIGING: VERHOOG NEGATIEVE MARGIN OM HET ICOON OMHOOG TE TREKKEN */
    margin-top: -30px; 
    /* Houdt de ruimte tussen icoon en temperatuur op 20px */
    margin-bottom: 20px; 
    line-height: 1;
    color: #fff;
    transform: translateY(0px); 
}

.forecast-compact span {
    font-weight: bold;
}

/* KNMI Waarschuwing kaart met dubbele rand */
.waarschuwing-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
    border-left: 6px solid #00FF00;
    border-right: 6px solid #00FF00;
}

.waarschuwing-card.geel {
    border-left-color: #f7c948;
    border-right-color: #f7c948;
}

.waarschuwing-card.oranje {
    border-left-color: #f29c1f;
    border-right-color: #f29c1f;
}

.waarschuwing-card.rood {
    border-left-color: #d64545;
    border-right-color: #d64545;
}

.waarschuwing-card h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #87ceeb;
    font-style: normal;
}

.waarschuwing-card p {
    font-size: 1rem;
    margin-top: 0;
    color: #fff;
}

/* --- FOOTER STYLING --- */
footer {
    background-color: transparent;
    color: #e6e6e6;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 940px;
}

.validator-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.validator-icons img {
    height: 31px;
    width: auto;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.validator-icons img:hover {
    opacity: 1;
}


/* ==== Nieuwe Weersverwachting-sectie ==== */
.hoofdverwachting {
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.verwachting-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Zorgt ervoor dat ze op een nieuwe regel komen als er te weinig ruimte is */
}

/* VEREISTE WIJZIGING: VERLAGEN MIN-WIDTH ZODAT ZE ALLE DRIE OP ÉÉN RIJ PASSEN */
.verwachting-kaart {
    flex: 1;
    min-width: 180px;
    /* VERLAAGD VAN 250px! Dit zorgt dat ze op de meeste schermen op één rij passen. */
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
}

.verwachting-kaart h3 {
    font-size: 1.2rem;
    /* Matcht met h2 */
    margin-bottom: 10px;
    color: #87ceeb;
}

.verwachting-kaart i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.verwachting-kaart p {
    margin: 5px 0;
    font-size: 1rem;
    /* 🌟 UW WIJZIGING: Maakt de <p>-tekst in deze kaarten vet 🌟 */
    font-weight: bold !important;
}

/* ➡️ NIEUWE REGEL: Zorgt ervoor dat alle <span> elementen in de <p> ook vet zijn */
.verwachting-kaart p span {
    font-weight: bold !important;
}

/* BEGIN WIJZIGING VOOR DAGLENGTE TITEL */
.daglicht-kaart {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    /* Wijziging: Gebruik block layout om ruimte te maken voor de h3 */
    display: block; 
    font-size: 1rem;
    color: #e6e6e6;
}

/* NIEUW: Styling van de titel "Daglengte" */
.daglicht-kaart h3 {
    font-size: 1.2rem;
    color: #87ceeb; /* Lichtblauw, zoals gevraagd */
    margin: 0 0 15px 0;
    text-align: center;
}

/* NIEUW: Wrapper voor de SPANs om de oorspronkelijke grid-layout te behouden */
.daglicht-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

/* De SPAN's zijn nu genest in .daglicht-data-grid */
.daglicht-data-grid span {
    font-weight: bold;
    display: block;
}

/* FIX: Desktop uitlijning: nth-child(1) is het eerste span element in de grid */
.daglicht-data-grid span:nth-child(1) {
    text-align: left;
}
.daglicht-data-grid span:nth-child(2) {
    text-align: center;
}
.daglicht-data-grid span:nth-child(3) {
    text-align: right;
}
/* EINDE WIJZIGING VOOR DAGLENGTE TITEL */


/* Mobiele optimalisatie */
@media (max-width: 600px) {
    .verwachting-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .verwachting-kaart {
        min-width: 100%;
    }

    /* Update mobiele optimalisatie om de nieuwe wrapper te gebruiken */
    .daglicht-data-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .daglicht-data-grid span {
        width: 100%;
        text-align: left !important;
        display: block;
    }
}

/* Aanpassing om de inhoud van de METAR kaarten kleiner te maken (gelijk aan de H2-labels) */
.metar-info-card p {
    font-size: 1.2rem;
    font-weight: bold;
    /* 🛠️ WIJZIGING: Vergroot de bovenmarge om ruimte te creëren, net als de overige kaarten. */
    margin: 10px 0 0 0; 
}

/* Zorg dat de <span> elementen ook de kleinere lettergrootte overnemen */
.metar-info-card p span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Styling voor de nieuwe titel "Weersverwachting Vandaag" */
.hoofdverwachting-titel {
    /* Zorgt voor centrering */
    text-align: center; 
    /* Gebruikt de gewenste kleur en lettergrootte */
    color: #87ceeb; 
    font-size: 1.2rem; /* Iets groter dan de kaart-h2's */
    margin: 0 0 20px 0; /* Ruimte onder de titel */
    /* De h2's in de waarschuwingskaarten waren 1.2rem. We maken deze iets groter voor de hoofdtitel. */
}

/* Styling voor de logo's in de footer */
.footer-logos {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px; /* Ruimte tussen de twee logo's */
    align-items: center;
}

.footer-logo {
    height: 40px; /* Je kunt dit getal aanpassen om ze groter of kleiner te maken */
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05); /* Subtiel effect als je eroverheen beweegt */
}

/* Zorg dat de logo's op mobiel ook netjes onder elkaar staan als het scherm te smal is */
@media (max-width: 400px) {
    .footer-logos {
        flex-direction: column;
        gap: 10px;
    }
}