:root
{
    --font-size-1: max(10vmin, 2.2361rem);
    --font-size-2: max(5vmin, 1.5811rem);
    --font-size-3: max(3.3333vmin, 1.2910rem);
    --font-size-4: max(2.5vmin, 1.1180rem);
    --font-size-5: max(2vmin, 1rem);
}

*
{
    box-sizing: border-box;
}

html
{
    display: grid;
    width: 100%;
    height: 100%;
}

body
{
    display: grid;
    max-width: 100vmin;
    min-height: 100vmin;
    margin: auto;
    padding: 2.5vmin;
    gap: 2.5vmin;
    background: #52CC95;
    background: linear-gradient(135deg, #88f2af 0%, #52CC95 33%, #52CC95 66%, #518581 100%);
    color: #FFFFFF;
    line-height: 1.25;
    font-family: 'Noto Sans Display', sans-serif;
    font-size: var(--font-size-5);
    font-weight: 400;
}

:is(header, main, footer)
{
    display: grid;
}

:is(header > h1, main > p)
{
    display: grid;
    margin: 0;
    padding: 2.5vmin;
    text-align: center;
    transition: filter 0.25s, transform 0.25s;
}

:is(header > h1, main > p):hover
{
    filter: drop-shadow(0 0 2.5vmin #FFFFFFAA);
    transition: filter 0.5s, transform 0.5s;
}

:is(header > h1, main > p):active
{
    transform: scale(calc(97.5 / 95));
    transition: filter 0.125s, transform 0.125s;
}

header > h1
{
    font-size: var(--font-size-1);
    font-weight: 600;
}

main > p
{
    font-size: var(--font-size-2);
}

:is(header > h1, main > p) > :is(img, span)
{
    margin: auto;
    transition: transform 0.25s;
}

main > p > img
{
    width: 100%;
    height: 100%;
    max-width: 90vmin;
    max-height: 50vmin;
    object-fit: contain;
}

:is(header > h1, main > p):hover > :is(img, span)
{
    transition: transform 0.5s;
}

:is(header > h1, main > p):active > :is(img, span)
{
    transform: scale(calc(92.5 / 90));
    transition: transform 0.125s;
}

footer > ul
{
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    display: grid;
    margin: 0;
    padding: 0;
    gap: 2.5vmin;
}

footer > ul > li
{
    display: grid;
}

footer > ul > li > p
{
    display: grid;
    margin: 0;
}

footer > ul > li > p > :is(a, button)
{
    display: grid;
    padding: 2.5vmin;
    border-radius: 2.5vmin;
    border: none;
    background: #FFFFFF;
    color: #52CC95;
    text-align: center;
    text-decoration: none;
    line-height: inherit;
    font-family: inherit;
    font-size: var(--font-size-2);
    cursor: pointer;
    outline: none;
    transition: filter 0.125s, transform 0.125s;
}

footer > ul > li > p > :is(a, button):is(:hover, :focus-within)
{
    filter: drop-shadow(0 0 1.25vmin #FFFFFFAA);
    transform: scale(calc(32.5 / 30));
    transition: filter 0.25s, transform 0.25s;
}

footer > ul > li > p > :is(a, button) > :is(img, span)
{
    margin: auto;
    transition: transform 0.125s;
}

footer > ul > li > p > :is(a, button) > img
{
    width: 100%;
    height: 100%;
    max-width: 25vmin;
    max-height: 12.5vmin;
    object-fit: contain;
}

footer > ul > li > p > :is(a, button):is(:hover, :focus-within) > :is(img, span)
{
    transform: scale(calc(27.5 / 25));
    transition: transform 0.25s;
}

dialog
{
    position: fixed;
    display: block;
    visibility: hidden;
    width: fit-content;
    height: fit-content;
    max-width: 95vmin;
    max-height: 95vmin;
    inset: 0;
    margin: auto;
    padding: 2.5vmin;
    border-radius: 2.5vmin;
    border: none;
    background: #FFFFFF;
    color: #000000;
    outline: none;
    filter: drop-shadow(0 0 1.25vmin #00000055);
    transform: scale(0);
    transition: transform 0.25s;
}

dialog:modal
{
    visibility: visible;
    transform: scale(1);
}

dialog::backdrop
{
    background: #00000055;
}

dialog > form
{
    float: right;
}

dialog > form > p
{
    margin: 0;
}

dialog > form > p > button
{
    padding: 0;
    border: none;
    background: none;
    line-height: inherit;
    font-family: inherit;
    font-size: 0;
    cursor: pointer;
    outline: none;
}

dialog > form > p > button::after
{
    content: '✕';
    box-sizing: border-box;
    display: inline-block;
    width: 1.75em;
    height: 1.75em;
    margin: -0.25em;
    padding: 0.25em;
    border-radius: 0.875em;
    background: #000000;
    color: #FFFFFF;
    text-align: center;
    font-size: var(--font-size-4);
    font-weight: 600;
    outline: 0.125em solid #00000000;
    outline-offset: -0.25em;
    transition: outline 0.125s, transform 0.125s;
}

dialog > form > p > button:is(:hover, :focus-within)::after
{
    outline: 0.125em solid currentColor;
    transform: scale(calc(5.625 / 4.375));
    transition: outline 0.25s, transform 0.25s;
}

dialog > h2
{
    margin: 0 calc(2.5vmin + 1.25em) 0 0;
    text-align: center;
    font-size: var(--font-size-4);
    font-weight: 600;
}

dialog > address
{
    font-style: normal;
}

dialog > address > dl
{
    margin: 0;
}

dialog > address > dl > dt
{
    margin: 2.5vmin 0 0 0;
    font-weight: 600;
}

dialog > address > dl > dd
{
    margin: 0;
    color: #666666;
}

dialog > address > dl > dd > p
{
    margin: 0;
}

dialog > address > dl > dd > p > a
{
    color: #04BFD4;
    text-decoration: underline dotted currentColor;
    cursor: pointer;
    outline: none;
    transition: text-decoration 0.0625s;
}

dialog > address > dl > dd > p > a:is(:hover, :focus-within)
{
    text-decoration: underline solid currentColor;
    transition: text-decoration 0.125s;
}

table
{
    border-collapse: collapse;
}

tr
{
    border: none;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

td
{
    text-align: left;
    padding: 8px;
}


td:first-child {
    padding-left: 0px;
}