/* Imported by header.html */
/* header.html is extended by almost all html files */
/* There is no big blocks used just for one page so 
I'm loading all the styles for all the pages in header.html */
/* I'll start considering loading by chunks from 2000 lines of css or > 100kb */

/* header.html and all the files that extend it */
body,
html {
    height: 100%;
    font-family: 'Nunito', sans-serif;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    /* Used to prevent overscroll on mobile, but probably useless */
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* header.html and all the files that extend it */
body {
    background-color: #212529;
}

/* demo_cloze.html */
/* home.html */
/* navbar.html */
/* examenes.html */
/* review.html */
/* subscribe.html */
/* subscription_success.html */
/* escritorio.html */
.text-primary {
    color: #90caf9 !important;
}

/* navbar.html */
.navbar {
    background-color: #263238 !important;
}

/* navbar.html */
.navbar-toggler {
    border: none;
}

/* navbar.html */
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

/* home.html */
/* Where it says 'Prepara tu oposición de forma eficiente' */
.hero-section {
    /* Make transparent */
    background: linear-gradient(to right, #022344, #0d47a1);
    padding: 4rem 0;
}

/* home.html */
/* Las tarjetas que pone en la sección de '¿Por qué elegir OposicionesIA?' */
/* 'Miles de preguntas de temas oficiales' */
/* 'Repetición espaciada' */
/* 'Seguimiento Detallado' */
.feature-card {
    background-color: #2c3034;
    border: 1px solid #373b3e;
}

/* home.html */
/* Pie de página donde pone 'OposicionesIA', 'Enlaces', 'Contacto' y 'Legal' */
.footer {
    background-color: #212529;
    border-top: 1px solid #373b3e;
}

/* home.html */
/* Botón 'Ver Materiales' */
.btn-primary-custom {
    background-color: #1976d2;
    border-color: #1976d2;
}

/* home.html */
/* Botón 'Ver Materiales' */
.btn-primary-custom:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

/* home.html */
/* Botón 'Mi Escritorio' o 'Registro Gratuito' */
.btn-outline-primary-custom {
    color: #90caf9;
    border-color: #90caf9;
}

/* home.html */
/* Botón 'Mi Escritorio' o 'Registro Gratuito' */
.btn-outline-primary-custom:hover {
    background-color: #90caf9;
    color: #212529;
}

/* login.html and register.html */
/* Currently not used */
.btn-facebook {
    background-color: #1877f2;
    color: white;
}

/* login.html and register.html */
/* Currently not used */
.btn-facebook:hover {
    background-color: #166fe5;
    color: white;
}

/* login.html and register.html */
/* Currently not used */
.facebook-icon {
    /* Uses the text color of the button */
    fill: currentColor;
}

/* login.html and register.html */
.google-icon {
    /* Optional: adjust size if needed */
    vertical-align: middle;
}

/* login.html and register.html */
.btn-social {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease-in-out;
}

/* login.html and register.html */
.btn-social:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* login.html and register.html */
/* Opcional: mantener los colores originales del logo de Google */
.google-icon {
    opacity: 0.9;
}

/* login.html and register.html */
/* Currently not used */
.btn-google {
    background-color: #303134;
    border-color: #5f6368;
    color: white;
}

/* login.html and register.html */
/* Currently not used */
.btn-facebook {
    background-color: #2d3436;
    border-color: #4a69bd;
    color: white;
}

/* login.html, register.html and others */
.btn-login {
    background-color: rgba(52, 152, 219, 0.1);
    border: 2px solid #3498db;
    color: #3498db;
}

/* login.html, register.html and others */
.btn-login:hover {
    background-color: #3498db;
    color: white;
}

/* Suscribe page */
.fa-check {
    color: #28a745;
}

.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.1);
}

.btn-primary {
    background-color: #64ffda;
    border-color: #64ffda;
    color: #000;
}

.btn-primary:hover {
    background-color: #4cd9b0;
    border-color: #4cd9b0;
    color: #000;
}

/* home.html and subscribe.html */
.display-4 {
    color: #64ffda;
}

main {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Updated captcha rules */
.g-recaptcha {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Add these new modal-specific styles */
.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
    /* Prevents content shift */
}

.modal {
    padding-right: 0 !important;
    margin-top: 25px;
}

/* Toda la pantalla */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1040 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    background: none !important;
}

/* Background that looks dimmed */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1045 !important;
    pointer-events: none !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-dialog {
    pointer-events: auto !important;
    background: none !important;
}

/* Force the body to work correctly with modals */
body.modal-open {
    /* overflow: auto !important;
    padding-right: 0 !important; */
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* Modal container */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Enable scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

/* Modal content */
/* Includes the frame of the modal */
.modal-content {
    background: #2c3034 !important;
    color: #fff !important;
    padding: 20px;
    border-radius: 8px;
    max-height: 80vh;
    width: 90%;
    /* Default width */
    max-width: 500px;
    /* Default max-width */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 40px 20px !important;
    overflow-x: hidden;
    border: 1px solid #373b3e !important;
}

/* Make modal wider on smaller screens */
@media (max-width: 991px) {
    .modal-content {
        width: 95%;
        /* Wider width on mobile */
        max-width: 95%;
        /* Remove max-width restriction on mobile */
        margin: 40px 10px !important;
        /* Slightly smaller margins */
    }
}

/* Style for the modal close button */
.modal .btn-close {
    color: #fff !important;
    opacity: 0.8;
    filter: invert(1) grayscale(100%) brightness(200%);
    /* Makes the X icon white */
}

.modal .btn-close:hover {
    opacity: 1;
}

/* Modal header specific styles */
.modal-header {
    border-bottom: 1px solid #373b3e !important;
    padding-bottom: 1rem;
}

/* Modal body specific styles */
/* Frame of the content but without the title */
.modal-body {
    /* Lighter text for better readability */
    color: #e9ecef;
}

/* Ensure main content doesn't interfere */
main {
    position: relative;
    z-index: 1;
}

/* Ensure content stays below modals */
.container {
    z-index: 1;
    position: relative;
}

/* Remove any overflow restrictions */
body {
    overflow: visible !important;
}

/* This targets everything inside a table with class 'ivan' */
table.ivan,
table.ivan thead,
table.ivan tr,
table.ivan th,
table.ivan td {
    background-color: transparent !important;
    color: #fff !important;
}

/* study/preguntas.html and study/preguntas_cloze.html */
/* Style for the history icon when latest answer is false */
.card-history-link.latest-answer-false {
    color: #dc3545 !important; /* More subtle red color */
}

.card-history-link.new-answer {
    color: #198754!important; /* More subtle red color */
}