body {
    font-family:'Courier New', Courier, monospace;
    text-align: center;
    background: linear-gradient(45deg, #ffecec, #ffecec);
}

h1 {
    font-size: 50px;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    color: #b23d3d; 
    text-align: center; 
    margin: 50px 0; 
    text-shadow: 1px 1px 2px rgba(83, 9, 9, 0.74); 
}

.card{
    width: 100px;
    height: 100px;
    margin: 10px auto;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-front, .card-back{
    width: 100px;
    height: 100px;
    position: absolute;
    display: flex;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(213, 19, 19, 0.792);
    font-size: 50px;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.card-front:hover, .card-back:hover{
    background: #e0686cbe;
}

.card-front{
    background: #febebe;
    color: rgba(201, 24, 24, 0.63);
}

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

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

.game-board{
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

#restartButton {
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-radius: 20px;
    background: #d824247e;
    color: rgb(255, 255, 255);
    margin-bottom: 1px;
    margin-top: 70px;
    box-shadow: 0px 4px 8px rgba(213, 19, 19, 0.792);
}

#restartButton:hover {
    background: #b22929ce;
}

h2 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
    color: #b23d3d; 
    text-shadow: 1px 1px 2px rgba(83, 9, 9, 0.74); 
}