.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.memory-card {
    width: 100%;
    height: 150px;
    background: #f0f4f8;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.memory-card.matched {
    opacity: 0.7;
    pointer-events: none;
    background-color: #f94040 !important; /* Verde claro */
    border: 2px solid #e10000 !important; /* Borde verde */
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
}

.memory-card-front {
    background: #fff;
    transform: rotateY(180deg);
    padding: 10px;
    overflow: hidden;
}

.memory-card-back {
    background: #26b1ec;
    color: #ffffff;
    padding: 10px;
}

.memory-card-front video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-points-display {
    text-align: center;
}

.resultado-juego {
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-top: 20px;
}

.resultado-juego h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.resultado-juego p {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #003d7a;
}
