@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap');

* {
    padding: 0;
    margin: 0;

    font-family: "Figtree", sans-serif;
    user-select: none;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    background-color: #f2e9e4;
}

header,
footer {
    background-color: #9a8c98;
    width: 100%;
}

header {
    height: 70px;

    color: #f2e9e4;
    text-align: center;
    align-content: center;
    font-size: 3rem;
    font-weight: 700;
}

footer {
    height: 50px;

    color: #f2e9e4;
    text-align: center;
    align-content: center;
    font-size: 1rem;
    font-weight: 500;

    text-decoration: underline;
}

a {
    color: #f2e9e4;
}

.game-content {
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.current-turn-display {
    color: black;
    font-size: xx-large;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-rows: 140px 140px 140px;
    grid-template-columns: 140px 140px 140px;
    gap: 2px;
}

.grid__child {
    background-color: #4a4e69;
    border: 2px solid black;
    cursor: pointer;

    text-align: center;
    align-content: center;

    font-size: 5rem;
    color: white;
}

.grid__child.valid:hover {
    transition: .2s;
    background-color: #63698f;
    border: 2px dashed rgb(161, 255, 192);
}
.grid__child.invalid:hover {
    transition: .2s;
    background-color: #8f6363;
    border: 2px dashed rgb(255, 105, 105);
    cursor: default;
}

.winner-overlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.856);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.winner-overlay button {
    border: none;
    padding: 10px 25px;
    border-radius: .7rem;
    cursor: pointer;
    transition: .2s;
    font-weight: 700;
}
.winner-overlay button:hover {
    transition: .2s;
    transform: scale(1.05, 1.05);
    border-radius: 0;
}

.winner__title {
    color: white;
    font-size: 6rem;
    font-weight: 700;
}

.sidebar {
    background-color: #404461;
    color: white;
    height: 400px;
    width: 200px;
    margin: 20px;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.scoreboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 2;
}

.scoreboard-container hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.268);
    width: 95%;
}

.sidebar-btn-container button {
    margin: 10px;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    transition: .2s;
}
.sidebar-btn-container button:hover {
    transition: .2s;
    padding: 10px 35px;
    font-weight: 600;
}