body  {
    font-family: Arial, sans-serif ;
    text-align: center ;
    background-color:  #f0f0f0;
    margin: 0;
}

h1  {
    margin-top: 20px;
}

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

.card  {
    width: 130px;
    height: 180px 
    ;
    position: relative;
    border-radius: 14px ;
    cursor: pointer ;
    overflow: hidden;

    background-image: url("imags/rabbt.png");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center
    ;
    justify-content: center 
    ;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) 
    ;
}

.card:hover  {
    transform: scale(1.06)
    ;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25)  ;
}

.card img   {
    width:  100%;
    height: 100%;
    object-fit: contain ;

    display: none;
    padding: 10px;
    box-sizing: border-box ;
}

.card.flipped   {
    background-image: none ;
}

.card.flipped img    {
    display: block ;
}

.card.matched  {
    opacity: 0.6 ;
    pointer-events: none ;
    transform: scale(0.98) ;
}

.hidden  {
    display: none !important;
}

.overlay  {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.popup  {
    background: white;
    padding: 30px;
    border-radius: 16px ;
    text-align: center ;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) ;
    animation: pop 0.25s ease-out ;
}

button {
    margin-top: 12px;
    padding: 10px 22px;
    border: none;
    background-color: #3498db ;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease ;
}

button:hover {
    background-color: #2980b9 ;
    transform: scale(1.05) ;
}

@keyframes pop {
    from {
        transform:  scale(0.7) ;
        opacity:  0;
    }
    to {
        transform: scale(1) ;
        opacity: 1 ;
    }
}