@font-face {
    font-family: 'Pokemon_Solid';
    src: url(/font/Pokemon_Solid.ttf) format('truetype');
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: #51c55a;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
    font-family: 'Pokemon_Solid', sans-serif;
    font-weight: 600;
    color: rgb(201, 201, 201);
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

h2 {    
    font-family: 'Pokemon_Solid', sans-serif;
    font-weight: 600;
    color: #f8bd1a;
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000     
}

span {
    font-family: 'Pokemon_Solid', sans-serif;
    font-weight: 600;
    color: rgb(201, 201, 201);
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000     
}


#game-board {
    display: grid;
    grid-template-columns: repeat(4, 120px);
    grid-gap: 15px;
    justify-content: center;
    background-color: #5a6860;
    width: 600px;
    height: 650px;
    margin-bottom: 50px;
    border: black 1px;
    border-radius: 10px;
    margin: auto;
}

.card {
    width: 110px;
    height: 150px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.card-front {
    background: #5d9a72;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front img {
    /* width: 100px;
  height: 100px; */
    object-fit: contain;
}

.card-back {
    transform: rotateY(180deg);
    background: #474744;
    border: #5d9a72 solid;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back img {
    width: 80px;
    height: 80px;
}