@font-face {
    font-family: Press-Start-2P;
    src: url(assets/fonts/PressStart2P-Regular.ttf);
}

* {
    box-sizing: border-box;
}

body {
    background-color: rgb(26, 26, 25);
    font-family: Press-Start-2P, system-ui, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    margin: 0;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    margin: 30px;
}

.title2 {
    font-size: 1.6rem;
    font-weight: bold;
}

#selection-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    border: 3px solid #82e90c;
    background-color: rgb(53, 53, 53);
    border-radius: 10px;
}

.selection-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.selection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

input {
    flex: 1;
    border: none;
    outline: none;
    background-color: #e9eb6e;
    border-radius: 5px;
    height: 1.7rem;
    text-indent: 5px;
    font-family: Press-Start-2P;
}

.selection-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-button,
#results-container > button {
    border: none;
    font-size: 2rem;
    font-weight: bolder;
    border-radius: 10px;
    height: 2.7rem;
    cursor: pointer;
}

.selection-buttons > button:nth-of-type(1) {
    background-color: #82e90c;
}

.selection-buttons > button:nth-of-type(2) {
    background-color: #1cd2eb;
}

#gameboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

#gameboard-item-container {
    display: grid;
    grid-template-columns: 0fr 0fr 0fr;
}

.gameboard-item {
    user-select: none;
    width: 200px;
    height: 200px;
    background-color: rgb(163, 161, 161);
    border-radius: 5px;
    border: 1px solid black;
    font-size: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:  system-ui, sans-serif;
    font-weight: 600;
}

/* hovered must appear before the color changes; otherwise hovered would overwrite them */
.hovered,
.player-button:hover,
#reset-button:hover {
    transform: scale(1);
    border-color: #d41626;
    box-shadow: 0 0 1rem #d41626;
    background-color: #be9306;
}

.color1 {
    transform: scale(1);
    border-color: #d41626;
    box-shadow: 0 0 1rem #d41626;
    background-color: #82e90c;
}

.color2 {
    transform: scale(1);
    border-color: #d41626;
    box-shadow: 0 0 1rem #d41626;
    background-color: #1cd2eb;
}

#results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#results-container > button {
    font-size: 20px;
    background-color: yellow;
    margin-top: 20px;
    padding: 10px 20px;
    height: 55px;
    font-family: Press-Start-2P, system-ui, sans-serif;
}

@media only screen and (max-width: 600px) {
    .title {
        margin: 0;
        margin-top: 30px;
        font-size: 2rem;
    }

    #selection-container {
        padding: 2rem;
        margin: 1rem;
    }

    .selection-item {
        flex-direction: column;
        height: 55px;
    }

    .title2 {
        font-size: 1rem;
    }

    #gameboard-container {
        margin: 0;
    }

    .gameboard-item {
        width: 120px;
        height: 120px;
        font-size: 5rem;
    }
}