/* --- BASE --- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff5f5;
    color: #333;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Alinea todo al centro verticalmente */
}

h1 {
    font-family: 'Dancing Script', cursive;
    color: #d63384;
    font-size: 3rem;
    margin-bottom: 10px;
}

/* --- GALERÍA DE FOTOS (Fijas, no giran) --- */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.gallery .img-card img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

/* --- MENSAJE Y SECCIONES --- */
.message {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.music-section {
    margin: 20px 0;
    padding: 15px;
    background: #fff0f6;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* --- TARJETAS GIRATORIAS (Las del juego de preguntas) --- */
.question-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
    align-items: center;
}

.flip-card {
    background-color: transparent;
    width: 280px;
    height: 120px; /* Altura fija para que no colapse */
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Esta clase se activa con el JS que ya tenés */
.flip-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.front {
    background-color: white;
    border: 2px solid #d63384;
    color: #d63384;
    z-index: 2;
}

.back {
    background-color: #d63384;
    color: white;
    transform: rotateY(180deg);
}

/* --- WORDLE --- */
.game-section {
    margin-top: 40px;
    padding: 20px;
    background: #fdf2f8;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    margin: 20px 0;
}

.wordle-row {
    display: flex;
    gap: 5px;
}

.letter-box {
    width: 45px;
    height: 45px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333; /* Cambiado a oscuro para que se vea antes de adivinar */
    text-transform: uppercase;
    border-radius: 5px;
    background: white;
}

#guess-input {
    padding: 10px;
    width: 100px;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #d63384;
    border-radius: 5px;
}

#guess-btn {
    padding: 10px 20px;
    background: #d63384;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}