:root {
    --primary-color: #1e4d6b;
    --accent-color: #ffd700;
    --card-bg: #ffffff;
    --text-color: #333333;
    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--text-color);
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures footer stays down */
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

main {
    flex: 1;
    /* Pushes footer to the bottom */
}

/* Hero & Mobile Layout */
.hero {
    display: flex;
    flex-direction: column;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Card Styling */
.card {
    padding: 1rem;
    margin: 1rem;
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card h2,
.card h3 {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem;
    margin: -1rem -1rem 1rem -1rem;
    text-align: center;
}

.card li {
    display: flex;
    justify-content: space-between;
    /* Perfect label/value alignment */
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.card li:last-child {
    border-bottom: none;
}

.card li span:first-child {
    font-weight: bold;
    color: var(--primary-color);
}

.weather-icon {
    display: block;
    width: 50px;
    margin: 0 auto 10px;
    fill: var(--primary-color);
}

/* Desktop View (Overlay Cards) */
@media (min-width: 800px) {
    .hero {
        position: relative;
        display: block;
    }

    .card {
        position: absolute;
        /* Improved transparency balance with backdrop blur */
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
        width: 300px;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .data-card {
        top: 2rem;
        left: 2rem;
    }

    .weather-card {
        bottom: 2rem;
        right: 2rem;
    }

    /* Requirement: Pseudo-element for large view emoticon */
    #weather-heading::after {
        content: " 🌧️";
    }

    .weather-icon {
        display: none;
    }

    /* Hide SVG on desktop */
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    /* Added font-weight to bold the white text as requested */
    font-weight: 700;
}

#lastModified {
    /* Using a brighter gold to ensure it stands out on the dark blue */
    color: #ffeb3b;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.attribution {
    font-size: 0.8rem;
    margin-top: 15px;
    opacity: 0.9;
    /* Increased opacity slightly for better readability */
    font-weight: normal;
    /* Keep this thin to create a hierarchy */
}

.attribution a {
    color: #ffeb3b;
    /* Use the brighter yellow here too */
    text-decoration: underline;
}