

#board {
    display: grid;
    grid-template-columns: repeat(3, min(18vw, 150px));
    border-width: 10px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);

}

.cell {
    display: flex;
    width: min(18vw, 150px);
    aspect-ratio: 1 / 1;
    border: 2px solid #444;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    font-size: min(10vw, 65px);
}

.cell:hover {
    background-color: #f0f0f0;
}

#game {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#reset-btn {
    margin-top: 30px;
    border-radius: 12px;
    width: min(80%, 225px);
    background-color: #10a37f;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}
#reset-btn:hover {
    background-color: #0d8a6c;
}

#status {
    visibility:hidden;
    min-height: 1.5em;
    margin: 0;
}   

#title {
    font-family:sans-serif,Arial, Helvetica;
    font-size: min(10vw, 45px);
    padding: 0;
    margin-top: 24px;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 1px;
}


body::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(25vw - 16px);
    height: 100vh;
    background: rgba(16, 163, 127, 0.35);
    z-index: -1;
}

body::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(25vw - 16px);
    height: 100vh;
    background: rgba(16, 163, 127, 0.35);
    z-index: -1;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow-y: auto;
}

#current-turn {
    font-family:sans-serif,Arial, Helvetica;
    min-height: 1.5em;
    margin: 0;
    visibility: hidden;
    height: 1.5em;
    flex-shrink: 0;
    margin-top: 16px;
}

@media (max-width: 600px) {
    body::before,
    body::after {
        display: none;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    #title {
        font-size: min(6vw, 28px);
        margin-top: 8px;
        margin-bottom: 12px;
    }

    #reset-btn {
        margin-top: 12px;
    }

    #current-turn {
        margin-top: 8px;
    }

    body::before,
    body::after {
        display: none;
    }

    body {
        overflow-y: auto;
    }
}