
/* VARIABLES */ 
:root {
    --square: calc((100svh/8) - 5px)
}

body {
    display: block;
    height: 1svh;
    /* scroll-behavior: ; */
    background-color: gray;
    padding: 0;
    margin: 0;
}
#board {
    margin: auto;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(8, min(var(--square), 100px));
    grid-template-rows: repeat(8, min(var(--square), 100px));
}
.space {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items:center;
}
.black {
    background-color: black;
}

.white {
    background-color: white;
}

.selected {
    background-color: rgb(137, 255, 108);
}
.whitePiece {
    filter: invert(1)
}
img {
    width: 80%;
    z-index: 100;
    
}
.pawn {
    width: 60%;
}

#game-reset-btn {
    color: white;
    background-color: black;
    border: none;
    border-radius: 5px;
    padding: .5em 1.25em;
    font-weight: bold;
    margin: 1em 0 0 2em;
    display: block;
}

@media (orientation: portrait) {

    :root {
        --square: calc(100svw/8)
    }
    #game-reset-btn {
        margin: 3em auto;
    }
}