:root {
    font-size: 12pt;
    --header-height: 42pt;
    --footer-height: 3vh;
    --main-height: calc(100vh - var(--header-height));
    --max-width: 2560px;
    --max-width-content: 1024px;
    --text-color: black;
    --background-color: white;
    --border-color: black;
    --box-shadow: 0.3em 0.3em 0.9em 0.3em #00000088;
}

:root.dark {
    --text-color: white;
    --background-color: #444444;
    --border-color: #aaaaaa;
}

/* html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
} */

/* * {
    margin: 0;
    padding: 0;
} */

body {
    font-family: sans-serif;
    min-width: 375px;
    /* max-width: 2560px; */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    /* align-items: center; */
    align-items: stretch;
    justify-content: space-between;
    justify-content: flex-start;
    height: 100vh;
    width: 100vw;
    background-color: var(--background-color);
    /* max-height: 100vh;
    min-height: 100vh; */
}

body>header,
body>main,
body>footer {
    margin: 0;
    padding: 0;
    /* width: var(--max-width); */
    /* width: 100%; */
}

body>header .container,
body>footer .container {
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: var(--max-width-content);
}

body>header {
    height: var(--header-height);
    min-height: var(--header-height);
}

body>footer {
    height: var(--footer-height);
    min-height: var(--footer-height);
    margin-top: calc(-1 * var(--footer-height));
}

/* .dark body>header {
    background-image: url('/png/stars.png');
} */

.dark body>header,
.dark body>footer {
    filter: grayscale(0.75);
}

body>main {
    min-height: var(--main-height);
    overflow: auto;
}


body>header {
    background: #af4824;
}

body>header .container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    /* padding-left: 1em;
    padding-right: 1em; */
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    box-sizing: border-box;
}

body>header .container h1,
body>header .container h2 {
    margin: 0;
    padding: 0;
    line-height: 100%;
    text-align: center;
}

body>header .container h1 {
    font-family: "Slackey", serif;
    font-weight: 400;
    font-style: normal;
    font-size: min(9vmin, 4em);
    font-size: min(4.5vmin, 2em);
    line-height: 100%;
    /* line-height: 2em; */
    text-shadow: 3px 3px 9px #00000082;
}

body>header .container h2 {
    font-size: min(4vmin, 1em);
    font-family: Arial, Helvetica, sans-serif
}

body>header a {
    text-decoration: inherit;
    color: inherit
}

body>footer {
    font-family: "Arial", serif;
    font-size: max(1.75vmin, 9pt);
    font-size: clamp(0.5vh, 12pt, 2vh);
    font-size: 1.1rem;
    font-weight: bold;
    /* background-color: #ffffff; */
    background-image: url('/png/peels.png'), url('/png/grass.png');
    background-size: contain;
    background-repeat: repeat-x;
}

body>footer .container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-shadow: 0 0 3pt #ffffff;
    /* max-width: var(--max-width); */
    /* padding-left: 1em;
    padding-right: 1em; */
    margin-left: auto;
    margin-right: auto;
    align-content: flex-end;
    height: 100%;
    box-sizing: border-box;
}

body>footer a {
    text-decoration: inherit;
    color: inherit;
}

body>footer p {
    margin: 0;
    padding: 0;
    margin-bottom: 0.5em;
    text-shadow: 0 0 0.5em #ffffff;
}

body.embed>footer {
    display: none;
}

