body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url("/images/banner.jpg");
    font-family: 'Poppins';
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(5px);
    user-select: none;
    box-sizing: border-box;
}

.container{
    font-family: 'Poppins';
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    gap: 30px;
    background: linear-gradient(
        325deg,
        #ee7b16 0%,
        #ff8c27 30%, 
        #ff9131 70%,
        #d66a12 100%
    );

    padding: 25px 40px;
}

h1 {
    font-family: "Pacifico";
    color: white;
    font-size: 35px;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 0px;
}

h1 span {
    font-family: "Poppins";
    font-weight: 800;
}

h2 {
    font-size: 35px;
    color: white;
    font-family: "Poppins";
    font-weight: 800;
    text-align: center;
    margin: 0px;
    padding: 0px;
}

.reset{
    padding: 15px 20px;
    width: 100%;
    color: #000;
    background-color: #fff;
    border: none;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
}

p {
    justify-self: center;
    width: 90%;
    color: white;
    text-align: center;
    font-weight: 700;
    font-family: 'Poppins';
}

.reset:focus{
    color: #ec38bc;
    background: #262809;
}

.game{   
    width: 430px;
    height: 430px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transform-style: preserve-3d;
    perspective: 500px;
}

.item{
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    font-size: 3.5em;
    transform: rotateY(180deg);
    transition: 0.25s;
}

.item img.hidden {
    display: none;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


.item::after{
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    transition: 0.25s;
    transform: rotateY(0deg);
    backface-visibility: hidden;
}

.item.boxOpen{
    transform: rotateY(0deg);
}

.boxOpen::after,
.boxMatch::after{
    transform: rotateY(180deg);
}