body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.info-container {
    display: flex;
    justify-content: space-between;
    width: 340px;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #555;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-gap: 10px;
    perspective: 1000px;
}

.card {
    width: 80px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

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

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-front {
    background-color: #4a90e2;
    color: white;
}

.card-back {
    background-color: #f9f9f9;
    transform: rotateY(180deg);
}

#reset-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: #4a90e2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#reset-button:hover {
    background-color: #357abd;
}
