html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    /* Remove hard minimum width to allow mobile scaling */
    /* min-width: 816px; */
    /* Use pure white background so white icons blend seamlessly */
    background: #ffffff;
    color: #333;
    text-align: center;
}

header {
    margin: 16px;
}

h1, h3 {
    color: #0066cc;
    margin-top: 2px;
    margin-bottom: 10px;
}

ul {
    list-style: none;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}


a {
    text-decoration: none;
    color: #0077ff;
}

a:hover {
    text-decoration: underline;
}

footer {
    margin-top: auto;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

footer a {
    color: #777;
    text-decoration: none;
}

/* Ensure footer is always 2 lines: text on line 1, link on line 2 */
.footer .footer-line1,
.footer .footer-line2 {
    margin: 0;
}

.footer .footer-line2 {
    margin-top: 4px; /* small spacing between the two lines */
}

/* Make images responsive */
header img {
    max-width: 100%;
    height: auto;
}

/* Mobile styles */
@media (max-width: 600px) {
    body {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    h3 {
        font-size: 1.1rem;
    }

    ul {
        grid-template-columns: 1fr; /* stack items on small screens */
        gap: 0.75rem;
        max-width: 480px;
    }

    .icon {
        width: 64px;
        height: 64px;
    }

    footer {
        font-size: 0.85rem;
        padding: 12px 0;
    }
}
