
/*falta cambiar el color del texto de las preguntas de la seccion dos*/
/*¿cambiar de imagenes?*/
/*poner color segun el reino a las letras de las listas*/
/*averiguar y ver como embellecer el título*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: white;
    background-image: url(../../public/picture/juego.jpg);
}

/*Logo*/

.pantalla-principal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #02000c 0%, #0d0d25 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  text-align: center;
}

.logoFilosofico {
  max-width: 600px;
  margin-bottom: 30px;
}

#playBtn {
  background-color: #007bff;
  color: white;
  font-size: 1.5rem;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'roboto';
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}

#playBtn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/*cierre de logo*/
.titulo {
    text-align: center;
    margin-top: 30px;
    font-family: 'Happy Monkey', cursive;
    font-size: 70px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.reinos {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  gap: 60px;
  
}

.reino {
  text-align: center;
}

.reino img {
  width: 100%;
  height: auto;
}

.reino h2 {
  margin-top: 10px;
}

.reinos-nombres {
    background-color: #f9fbf9;
    width: 320px;
    padding: 15px 40px;
    margin:auto;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 12px;
    font-size: 27px;
    font-family: "Happy Monkey";
}
.reinos-nombres::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333;
    left: 0;
    top:0;
    border-radius: 10px;
}
/*glow*/
.reinos-nombres::before {
content: "";
background: linear-gradient(
    45deg,
    #FF0000, #FF7300, #FFFB00, #48FF00,
    #00FFD5, #002BFF, #FF00C8, #FF0000
);
position: absolute;
top: -2px;
left: -2px;
background-size: 600%;
z-index: -1;
width: calc(100% + 4px);
height: calc(100% + 4px);
filter: blur(8px);
animation: glowing 20s linear infinite;
transition: opacity .3s ease-in-out;
border-radius: 10px;
opacity: 1;
}

@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}

.reinos-nombres::before {
    opacity: 1;
}

.reinos-nombres:active:after {
    background: transparent;
}

.reinos-nombres:active {
    color: #000;
}


.reino a {
    text-decoration: none;
}

.preguntas {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 20px;
    text-align: center;
    font-size: 25px;
    color: #eeeeec;
    text-shadow: 3px 5px 4px rgb(13, 13, 37) ;
    /* ocultar*/
    display: none;
}


.pregunta-card {
    width: 100%;
    max-width: 1000px;
    height: auto;
    padding: 4%;
    background-color: #0d0d25;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


.pregunta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 10px auto;
}

.pregunta1 {
color:#eeeeec;
    text-shadow: 2px 2px 4px rgb(253, 90, 147);
    font-size: 35px;
}

.opciones {
    list-style: none;
    padding-left: 0;
    margin: 20px;
}

.opciones li {
    padding: 3px;
    border: 1px solid #777;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #3c5a78;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: left;
}

.opciones li:hover {
    background-color: #587a9e;
}

/*RESPONSIVE*/
@media(max-width: 768px) {
    .titulo {
        font-size: 40px;
        margin-top: 20px;
    }
    .reinos {
        flex-direction: column;
        height: auto;
        gap: 30px;
        padding: 20px;
    }
    
    .reino img {
        width: 90%;
        max-width: 300px;
    }

    .reinos-nombres {
        font-size: 20px;
        width: 80%;
        padding: 10px 20px;
    }

    .preguntas {
        padding: 20px 10px;
    }
    
    .pregunta-card {
        padding: 15px;
    }

    .pregunta-card img {
        max-height: 250px;
    }

    .opciones li {
        font-size: 14px;
        padding: 6px;
    }
}

/*MENSAJE GANADOR*/
.hidden {
  display: none;
}

#Mensaje-ganador {
  background-color: #061038;
  border: 2px solid #eeeeec;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin: 20px auto;
  font-family: 'Happy Monkey', cursive;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  font-size: 2rem;
  margin-bottom: 60px;
}
.mensaje-ganador {
  animation: aparecer 0.6s ease-out;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#Mensaje-ganador p {
    font-family: 'roboto';
    margin-top: 10px;
    margin-bottom: 10px;
}

/*BOTON*/
#Mensaje-ganador button {
    font-size: 20px;
    padding: 5px;
    border-radius: 5px;
    box-shadow: #000000;
    border: 3px solid #0e0d0b;

}

reiniciarJuego {
    font-size: 50px;
}

/* Navbar colapsado por defecto - solo iconos */
.navbar {
    position: fixed;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #636c7d81;
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 9px 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    width: 60px; /* Ancho colapsado - solo iconos */
    overflow: hidden;
}

/* Navbar expandido al hacer hover */
.navbar:hover {
    width: 220px; /* Ancho expandido */
    padding: 20px 20px;
}

