@font-face {
    font-family: font;
    src: url(../../resources/fonts/darkforest.woff2);
}

body {
    --title-height: 15vh;

    display: grid;
    grid-template-rows:
        var(--title-height)
        calc(100vh - var(--title-height) - 120px)
        120px;

    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */

    background-color: black;
    margin: 0px;
}

.title {
    font-family: font;
    font-size: min(10vh, 10vw);

    text-decoration: underline;

    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
}

.player-indicator {
    margin-left: 40px;
}

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

.board {
    --padding: 2vw;
    --board-size: min(
        100vw - 2 * var(--padding),
        100vh - var(--title-height) - 2 * var(--padding) - 120px
    );
    
    width: var(--board-size);
    height: var(--board-size);
    padding: var(--padding);

    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}

.tile {
    border: 3px solid red;
    color: red;

    font-family: font;
    font-size: calc(var(--board-size) / 4);

    display: flex;
    align-items: center;
    justify-content: center;
}

.left {
    border-left: 0px solid black;
}

.right {
    border-right: 0px solid black;
}

.top {
    border-top: 0px solid black;
}

.bottom {
    border-bottom: 0px solid black;
}


/* ############################################################ */
/* # sliders ################################################## */

/* https://www.w3schools.com/howto/howto_js_rangeslider.asp */

/* The slider itself */
.slider {
    -webkit-appearance: none;  /* Override default CSS styles */
    appearance: none;
    width: 100%;
    height: 100%; /* Specified height */
    background: black;
    /* outline: 1px solid red; */
    /* opacity: 0.7; */
    /*-webkit-transition: .2s; */
    /* transition: opacity .2s; */
    border-radius: 25px;

    flex: 0;
    /* flex-basis: 10px; */
    width: calc(var(--cell-size) * 7);
    height: 40px;
    margin-top: 40px;
    margin-left: 40px;
    margin-right: 40px;

    border: 2px solid red;
    outline: none;
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 25px; /* Set a specific slider handle width */
    height: 25px; /* Slider handle height */
    background: red; /* Green background */
    cursor: pointer; /* Cursor on hover */
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 25px; /* Set a specific slider handle width */
    height: 25px; /* Slider handle height */
    background: red; /* Green background */
    cursor: pointer; /* Cursor on hover */
    border: 1px solid red
}


/* ############################################################ */
/* # modals ################################################### */

.modal {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10%;
    overflow: hidden;

    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    position: absolute;
    top: 0;
    left: 0;

    background-color: rgba(0, 0, 0, 0.8);
    color: red;
    font-family: font;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: min(80vh, 32vw);
    display: none;

    opacity: 0;
    transition: opacity 2s;
}

#gg-bottom {
    font-size: min(20vh, 8vw);
}
