/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'IBM Plex Sans', sans-serif;
}

header {
    background-color: #111;
    height: 75dvh;
    min-height: fit-content;
    color: white;
    display: grid;
    place-items: center;
    font-weight: thin;
    padding: 24pt;
}

header .logo {
    margin: 12pt;
    max-height: 24pt;
    max-width: calc(100% - 24pt);
}

header .hero {
    text-align: center;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Content Blocks */
.content-block {
    margin: 0 0;
    padding: 0 24pt;
    text-align: center;
    padding-top: 5dvh;
    padding-bottom: 5dvh;
}

.content-block > div {
    margin-left: auto;
    margin-right: auto;
}

.content-block .small-statement {
    font-size: 22pt
}

.content-block h2 {
    font-size: 28pt
}

.statement-block {
    font-size: 28pt;
    font-weight: 900;
    padding-top: 10dvh;
    padding-bottom: 10dvh;
}

.statement-block > p {
    max-width: 20cm;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24pt;
    margin-bottom: 24pt;
}

@media (max-width: 620px) {
    .statement-block {
        font-size: 22pt;
    }

    .content-block .small-statement {
        font-size: 18pt
    }

    .content-block h2 {
        font-size: 22pt
    }
}

.alt-bg {
    background-color: #f4f4f4;
}

/* Linkbutton layout */

.linkbutton-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24pt;
    align-items: stretch;
    max-width: 22cm;
    margin-top: 2em;
}

.linkbutton {
    color: white;
    background-color: #333;
    /* Extra padding-left (1em for flag + 8pt gap) */
    padding: 4pt 4pt 4pt calc(1em + 8pt);
    outline: solid 1pt black;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none;
    font-family: sans-serif;
    overflow: hidden;
}

.linkbutton::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2mm;
    /* Use a variable here, with a transparent fallback */
    background-image: var(--flag-url, none);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.linkbutton:hover {
    background-color: #444;
}

.linkbutton .linkbutton-title {
    font-size: 18pt;
    font-weight: 500;
}

.linkbutton .linkbutton-desc {
    font-size: 12pt;
    text-decoration: underline;
}

/* Layout specifically for the spider chart section */

#spidercharts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

#spidercharts > div.spiderdiagram {
    margin-left: 3cm;
    margin-right: 3cm;
}

#spidercharts svg {
    max-width: 50vw;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    height: auto;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 40px 0;
}
