/* Base styles: use ONLY relative units where possible */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
}

body {
    background-color: rgba(14, 87, 14, 0.829);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

}
.container {
    text-align: center;
    background-color: rgb(18, 165, 116);
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 60px;
    height: 80vh;

}
h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
}

 .game {
    width: 440px;
    height: 440px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    transform-style: preserve-3d;
    perspective: 500px;

    
}

.reset-btn {
    padding: 15px 20px;
    background-color: rgb(85, 212, 85);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
}

.reset-btn:focus {
    background-color: rgb(85, 212, 85);
    color: white;

}

.item {
    position: relative;
    width: 100px;
    height: 100px;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: aliceblue;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(15, 71, 52);
    transition: 0.25s;
    transform: rotateY(0deg);
    backface-visibility: hidden;


}

.item.boxopen {
    transform: rotateY(0deg);

}

.boxopen::after,
.boxmatch::after
 {
    transform: rotateY(180deg);

}