/* Logo - oculto por defecto */
.logo {
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

/* Logo visible al hacer hover */
.navbar:hover .logo {
    opacity: 1;
    transform: translateX(0);
}

.logo a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.logo a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.logo a i {
    font-size: 1rem;
}

/* Menu principal - solo iconos por defecto */
.menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu li a {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
    white-space: nowrap;
}

/* Iconos siempre visibles 
.menu li a i {
    font-size: 1.1rem;
    min-width: 20px;
    flex-shrink: 0;
}

/* Texto oculto por defecto */
.menu li a span {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 0;
}

/* Texto visible al hacer hover en el navbar */
.navbar:hover .menu li a span {
    opacity: 1;
    transform: translateX(0);
    width: auto;
}

/* Efectos de hover en los enlaces */
.menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu li a:hover::before {
    left: 100%;
}

.menu li a.activo {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

/* Indicador visual cuando está colapsado */
.navbar::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar:hover::after {
    opacity: 0;
}

 /* RESPONSIVE - Mobile mantiene el comportamiento original */
@media (max-width: 768px) {
    /* Desactivar el hover en móvil */
    .navbar:hover {
        width: 100% !important;
        padding: 80px 20px 20px !important;
    }

    .navbar {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        transform: none;
        width: 100% !important;
        border-radius: 0 0 20px 20px;
        padding: 80px 20px 20px;
        min-width: auto;
        transition: top 0.3s ease;
        overflow: visible;
    }

    .navbar.active {
        top: 0;
    }

    /* En mobile, logo y texto siempre visibles */
    .logo {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: fixed;
        top: 20px;
        left: 20px;
        right: 70px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        background: rgba(75, 108, 180, 0.274);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 15px;
        z-index: 999;
    }

    /* Forzar visibilidad del texto en móvil */
    .navbar:hover .logo {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .menu li a span {
        opacity: 1 !important;
        transform: translateX(0) !important;
        width: auto !important;
    }

    .navbar:hover .menu li a span {
        opacity: 1 !important;
        transform: translateX(0) !important;
        width: auto !important;
    }

    .navbar::after {
        display: none;
    }

    /* Botón hamburguesa */
    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        padding: 10px;
        cursor: pointer;
        z-index: 1001;
        transition: all 0.3s ease;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .logo a {
        font-size: 1.3rem;
        justify-content: flex-start;
        padding: 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 12px;
    }

    .menu li a {
        padding: 15px 20px;
        font-size: 1.1rem;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .menu li a:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.3);
    }

    .menu li a i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        right: 60px;
        padding: 10px;
    }

    .logo a {
        font-size: 0.8rem;
        gap: 5px;
    }

    .navbar {
        padding: 70px 15px 15px;
    }

    .menu li a {
        padding: 12px 15px;
        font-size: 1rem;
    }
}
/*tercer css*/
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .main-content {
            flex: 1;
            padding: 50px 20px;
            text-align: center;
            color: #333;
        }

        .footer {
            background: linear-gradient(135deg, #0d0d25 0%, #061038 50%, #02000c 100%);
            color: white;
            padding: 60px 0 20px;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,20"/></svg>') no-repeat;
            background-size: cover;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: #fff;
            position: relative;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, #355d9b, #636c7d);
            border-radius: 2px;
        }

        .footer-section p {
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 15px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .footer-links a:hover {
            color: #fff;
            transform: translateX(5px);
        }

        .footer-links a::before {
            content: '→';
            position: absolute;
            left: -20px;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .footer-links a:hover::before {
            opacity: 1;
            left: -15px;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            background: rgba(53, 93, 155, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(99, 108, 125, 0.2);
        }

        .social-icon:hover {
            background: rgba(53, 93, 155, 0.5);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(6, 16, 56, 0.4);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 30px;
            text-align: center;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-bottom p {
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
        }

        .footer-bottom-links {
            display: flex;
            gap: 30px;
        }

        .footer-bottom-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-bottom-links a:hover {
            color: white;
        }

        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }

        .floating-element {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        .floating-element:nth-child(1) {
            width: 80px;
            height: 80px;
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .floating-element:nth-child(2) {
            width: 60px;
            height: 60px;
            top: 60%;
            right: 15%;
            animation-delay: 2s;
        }

        .floating-element:nth-child(3) {
            width: 40px;
            height: 40px;
            bottom: 30%;
            left: 70%;
            animation-delay: 4s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        @media (max-width: 768px) {
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }

            .footer-bottom-links {
                flex-direction: column;
                gap: 15px;
            }

            .newsletter-form {
                flex-direction: column;
            }

            .social-icons {
                justify-content: center;
            }
        }