* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25rem;
}

body {
    overflow: hidden;
}

.wrapper {
    display: grid;
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        'header'
        'main'
        'footer';

    overflow: hidden;
    width: 100vw;
    
    header {
        grid-area: header;
    }

    main {
        grid-area: main;
        padding: 1rem;
        overflow: auto;
    }

    footer {
        grid-area: footer;
    }


    header, footer {
        background: #334;
        color: snow;
        padding: 1rem;

        a {
            color: lightskyblue;
        }

        h1 {
            span {
                color: tomato;
            }
        }
    }

    footer {
        text-align: center;
    }

}

table.games {
    width: 100%;

    thead th,
    tbody td { text-align: center; }

    thead tr th:first-child, 
    tbody tr td:first-child { text-align: left; }
    
    thead tr th:last-child, 
    tbody tr td:last-child { text-align: right; }

    tbody {

        td.ai_true {
            background: tomato;
            color: snow;
            font-weight: 700;
        }

        td.ai_false {
            background: mediumseagreen;
            color: snow;
            font-weight: 700;
        }
    }
}

table.stats {
    /* border: 1px solid #aaa; */
    font-size: 1.25rem;
    width: 100%;

    td {
        text-align: center;

        span {
            font-weight: 700;
        }
    }
    
}



div.modal {
    background: rgba(0,0,0,0.5);
    bottom: 0;
    display: none;
    height: 100vh;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 100;

    .modal-content {
        background: snow;
        border: 1px solid #334;
        border-radius: 4px;
        color: #666;
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
        min-width: 40vw;
        min-height: 60vh;
        width: 40vw;
        height: 60vh;
        max-width: 90vw;
        max-height: 90vh;
        padding: 1rem;
        overflow: scroll;


        h2, h4 {
            color: #444;
        }
    }
}

div.modal.open {
    display: flex;
    justify-content: center;
    align-items: center;
}