:root {
    font-size: 20px;
    color-scheme: light dark;
}

body {
    font-family: monospace;
    font-size: 1rem;
}

h1, h3, p {
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    * {
        text-align: center;
    }

    h1 {
        margin-bottom: 0;
    }

    h3 {
        margin-top: 0;
        opacity: 0.4;
    }
}

button {
    display: block;
    margin: 1rem auto;
    font-size: 1.25rem;
    padding: 2px 7px;
}

#game-container {
    font-size: 3rem;

    .row {
        display: table;
        margin: 0 auto;
    }

    .row>* {
        white-space: pre;
        display: inline;
        background-color: light-dark(#FFFFFF, #29292B);
        border: 2px solid light-dark(#000000, #FFFFFF);
        padding: 0px 1.25vh;
    }
}

#refresh {
    display: block;
    margin: 0 auto;
    font-size: 1.25rem;
    padding: 2px 7px;
}

#settings {
    display: block;
    margin: 10px auto 0 auto;
    padding: 2px 7px;
}

#toaster {
    position: fixed;
    bottom: 3vh;
    right: 5%;
    left: 5%;
    pointer-events: none;

    .toast {
        position: relative;
        text-align: center;
        border-radius: 0 5px 0 5px;
        background-color: light-dark(#C2C6C9, #292A2B);
        pointer-events: all;
        padding: 10px 15px;
        margin: 10px auto 0 auto;
        width: fit-content;

        p {
            margin: 0;
        }
    }
}

@media screen and (min-width: 900px) {
    #toaster {
        position: fixed;
        bottom: 3vh;
        right: 5%;
        min-width: 15vh;
        pointer-events: none;

        .toast {
            position: relative;
            text-align: center;
            border-radius: 0 5px 0 5px;
            background-color: light-dark(#C2C6C9, #292A2B);
            pointer-events: all;
            padding: 10px 15px;
            margin: 10px 0 0 auto;
            width: fit-content;

            p {
                margin: 0;
            }
        }
    }
}

#connect-table {
    margin: 0 auto;
    border-collapse: collapse;

    th, td {
        border: 1px solid light-dark(#000000, #FFFFFF);
        padding: 0 0.5rem;
    }

    tr>td:first-child {
        vertical-align: top;
        text-align: center;
    }

    tr>td:last-child {
        text-align: left;
    }
}

.blink {
    animation: blinker 1.5s ease-in-out infinite;
}

@keyframes blinker {
    50% {
        color: rgba(255, 255, 255, 0);
    }
}

.hidden {
    display: none;
}

.accordion, .wrapper {
    margin-top: 10px;
    border-top: 1px solid;
    border-bottom: 1px solid;

    .accordion-inner, .wrapper-inner {
        width: fit-content;
        margin: 0 auto;
    }
}

.clickable {
    cursor: pointer;
}

.text-highlight {
    color: light-dark(#FF7F00, #FF9ED3);
}

