    body {
        font-family: Arial, sans-serif;
        background-color: #f0f0f0;
        margin: 0;
        padding: 20px;
        text-align: center;
    }
    h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: #f0f0f0;
    }
    #timer {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 1.5rem;;
        padding: 5px 10px;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .board {
        display: grid;
        grid-template-columns: repeat(5, 90px);
        grid-template-rows: repeat(6, 110px);
        gap: 10px;
        justify-content: center;
        margin-top: 50px;
    }
    .card {
        width: 90px;
        height: 110px;
        background-color: #4CAF50;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        cursor: pointer;
        border-radius: 8px;
        color: transparent;
        user-select: none;
        transition: transform 0.3s, background-color 0.3s;
    }
    .card.flipped {
        background-color: white;
        color: black;
        transform: rotateY(180deg);
    }
    .card.matched {
        background-color: lightgray;
        color: black;
        cursor: default;
    }
    .buttons {
        margin-top: 10px;
    }
    button {
        font-size: 1rem;
        padding: 10px 15px;
        margin: 5px;
        border: none;
        border-radius: 6px;
        background-color: #4CAF50;
        color: black;
        cursor: pointer;
    }
    button:hover {
        background-color: #45a049;
    }
    /* Modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 10;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        align-items: center;
        justify-content: center;
    }
    .modal-content {
        color: black;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        width: 300px;
    }
    .modal-content h2 {
        margin-top: 0;
        color: black;
    }

   

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}


#winModal .modal-content {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}


#winModal .modal-content button {
    font-size: 1rem;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    -webkit-appearance: none; 
}

#winModal .modal-content button:hover {
    transform: translateY(-2px) scale(1.02);
    opacity: 0.95;
}