body>header h1>span:nth-child(1),
body>header h1>span:nth-child(3) {
    color: transparent;
    background-image: url('logo-256.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: center;
    font-size: 1.4em;
    text-shadow: none;
}

body>header h1>span:nth-child(3) {
    color: transparent;
    background-image: url('logo2-256.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: center;
    font-size: 1.6em;
    text-shadow: none;
    margin-left: 0.3em;
}

body>header h2 {
    font-family: "Slackey", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    line-height: 1em;
}

body>header .buttons {
    display: flex;
}

body>header button {
    font-size: 1.5em;
}

body>header button img {
    width: 1em;
    aspect-ratio: 1;
}

.cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
}

button {
    cursor: pointer;
}

.card {
    display: flex;
    align-content: space-between;
    border: 0.3em solid var(--border-color);
    border-radius: 1rem;
    padding: 0;
    width: 160px;
    /* height: 180px; */
    aspect-ratio: 1/2.2;
    font-size: 1.1rem;
    background-image: url('/png/silhouette.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: 100%;
    /* box-shadow: 0 0 black; */
    box-shadow: 0.3em 0.3em 0.9em 0.3em #00000088;
    transition: all 200ms;
}

.card:hover {
    border-color: blue;
    transform: translate(0.25em, 0.25em);
    box-shadow: 0.3em 0.3em 0.9em 0.3em #FFEB3B;
}

.card .content {
    display: grid;
    grid-template-rows: 2.5em auto auto 3em;
    align-content: stretch;
}

.card h2 {
    margin: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    background: black;
    color: white;
    border-radius: 0.7rem 0.7rem 0 0;
    font-size: 1em;
    background: #ffd74d;
    color: #795548;
    font-family: "Slackey", serif;
    font-family: "Carter One", system-ui;
    font-weight: 400;
    font-style: normal;
    border-bottom: 0.25em solid var(--border-color);
    width: 100%;
}

.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.card .description {
    font-size: 1em;
    margin: 0 0.25em 0 0.25em;
    line-height: 140%;
    align-self: center;
}

.card .description.shorter-text {
    line-height: 140%;
    font-size: 1.8em;
}

.card .description.short-text {
    line-height: 120%;
    font-size: 1.5em;
}

.card .description.long-text {
    line-height: 160%;
    font-size: 1em;
}

.card .description.longer-text {
    line-height: 130%;
    font-size: 1em;
}

.card .description.longest-text {
    line-height: 120%;
    font-size: 0.9em;
}

.card .link {
    font-size: 0.75em;
    margin: 0 0.5em;
    line-height: 100%;
    align-self: center;
}

.card a {
    text-decoration: none;
    font-weight: bold;
    background: cornflowerblue;
    padding: 0.25em;
    border-radius: 0.5em;
    border: 1pt solid black;
    color: #ffffff;
}

.card a:hover {
    color: #9dff9d;
    border-color: #9dff9d;
}

.card a:active {
    color: #ffa29d;
    border-color: #ffa29d;
}

main {
    padding: 0;
    color: var(--text-color);
}

main>.content {
    padding: 1em;
    box-sizing: border-box;
    /* padding-bottom: var(--footer-height); */
}

body.embed iframe {
    width: 100vw;
    min-height: var(--main-height);
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}


body.embed main>.content {
    padding: 0;
}

#menu {
    font-family: "Slackey", serif;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1em;
    font-size: 1em;
    font-weight: bold;
}

#menu a {
    /* display: inline-block; */
    border: 2pt solid black;
    border-radius: 0.5em;
    padding: 0.25em;
    line-height: 100%;
    color: black;
    background: white;
}

#body.modal {
    position: absolute;
    inset: 0;
    background: #000000bb;
    /* margin-top: var(--header-height); */
    display: flex;
    align-items: center;
}

#body.modal .content {
    max-width: var(--max-width-content);
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
    background-color: var(--background-color);
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0.3em 0.3em 0.9em 0.3em #00000088;
    border: 3pt solid black;
    border-radius: 1em;
}

#body .content button {
    text-decoration: none;
    font-weight: bold;
    font-size: 2em;
    background: cornflowerblue;
    padding: 0.25em;
    border-radius: 0.5em;
    border: 1pt solid black;
    color: #ffffff;
}

#body .content button:active {
    transform: translate(0.2em, 0.2em)
}

#body dl dt {
    font-weight: bold;
    display: inline-block;
}

#body dl dt::after {
    content: ":";
}

#body dl dd {
    display: inline-block;
    margin-left: 0.5em;
}

#body.hidden {
    display: none;
}

#close-btn {
    float: right;
}

#modal-play-btn {
    width: 100%;
}

.hidden {
    display: none;
}

/* @media screen and (max-width: 800px) {
    #menu {
        display: none;
    }
} */