
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --slot-size: 75px;
}

html, body {
    background-color: rgb(44, 44, 44);
    text-align: center;
}

#turn {
    color: white;
    margin-top: 1rem;
}

.board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-template-columns: repeat(7, 1fr);
    justify-items: center;
    align-items: center;
    
    width: calc( var(--slot-size) * 8 );
    height: calc( var(--slot-size) * 7 );
    margin: 3rem auto;
    background-color: rgb(0, 183, 255);
}

.board .slot {
    width: var(--slot-size);
    height: var(--slot-size);
    border: 1px solid black;
    background-color: #f4f4f4;
    border-radius: 50%;
    cursor: pointer;
}

#winner_window {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    min-height: 30vh;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, .7);
    color: white;
    font-size: 3rem;
}

#winner_window span:last-child {
    font-size: 1.5rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 1rem;
}

.board .red {
    background-color: red !important;
}

.board .blue {
    background-color: blue;
}

.show {
    display: flex !important;
}

.game_finished {
    pointer-events: none;
}