.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--square-width);
    height: var(--square-height);
    border: 3px solid var(--rose-pink);
    font-size: 2rem;
    box-sizing: border-box;
    position: absolute;
    transition:
        top 0.5s,
        left 0.5s,
        background-color 0.5s,
        transform 0.5s;
    background-color: var(--seasalt);
    border-radius: 8px;
}

#currentMoveCount {
    color: var(--seasalt);
    font-size: 2rem;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .cell {
        font-size: 6vw;
    }

    #currentMoveCount {
        font-size: 6vw;
    }
}

* {
    user-select: none;
}

#game_board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    position: relative;
    max-width: min(90vw, 50vh);
    max-height: min(90vw, 50vh);
}

h1 {
    color: var(--yellowy);
}

body,
html {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    height: 100%;
    background-color: var(--space-cadet);
    --space-cadet: hsla(235, 21%, 21%, 1);
    --non-photo-blue: hsla(187, 61%, 74%, 1);
    --seasalt: hsla(270, 14%, 97%, 1);
    --maize: hsla(56, 91%, 66%, 1);
    --rose-pink: hsla(315, 100%, 70%, 1);
    --green: hsla(114, 41.43%, 50.54%, 1);
    --yellowy: hsla(37, 75%, 67%, 1);
}

.winAnimation {
    animation: win 500ms ease-in-out forwards;
}

@keyframes win {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(8deg);
    }

    100% {
        transform: scale(1);
    }
}

#finalMessage {
    color: var(--seasalt);
    opacity: 0;
    transition: opacity 0.5s;
    text-align: center;
    height: 60px;
}

.pickedUpZIndex {
    z-index: 1000;
}

#shareButton {
    opacity: 0;
    width: 100px;
    height: 30px;
    border-radius: 15px;
    background-color: var(--green);
    color: var(--seasalt);
    border: color-mix(in srgb, var(--green) 90%, var(--seasalt) 10%);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
    cursor: pointer;
}

* {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "slnt" 0;
}

#title {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 13;
    font-style: normal;
    font-size: 3rem;
}

#pageWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

#header {
    background: #242536;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    height: fit-content;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#title {
    padding: 0;
    margin: 0;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mainGame {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    height: 100%;
}

#helpButton {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 60px;
    border: 3px solid var(--rose-pink);
    font-size: 3rem;
    box-sizing: border-box;
    font-size: 16px;
    transition:
        background-color 0.5s,
        transform 0.5s;
    background-color: var(--seasalt);
    border-radius: 8px;
    cursor: pointer;
}

#helppopover {
    width: 80%;
    border: 3px solid var(--rose-pink);
    border-radius: 8px;
    max-width: 400px;
}

::backdrop {
    backdrop-filter: blur(3px);
}

#timeParent {
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-in-out;
}

#timeParent > * {
    margin: 0;
    padding: 0;
}

#nextMessage,
#nextTime {
    color: var(--seasalt);
}

#nextTime {
    padding-bottom: 20px;
}

.pickedUp {
    transform: scale(1.05) rotate(2deg);
    background-color: var(--non-photo-blue) !important;
}

#copiedToClipboard {
    color: var(--seasalt);
    opacity: 0;
    transition: opacity 500ms ease-in-out;
}
