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

:root {
    --primary-color: lightslategray;
    --secondary-color: lightgrey;
}

body {
    background-color: var(--primary-color);
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
}

main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 100px 100px auto;
    height: 90vh;
}

 #gameboard {
    grid-area: 2 / 2 / 3 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 2rem;
} 

.tile {
    min-height: 6rem;
    min-width: auto;
    font-size: larger;
    border-radius: 10px;
    font-size: 5rem;
    background-color: var(--secondary-color);
}

.top-middle {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#turn {
    font-size: 2rem;
}

.btns {
    grid-area: 3 / 2 / 4 / 3;
    justify-content: space-around;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 32px;
}

#toggle-player {
    grid-area: 1 / 3 / 2 / 4;
}

.btns button {
    margin: 12px 0px;
    padding: 4px 8px;
    border-radius: 10px;
    background-color: var(--secondary-color);
}

.x-side {
    grid-area: 2 / 1 / 4 / 2;
}

.y-side {
    grid-area: 2 / 3 / 4 / 4;
}

.x-side,
.y-side {
    display: grid;
    grid-template-rows: 2fr 1fr;
    justify-items: stretch;
    font-size: 2rem;
}

.scoreboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid black;
    border-radius: 10px;
    margin: 24px;
    background-color: var(--secondary-color);
}

hr {
    border: solid black 2px;
    border-radius: 10px;
    width: 80%; 
}