* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #392F5A;
    color: #FFF8F0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

h2 {
    padding: 2vh 0;
}


.game {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 80vw;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 20px 0;
}

.box {
    background-color: #FFDC7D;
    border: none;
    border-radius: 0.5rem;
    font-size: 10vmin;
    color: #FF8811;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;

}


.reset-game,
.new-game {
    background-color: #FF8811;
    color: #FFF8F0;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 10px;
}


.msg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;


    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: rgba(57, 47, 90, 0.95);
    z-index: 100;
    gap: 20px;
    font-size: 2rem;
}

.msg {
    font-size: 3rem;
    color: #FFF8F0;
    font-style: italic;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.hide {
    display: none !important;
}



@media (max-width: 768px) {
    .game {
        width: 60vw;
    }
}


@media (max-width: 480px) {
    .game {
        width: 90vw;
    }

    h2 {
        font-size: 1.2rem;
    }

    .box {
        font-size: 3rem;
    }

    .reset-game,
    .new-game {
        padding: 0.8rem 1.5rem;
    }
}