* {
    margin: 0; 
    padding: 0; 
}

header {
    background-color: #2e2e4b; 
    min-height: 20vh; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #dedeee; 
    gap: 15px; 
}
main {
    display: flex; 
    height: 80vh; 
    align-items: center;
    justify-content: center;
    flex-direction: column;


}
header img {
    height: 2rem; 
    width: auto; 
}


.grid { 
    width: 100%; 
    height: max(40vh,200px);
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
    grid-auto-rows: 1fr; 
    justify-content: center;
    align-items: stretch;
    text-align: center;
    gap: 5px; 
}

.cell {
    min-height: 50px; 
    min-width: 50px; 
    display: grid;
    place-items: center;
    background-color: #dedeee;
    border-radius: 5px; 
    transition: 0.2s;
    cursor: pointer;
}
.cell-mini {
    height: 15px; 
    width: 15px; 
    background-color: #dedeee;
    border-radius: 5px; 
    transition: 0.2s;
    display: grid;
    background-color: #dedeee;
    border-radius: 2px; 
    transition: 0.2s;
}

.cell:hover {
    transform: scale(1.1);
}

.game-over {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 20px; 
}

.game-over h2 {
    grid-column: 1 / span 2;
}

.player-start {
    display: grid; 
    margin: 0 auto; 
    align-items: center;
    justify-content: center;
    gap: 20px; 
    padding: 25px; 
    border: 1px solid #2e2e4b;
    border-radius: 10px;
    box-shadow: 0 4px 4px 0 rgba(0,0,0,0.25);
}
.player-start label {
    display: flex; 
    align-items: center;
    gap: 5px; 
}
.game {
    width: max(40vh, 200px); 
    display: grid; 
    gap: 20px; 
}

button {
    padding: 8px 15px; 
    background-color: #2e2e4b;
    color: #dedeee; 
    border: 1px solid transparent; 
    border-radius: 10px; 
    cursor: pointer;
}

button:hover {
    color: #2e2e4b; 
    background-color: #dedeee; 
    border: 1px solid #2e2e4b; 
}


.hidden {
    display: none; 
}

.player0 {
    background-color: lightgreen;
}
.player1 {
    background-color: lightcoral;
}