@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

/* Animación del gradiente */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mantiene el fondo, tipografía y estilos generales */
body {
    font-family: 'Nunito', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
}

/* Overlay para dar efecto de profundidad */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Particles container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

/* Secciones de cada juego */
.section {
    background: #ffffff;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.section:hover {
    transform: scale(1.02);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Títulos de las secciones */
h2, h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Texto de cada sección */
p {
    font-size: 16px;
    color: #555;
}

/* Botón "Jugar Ahora" */
.boton-jugar, .play-button {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.boton-jugar:hover, .play-button:hover {
    background: #cc5200;
}

/* Próximamente */
.proximamente, .coming-soon {
    color: #999;
    font-style: italic;
}

/* Botones de registro e inicio de sesión */
.auth-buttons {
    margin-top: 20px;
}

.auth-buttons a {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.registrarse {
    background: #28a745;
    color: white;
}

.registrarse:hover {
    background: #218838;
}

.login {
    background: #007bff;
    color: white;
}

.login:hover {
    background: #0056b3;
}

/* Contenedor del login y registro */
.login-container, .register-container {
    background: rgba(255, 255, 255, 0.95);
    width: 350px;
    padding: 20px;
    margin: 80px auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Estilos de los labels para alineación */
form label {
    font-size: 18px;
    font-weight: bold;
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

/* Input mejorado para login y registro */
input {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Botón verde para login y registro */
button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding: 15px;
    }
}

/* Centrar la pregunta y el emoji */
#pregunta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Asegurar que el emoji y la palabra estén en columna */
#pregunta-emoticono {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 30px;
    font-weight: bold;
    gap: 5px;
}

/* Ajuste para que los botones de respuesta queden en fila */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Estilos para botones de vocales */
.boton-animado {
    width: 80px;
    height: 60px;
    font-size: 22px;
    text-align: center;
    border-radius: 10px;
    background: orange;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.boton-animado:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    background-color: #ff8c00; /* Naranja más claro para hover */
}

.boton-animado.correcto {
    background-color: #2ecc71 !important; /* Verde brillante y agradable */
    color: white;
    border: 2px solid #27ae60;
}

.boton-animado.incorrecto {
    background-color: #ff4c4c !important; /* Rojo claro */
    color: white;
    border: 2px solid #d32f2f;
}

/* Mensaje de error/retroalimentación */
#error-mensaje {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    display: none;
}

/* Estrellita al lado del número de estrellas */
#star-count::after {
    content: " ⭐";
    font-size: 22px;
}

/* --- Negrita para "Estrellas" y la pregunta --- */
.stars {
    font-weight: bold;
    font-size: 18px;
}

#pregunta-texto {
    font-weight: bold;
    font-size: 18px;
}

/* Ajustes para pantallas grandes */
@media (min-width: 768px) {
    #pregunta-emoticono {
        font-size: 34px;
    }
}

/* === Header Styles === */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue&display=swap'); /* Font for header/index */

.header-container {
    display: flex; /* Use flexbox */
    justify-content: space-between; /* Space out items */
    align-items: center; /* Vertically align items */
    background: rgba(255, 255, 255, 0.8); /* Fondo semi-transparente */
    padding: 15px 30px; /* Adjust padding */
    border-bottom: 5px dashed #ff8c00;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* Ensure it starts from the left edge */
    z-index: 1000;
    box-sizing: border-box; /* Include padding in width */
}

.site-branding .site-name {
    font-family: 'Comic Neue', cursive, sans-serif; /* Apply specific font */
    font-size: 24px; /* Adjust size */
    font-weight: bold;
    color: #1e3c72; /* Match theme */
    text-decoration: none;
    transition: color 0.3s;
}

.site-branding .site-name:hover {
    color: #ff5722; /* Hover effect */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between contact and auth buttons */
}

.contact-info {
    font-family: 'Comic Neue', cursive, sans-serif; /* Apply specific font */
    font-size: 16px; /* Slightly smaller */
    color: #333; /* Darker color */
}

/* Adjust auth buttons specifically within the header */
.header-container .auth-buttons {
    margin-top: 0; /* Remove top margin */
    display: flex; /* Align buttons horizontally */
    gap: 10px; /* Space between buttons */
}

.header-container .auth-buttons a,
.header-container .auth-buttons span { /* Style for welcome message too */
    display: inline-block;
    margin: 0; /* Reset margin */
    padding: 8px 15px; /* Adjust padding */
    background: #4CAF50;
    color: white;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 14px; /* Smaller font size */
    font-family: 'Comic Neue', cursive, sans-serif; /* Apply specific font */
}
.header-container .auth-buttons span {
    background: none; /* No background for text */
    color: #333; /* Dark text */
    padding: 8px 0; /* Adjust padding */
}


.header-container .auth-buttons a:hover {
    background: #45a049;
}

/* Ensure body content doesn't hide behind fixed header */
body {
    padding-top: 80px; /* Add padding to body top equal to header height + buffer */
}


/* Header Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* Stack items vertically */
        padding: 10px;
        position: relative; /* Remove fixed position on mobile */
        height: auto; /* Adjust height */
    }

     .header-right {
        flex-direction: column; /* Stack contact/auth */
        gap: 10px;
        margin-top: 10px;
        align-items: center; /* Center items when stacked */
    }

    /* Remove body padding when header is relative */
    body {
        padding-top: 0;
        font-family: 'Comic Sans MS', sans-serif; /* Cambiar a fuente más legible */
    }

    .header-container .auth-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        align-items: center;
    }
}
/* Estilo para el ícono de la casita */
.home-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.home-icon:hover {
    color: #cc5200;
}
/* Estilo actualizado para el ícono de la casita */
.home-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
    font-weight: bold;
}

.home-icon:hover {
    color: #cc5200;
    transform: scale(1.1);
}