@font-face {
    font-family: 'customFont';
    src: url('fonts/Khollilah.otf') format('opentype');
}

body, html {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #5a2610;
}

#game-container {
    width: 700px;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

canvas {
    width: 700px;
    height: 700px;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
    background: transparent;
    z-index: 1000;
    pointer-events: auto;
}

.score-container {
    pointer-events: none;
    width: auto;
    bottom: 10px;
    z-index: 999;
}

#white-score, #black-score, .turn-text, .title-text {
    pointer-events: none;
    color: #eed9b9;
}

@media (max-width: 800px), (max-height: 800px) {
    html, body {
        width: 100dvw;
        height: 100dvh;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    #game-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100dvw;
        height: 100dvh;
        max-width: 100dvw;
        max-height: 100dvh;
        background: #5a2610;
        display: block;
    }
    #game-container canvas {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(100dvw, 100dvh, 100vw, 100vh);
        height: min(100dvw, 100dvh, 100vw, 100vh);
        max-width: 100dvw;
        max-height: 100dvh;
        aspect-ratio: 1 / 1;
        transform: translate(-50%, -50%);
        margin: 0 !important;
        background: transparent;
        z-index: 1000;
    }
}