body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    text-align: center;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #333;
}

#board {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.card {
    width: 100px;
    height: 100px;
    background-color: #3498db;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s;
}

.card.revealed {
    background-color: #2ecc71;
}

#status {
    margin-top: 20px;
}









/* Fondo animado con gradiente suave */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #111827, #1f2937, #0f172a);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Contenedor principal */
.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
    text-align: center;
    
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #38bdf8;
}

/* Botones con estilo de neón */
button {
    display: block;
    width: 220px;
    margin: 15px auto;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #38bdf8;
    color: #0f172a;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #38bdf8;
}

button:hover {
    background: #0ea5e9;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 25px #38bdf8;
}

/* Efecto de partículas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 30%, #38bdf8 1px, transparent 1px),
                radial-gradient(circle at 70% 70%, #38bdf8 1px, transparent 1px);
    background-size: 200px 200px;
    animation: moveParticles 15s linear infinite;
}

@keyframes moveParticles {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 200px 200px, -200px -200px; }
}






#game-board {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.card {
    width: 100px;
    height: 100px;
    background-color: #2d2d2d;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    transition: transform 0.4s, background-color 0.3s;
}

.card.flipped {
    background-color: #fffbe6;
    transform: rotateY(180deg);
    color: #000;
}

.emoji {
    font-size: 48px;
}
