body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #fdf2ec;
    overflow-y: hidden;
}

h1 {
    font-family: "Press Start 2P", cursive;
    font-size: 46px;
    font-weight: extra-bold;
    text-align: center;
    color: #00ffcc;
    -webkit-text-stroke: 1px black;
    text-shadow: 2px 2px 0 #ff00ff, 4px 4px 0 #000;
}

#resetBtn {
    font-family: "Press Start 2P", cursive;
    margin-top: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ec6927;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#resetBtn:hover {
    background-color: #c0392b;
}

.table {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 250px);
}

.game-board {
    width: 550px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.card {
    width: 120px;
    height: 120px;
    background-color: #3498db;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card .front,
.card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    border-radius: 8px;
}

.card .front {
    background-color: #ec6927;
    font-size: 46px;
    font-weight: extra-bold;
}

.card .back {
    background-color: #ec6927;
    font-size: 46px;
    transform: rotateY(180deg);
}
