/*********** AQUI VAN TODOS LOS ESTILOS DE CSS PERSONALIZADOS ***********/

/* Colores base */
:root {
    --blanco: #fff;
    --negro: #000000;
    --rojo: #dc3545;
    --verde: #28a745;
    --azul: #0d6efd;
    --celeste: #0dcaf0;
}

.navbar-shadow{
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
    background-color: var(--blanco);
}

a{
    color: #0d6efd;
    text-decoration: none;
    transition: 0.5s;
}

.container-json{
    background: #f1f1f1;
}


/* Inicio select2 multiple */
.select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    margin-left: 5px;
    margin-top: 5px;
    padding: 0;
    padding-left: 20px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    border-right: 1px solid #aaa;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: #999 !important;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    padding: 0 4px;
    position: absolute;
    left: 0;
    top: 0;
}

.select2-selection__choice__remove:hover{
    color: #000 !important;
}

.select2-selection__choice__display {
    cursor: default;
    padding-left: 25px;
    padding-right: 5px;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice{
    float: none;
    margin-bottom: 2px;
}

.cursor-pointer{
    -webkit-cursor: pointer;
    -moz-cursor: pointer;
    -o-cursor: pointer;
    cursor: pointer;
}
  /* Fin select2 multiple */

.badge-menu{
    float: right;
    margin-top: -30px;
    margin-right: 10px;
}

.no-intermitente{
    color: var(--verde);
    font-size: 20px;
}

.intermitente{
    border-radius: 50%;
    box-shadow: 0px 0px 20px;
    animation: infinite resplandorAnimation 2s;
    color: var(--celeste);
    font-size: 20px;
}

.intermitente-device{
    border-radius: 50%;
    box-shadow: 0px 0px 20px;
    animation: infinite resplandorAnimation 2s;
    color: var(--verde);
    font-size: 20px;
}

@keyframes resplandorAnimation {
    0%,100%{
        box-shadow: 0px 0px 20px;
    }
    50%{
        box-shadow: 0px 0px 0px;
    }
}

.border-div-segundo-plano{
    border-radius: 10px;
    box-shadow: 0 0 15px #d3d3d3;
    background: #fff;
}

.cerrar-sesion-boton {
    background-color: #ff777741;
    border: 1px solid #ff777741; /* Solo definir lo que cambia */
    color: #ff1919;
    border-radius: 25px;
    padding: 3px;
    font-size: 13px;
    width: 110px;
    text-align: center;
    text-decoration: none;
}

.cerrar-sesion-boton:hover {
    background-color: #ffffff41;
    border: 1px solid #ff1919; /* Solo definir lo que cambia */
}

.main-games{
    height: 100vh;
}









/* CSS PARA LAS PREGUNTAS */
.form-check {
    background-color: #0d6efd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.4rem;
    margin-bottom: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center; /* Alineamos todo en el eje vertical */
    border: 2px solid white;
}

.form-check-label {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 1.2rem;
    gap: 1rem; /* Añadimos espacio entre el radio y el texto */
    color: white;
}

.option-text {
    flex-grow: 1;
    font-size: 18px;
    font-weight: 500;
    margin-right: 1.5rem;
    text-align: justify;
    cursor: pointer;
}

.form-check-input {
    margin-left: auto;
}








.form-check-roles {
    background-color: #0d6efd;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    padding: 0.5rem 0rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    align-items: center; /* Alineamos todo en el eje vertical */
}

.form-check-roles-label {
    display: flex;
    align-items: center;
    color: white;
}

.option-text {
    font-size: 18px;
    font-weight: 500;
    text-align: justify;
    cursor: pointer;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}



.selected {
    background: linear-gradient(135deg, #198754, #28a745); /* degradado verde moderno */
    border: 2px solid #50eea4;
    box-shadow: 0 4px 20px rgba(25, 135, 84, 0.4); /* sombra suave */
    transform: scale(1.03); /* efecto de "resalte" */
    transition: all 0.3s ease-in-out; /* animación suave */
    border-radius: 12px; /* bordes redondeados */
}


/* Aseguramos que el botón esté oculto al principio */
#submit-btn {
    display: none;
    opacity: 0; /* Inicialmente no visible */
    transition: opacity 0.5s ease-in-out; /* Animación suave */
}

/* Cuando el botón se hace visible */
#submit-btn.show {
    display: inline-block;
    opacity: 1; /* Se vuelve visible */
}

.option-letter {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.3rem;
    border-radius: 50%;
    width: 2rem; /* Tamaño fijo de la esfera */
    height: 2rem; /* Asegura que la esfera sea un círculo perfecto */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem; /* Ajustamos el tamaño de la letra */
    flex-shrink: 0; /* Evita que la esfera se deforme */
}

/* FIN CSS PARA LAS PREGUNTAS */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-hover-custom:hover {
    background-color: #ffffff !important; /* Fondo blanco */
    color: #0d6efd !important; /* Texto azul Bootstrap primario */
    border-color: #ffffff !important; /* Borde blanco */
    transform: scale(1.05); /* Ligera animación de agrandado */
    transition: all 0.2s ease-in-out;
}


.btn-hover-custom2:hover {
    background-color: #ffffff !important; /* Fondo blanco */
    color: #0d6efd !important; /* Texto azul Bootstrap primario */
    border-color: #ffffff !important; /* Borde blanco */
    transition: all 0.2s ease-in-out;
}

.option-box {
    height: 290px;
    width: 42%;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .option-box {
        height: 40%;
        width: 70%;
    }
}


@media (max-width: 268px) {
    .option-box {
        height: 60%;
        width: 90%;
    }
}

.opciones-respuesta {
    padding: 4px;
}

.alert-elegante {
    display: none;
    background: linear-gradient(135deg, #a8e6cf, #dcedc1);
    color: #2e7d32;
    border-left: 6px solid #82d886;
    padding: 16px 24px;
    margin: 20px auto;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    text-align: center;
}

.alert-elegante::before {
    font-size: 20px;
    margin-right: 8px;
}

#toast-container.toast-top-right {
    top: 70px; /* ajusta el número para bajarlo más */
    right: 12px;
}


/* REPRODUCCION DE VIDEO PREGUNTA */
.btn-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    font-size: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    position: relative;
    z-index: 1;
    animation: breathing 1.9s ease-in-out infinite;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

@keyframes breathing {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.12);
    }
    50% {
        transform: scale(1.2);
    }
    75% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.btn-circle:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: 0 0 0 30px rgba(40, 167, 69, 0.5);
}

#videoPregunta {
    /* border: 8px solid white; */
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}
/* FIN REPRODUCCION DE VIDEO PREGUNTA */


.ranking-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.ranking-item.fade-in {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.5s forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
