:root {
    --primary-color: rgb(246, 236, 223); /* Light primary by default */
    --menu-color: rgb(250, 235, 215);
    --secondary-color: rgb(8, 110, 8);
    --theme-color: rgb(30, 30, 30);
    --board-color: rgb(30, 30, 30);
    --menu-hover-color: rgb(5, 67, 5);
}
body {
    background-color: var(--primary-color);
}
header {
    display: flex;
    justify-content: center;
}
h1 {
    color: var(--secondary-color);
    display: flex;
    text-align: center;
}
h2 {
    color: var(--secondary-color);
    font-size: 4vw;
}
p {
    font-size: 3vw;
}
.title {
    margin: 0;
    font-size: 7vw;
}
section {
    margin-top: 5vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
section div {
    width: 25%;
}
.turnBox {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.turnBox h2{
    margin: 0;
}

.turnBox p {
    margin-bottom: 20px;
    color: var(--board-color);
}

table {
    border-collapse: collapse;
}
 
td:not(:first-child):not(:last-child) {
    border-left: 5px solid var(--board-color);
    border-right: 5px solid var(--board-color);
}
tr:not(:first-child):not(:last-child) {
    border-top: 5px solid var(--board-color);
    border-bottom: 5px solid var(--board-color);
}
.buttons {
    display: flex;
    justify-content: center;
}
.button {
    padding: 0;
    width: 12vw;
    height: 12vw;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 6vw;
}
.endScreen {
    background-color: var(--menu-color);
    border: 2px solid black;
    border-radius: 5px;
    padding: 20px;
    visibility: hidden;
    position: fixed;
    z-index: 1;
    top: 50%;
    bottom: 50%;
    transform: translate(-0%, -50%);
    left: 0;
    right: 0;
    margin-inline: auto;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.stats {
    display: flex;
    flex-direction: row;
    color: var(--board-color);
}

.winStat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat {
    font-size: 4vw;
}

.endScreen p {
    margin: 0;
    margin-inline: 20px;
    font-size: 4vw;
}
.endButtons {
    padding: 2vw;
}

.endButtons button {
    color: white;
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 1.5vw;
    margin-inline: 20px;
    cursor: pointer;
}

.endButtons button:hover {
    background-color: var(--menu-hover-color);
}

.themeButton {
    position: fixed;
    top: 2%;
    right: 2%;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 50%;
    background-color: var(--theme-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    border: 2px solid black;
    cursor: pointer;
}

.themeButton:hover {
    transform: scale(1.1);
    transition-duration: .5s;
    box-shadow:5px 5px rgb(99, 99, 99);
}

.themeButton p {
    font-size: 1.5vw;
}

@media screen and (max-width: 500px) {
    section {
        flex-direction: column-reverse;
    }
    .turnBox {
        margin-top: 10%;
    }
}