* {
    font-family: "Outfit", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 1.5rem;
}

nav {
    height: 100px;
    background: #1f363d;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f4f9e9;
    transition: 0.25s;
}

nav a:hover {
    background: #40798c;
}

nav .home-link {
    margin-right: auto;
}

label img {
    height: 50px;
}

label img:hover {
    cursor: pointer;
}

#sidebarActive {
    display: none;
}

.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

@media screen and (max-width: 992px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background: #1f363d;
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }

    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        padding: 20px;
        display: block;
    }

    #sidebarActive:checked~.links-container {
        right: 0;
    }

    #sidebarActive:checked~#overlay {
        background: black;
        opacity: 0.5;
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
        transition: 0.75s ease-out;
    }
}

.container {
    height: 90dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.title {
    margin: 2rem 0;
}

.play,
.play-again {
    padding: 0.5rem;
    width: auto;
    height: fit-content;
    font-size: 30px;
    background: #6AAA64;
    color: #f5dddd;
    border-radius: 0.4rem;
    border: none;
    transition: 0.25s;
    margin: 1rem;
}

.play:hover,
.play-again:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.play-again {
    display: none;
}

.board {
    display: none;
    width: clamp(13rem, 50vw, 20rem);
    height: clamp(13rem, 50vw, 30rem);
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}

.tile {
    width: auto;
    height: auto;
    background: rgb(255, 255, 255);
    color: black;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.no-pointer {
    cursor: default;
}

.horizontal-line {
    border-bottom: 2px solid black;
}

.vertical-line {
    border-right: 2px solid black;
}

.winner {
    text-align: center;
    margin: 2rem auto;
}