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

canvas {
    width: 100%;
    height: 100%;
}

#turn-indicator {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background-color: white;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 1;
}

#reset-button {
    position: absolute;
    top: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 1;
    display: flex;
}

#reset-button > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#rulebook {
    position: absolute;
    top: 175px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 1;
    display: flex;
}

#rulebook > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#rule-overlay {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    z-index: 1;
    display: none;
    /* display: flex; */
    background-color: rgba(0, 0, 0, 0.8);
}


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

#thinking {
    width: 100%;
    padding-top: 0vh;
    /* z-index: 90; */

    position: absolute;
    top: 8vh;
    left: 0;

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

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

}


/* ############################################################ */
/* # 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: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 10%;
    overflow: hidden;
    z-index: 100;

    -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;
    font-size: min(80vh, 32vw);

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

    opacity: 0;
    transition: opacity 2s;
}

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