@import url("https://fonts.googleapis.com/css2?family=Concert+One&family=Edu+SA+Beginner:wght@500;600;700&family=Karla:wght@200;300;400;500;600;700;800&family=Pacifico&display=swap");
:root {
    --grid-size: min(80vw, 60vh, 750px);
}
body {
    background-color: #e6ccb2;
    margin: 0px;
    height: 100vh;
    overflow: hidden;
    font-family: "Edu SA Beginner", sans-serif;
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: min(80%, 1083px);
    margin: 0 auto;
}
.board-container {
    width: auto;
    margin: 0 auto;
    max-height: 54%;
    max-width: 100%;
    aspect-ratio: 1;
    display: grid;
}

.board,
#cells,
#shadows {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    aspect-ratio: 1/1;
    grid-area: 1/1/2/2;
}

#cells {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: calc(100% / 15);
    justify-content: center;
    align-content: center;
}

#shadows {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: calc(100% / 15);
    justify-content: center;
    align-content: center;
    pointer-events: none;
}
.cell,
.shadow {
    width: calc(100% / 3.75);
    height: calc(100% / 3.75);
    margin: 0px;
}

.cell > img {
    transition: transform 70ms ease-out;
    /* transform: scale(1); */
}

.cell > .playing {
    transform: scale(1);
}



.shadow {
    opacity: 0%;
    background-color: #ddb892;
    border-radius: 100%;
    transition: opacity 100ms ease-out, transform 70ms ease-out;
    transform: scale(0.7);
}

.shadow.hover {
    opacity: 80%;
    cursor: pointer;
    transform: scale(0.89);
}

.board > img {
    height: 100%;
    width: 100%;
}

.victory-container {
    margin: 0 auto;
    width: fit-content;
    transition: transform 80ms cubic-bezier(0,1.5,1,1.5);
}

.victory-container > h2 {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                        supported by Chrome, Edge, Opera and Firefox */
    /* margin-bottom: 7px; */
}


.header {
    display: flex;
    justify-content: space-between;
    width: var(--grid-size);
    margin: 0px auto;
}

.header img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    height: min(15vw, 10.5vh);
}

.x-wins-container,
.o-wins-container {
    display: flex;
    flex-direction: column;
    margin: 0px 29px;
    /* max-width: 90px; */
}
.x-wins-container h2,
.o-wins-container h2{
    transition: transform 80ms ease-out;
}
.x-wins-container .playing,
.o-wins-container .playing{
    transform: scale(1.05)
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    text-align: center;
    margin: 0px;
}

h2 {
    font-size: 2.625rem;
    font-size: min(
        clamp(2.625rem, 2.025rem + 3vw, 5.625rem),
        clamp(2.625rem, 0.3308823529411766rem + 7.8431372549019605vh, 5.625rem)
    );
}

h3 {
    font-size: 1.125rem;
    font-size: clamp(1.125rem, 1rem + 0.9375vw, 2.2625rem);
}

#reset-button {
    all: unset;
    position: absolute;
}
