@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Geist+Mono:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

:root {
    --header-shade: var(--dark-antimani);
    --shade1: var(--dark-antimani);
    --shade2: var(--antimani);
    --shade3: var(--light-manila);
    --background: var(--verylight-manila);
    --hover: var(--pinkish);
    --checked: var(--light-antimani);
    --grayed: #b3b2ca;
    --grayhighlight: #44505c66;

    --nearblack: #181818;

    --verylight-manila: #f5e9dd;
    --light-manila: #eed9c3;
    --manila: #E7C9A9;
    --dark-manila: #b9a187;
    --verydark-manila: #8b7965;

    --verylight-antimani: #d4e3f3;
    --light-antimani: #bad2ec;
    --antimani: #a9c7e7;
    --dark-antimani: #768ba2;
    --verydark-antimani: #44505c;

    --pinkish: #e7a9c7;

    --border-thick : 4px var(--nearblack) solid;
    --border-thin: 3px var(--nearblack) dashed;
    --border-inner: 1px #616161 solid;
    --border-test: 4px red solid;

    --darkred: #AA2040;
    --darkblue: #2040AA;
    --darkgreen: #40AA20;

    --redhighlight: #AA202066;

    --font-size-small: 14px;
    --font-size-medium: 16px;
    --font-size-large: 24px;

    --poem-font: "Chivo Mono";
    --header-font: "Caprasimo", serif;
    --subheader-font: "Caprasimo", serif;
    --body-font: "Chivo Mono";
}

html {
    height: 100%;
}

body {
    font-variant-ligatures: none;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;

    height: 100%;

    font-family: var(--body-font), monospace;

    background-image: url(../assets/bg.png);
    background-color: var(--background);
}

header, #header-placeholder {
    background-color: var(--header-shade);
    border-bottom: var(--border-thick);
    height: 50px;
}

header {
    object-fit: contain;
    vertical-align: middle;
    display: flex;
    justify-content: space-between;
    flex-flow: row nowrap;

    @media (max-width: 600px) {
        height: 50px;
    }

    .title-container {
        flex: 0 0 auto;
        margin-left: 20px;
        vertical-align: middle;

        img.logo {
            margin: 5px 0;
            max-height: 100%;
            width: auto;
            float: left;
        }

        h1 {
            float: left;
            font-size: 36px;
            font-family: var(--header-font), monospace;
            font-weight: bold;
            margin: 5px 10px 7px 10px;
        }

        &:hover {
            cursor: pointer !important;
            color: var(--verylight-antimani);
        }
    }

    .link-container {
        flex: 0 0 auto;

        @media (max-width: 600px) {
            a {
            }
            scale: 60%;
        }
    }

    a {
        float: left;
        color: var(--nearblack);
        font-size: var(--font-size-large);
        text-decoration: none;
        padding: 11px 12px;
        border-left: var(--border-inner);
        font-family: var(--body-font), monospace;
        font-weight: 800;

        vertical-align: middle;
    }

    a:hover {
        background-color: var(--verydark-antimani);
    }
}

button {
    background-color: ghostwhite;
    color: var(--nearblack);
    line-height: 1;
    text-align: center;
    padding: 6px 10px;
    margin-right: 0;
    border: var(--border-inner);
    font: var(--body-font);
    border-radius: 5px 5px 5px 5px;
}

button:hover {
    box-shadow: none;
    cursor: pointer;
    background-color: var(--hover);
}

.main {
    width: 100%;
    height: calc(100% - 50px - 4px);
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 0;
    position: relative;
}

h2, label {
    font-family: var(--subheader-font), serif;
    font-weight: 300;
    text-align: center;
}

.radio-switch label {
    font-family: var(--body-font), sans-serif;
    font-weight: 400;
}
