* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    margin: 0;
    min-height: 100dvh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

header form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.2rem;
    padding: 0;
    width: fit-content;
}

header form input[type="search"] {
    width: 10rem;
}

header form input,
header form button,
header form select {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
}

header form #year {
    width: 7ch;
}

header form button {
    max-width: fit-content;
}

@media screen and (max-width: 650px) {
    header {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    header nav {
        justify-content: right;
    }

    header form {
    }

    header form input[type="search"] {
        width: 100%;
    }

    header form #year {
        width: 10ch;
    }

    
}

.banner {
    position: relative;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    margin: 2rem 0;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    background-color: #fff;
    text-align: center;
    /* height: calc(100% - 8rem); */
}

.banner h4 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.banner p {
    margin: 0;
    font-size: 1rem;
}


@media screen and (max-width: 600px) {
    .banner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

#chartBox {
    max-height: 500px;
    max-width: 800px;
    margin: 0 auto;
}

#chartBox canvas {
    margin: 0 auto;
    width: 100%;
}

/* https://youtube.com/shorts/nIJF_oYU_Po */
/* h1:focus-within,
h2:focus-within,
h3:focus-within,
h4:focus-within,
h5:focus-within, */
:focus-visible {
    transition: outline-offset 75ms ease-out;
    outline: 2px solid #1e88e5;
    border-color: transparent;
}

:not(:active):focus-visible {
    outline-offset: 0.2rem;
}


main {
    position: relative;
    margin: 0 auto;
    padding-inline: 1rem;
}


footer {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-top: 1px solid #ccc;
}

footer p {
    text-align: center;
    margin: 0;
    padding: 0;
    color: #666;
}

footer p:first-child {
    margin-top: 0.5rem;
    font-size: larger;
}