/* /assets/css/main.css */
:root {
    /* grises */
    --grey-10: #ededed;
    --grey-20: #d2d3d2;
    --grey-30: #b8b9b8;
    --grey-40: #9e9f9d;
    --grey-50: #848583;
    --grey-60: #6a6b68;
    --grey-70: #50514e;
    --grey-80: #363733;
    --grey-90: #1c1d19;
    
    /* Paleta de colores */
    --primary: #0d4d77;
    --primary-dark: #1d72ac;
    --primary-hover: #053250;
    --primary-dark-hover: #2b89c7;
    --primary-dark-active: #46adf1;
    --gold: #D4AF37;
    --success: #27AE60;
    --info: #47adc7;
    --warning: #F39C12;
    --danger: #C0392B;
    --dark: var(--grey-90);
    --light: #f8f9fa;
    --bg: #eceff1;
    --card-bg: #ffffff;
    --text-color: var(--grey-80);

    --border-radius: 6px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* estilos para selector de libro y capitulo */
.book-btn, .chapter-btn {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
}

.testamento {
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--grey-10);
    color: var(--primary);
    padding: 0.26rem 0.5rem 0.25rem 0.5rem;
}

/* Custom class to narrow dropup menus containing only icons */
.dropdown-menu-icon {
    min-width: 60px;
    /* min-width: min-content; */
    padding: 0.5rem;
}

.dropdown-menu-icon .btn-link {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

[data-bs-theme="dark"] .testamento {
    background-color: var(--grey-70);
    color: var(--grey-10);
}

/* estilos para nav superior */
#header_container {
    height: 65px;
}

#bottom_container {
    height: 65px;
}

.title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    /* line-height: 0.5rem; */
}

.subtitle {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 400;
    /* line-height: 0.5rem; */
}

#reading-area,
#connections-area {
    font-size: 18px;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    font-feature-settings: "liga", "kern";
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    color: var(--grey-60);
    margin-bottom: 0.8em;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#reading-area-container {
    height: calc(100% - 55px);
}

@media (min-width: 320px) and (max-width: 359px) {
    .title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    #reading-area-container {
        height: calc(100% - 28px);
    }
}

@media (min-width: 360px) and (max-width: 389px) {
    .title {
        font-size: 1.3rem;
        line-height: 1.2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        line-height: 0.9rem;
    }

    #reading-area,
    #connections-area {
        font-size: 19px;
    }

    #reading-area-container {
        height: calc(100% - 28px);
    }
}

@media (min-width: 390px) {
    .title {
        font-size: 1.4rem;
        line-height: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1rem;
    }

    #reading-area,
    #connections-area {
        font-size: 19px;
    }

    #reading-area-container {
        height: calc(100% - 55px);
    }
}

/* @media (min-width: 390px) {
    #reading-area,
    #connections-area {
        font-size: 1.1em;
    }
} */

[data-bs-theme="dark"] #reading-area,
[data-bs-theme="dark"] #connections-area {
    color: var(--grey-40);
}

.subt {
    font-size: 0.95rem;
    font-weight: 400;
    color: #797368;
    margin-left: 1rem;
}

.abc {
    font-style: italic;
    color: var(--primary);
    margin-left: 1rem;
}

.verse-num {
    font-size: 0.85em;
    color: var(--primary);
    opacity: 0.7;
    font-weight: bold;
    margin-right: 0.3rem;
}

/* Palabras Clave Clickeables */
.verse-link {
    color: var(--dark);
    cursor: pointer;
    position: relative;
}

.verse-link:hover {
    border-bottom: 1px solid var(--gold);
}

[data-bs-theme="dark"] .verse-link {
    color: var(--grey-10);
}

.theme-title {
    color: var(--dark);
    background-color: white;
}

[data-bs-theme="dark"] .theme-title {
    color: var(--grey-10);
    background-color: var(--bs-body-bg);
}

.btn-nav {
    /* position:relative; */
    width: 40px;
    height: 40px;
    padding: 5px 10px;
    font-size: 20px;
    line-height: 1.33;
    border-radius: 25px;
    bottom: 20px;
    z-index: 200;
}

/* styles for dashboard */
/* #first_floor { */
    /* height: 350px; */
    /* background-color: var(--grey-10); */
    /* position: relative; */
/* } */

/* [data-bs-theme="dark"] #first_floor {
    background-color: var(--grey-80);
} */

/* #second_floor { */
    /* height: calc(100dvh - 418px); */
    /* background-color: var(--grey-10); */
    /* position: relative; */
/* } */

/* [data-bs-theme="dark"] #second_floor {
    background-color: var(--grey-80);
} */

#study-area {
    font-size: 0.9rem;
    line-height: 1.25;
}

.theme-btn {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #DDDDC8;
    color: var(--text-color);
    border-radius: 3px;
}

.theme-btn:hover {
    border: 1px solid var(--dark);
}

/* botones de versos */
.btn-verse {
    text-align: left;
    line-height: 1.5rem;
    /* color: var(--grey-60); */
    width: 100%;
    background-color: var(--bs-body-bg);
    padding: 10px;
    border: 0;
}

.btn-verse:hover,
.btn-verse:focus {
    background-color: var(--bs-body-bg);
    border: 0;
    /* color: var(--text-color); */
}

.btn-verse.active {
    background-color: var(--grey-30);
    border: 1px;
}

[data-bs-theme="dark"] .btn-verse.active {
    background-color: var(--grey-70);
    border: 1px;
}

.btn-grey {
    color: var(--grey-60);
    background-color: var(--bs-body-bg);
    border: 0;
}

.btn-grey:hover,
.btn-grey:focus {
    color: var(--grey-80);
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .btn-grey:hover,
[data-bs-theme="dark"] .btn-grey:focus {
    color: var(--grey-20);
    background-color: var(--bs-body-bg);
}

/* texto en versos sin conexiones */
.standard {
    color: var(--grey-60);
    border: 0;
}

[data-bs-theme="dark"] .standard {
    color: var(--grey-20);
}

.standard:hover,
.standard:focus {
    color: var(--grey-80);
}

[data-bs-theme="dark"] .standard:hover,
[data-bs-theme="dark"] .standard:focus {
    color: var(--grey-10);
}

.btn-verse.active .standard {
    color: var(--text-color);
    border: 0;
}

[data-bs-theme="dark"] .btn-verse.active .standard {
    color: var(--grey-10);
    border: 0;
}

.resalted {
    color: var(--primary);
    cursor: pointer;
}

[data-bs-theme="dark"] .resalted {
    color: var(--primary-dark);
}

.resalted:hover,
.resalted:focus {
    color: var(--primary-hover);
}

[data-bs-theme="dark"] .resalted:hover,
[data-bs-theme="dark"] .resalted:focus {
    color: var(--primary-dark-hover);
}

.btn-verse.active .resalted {
    color: var(--primary-hover);
    border: 0;
}

[data-bs-theme="dark"] .btn-verse.active .resalted {
    color: var(--primary-dark-active);
    border: 0;
}

.bg-panels {
    background-color: var(--bs-body-bg);
}

@media (max-width: 600px) {
    #show_menulat {
        cursor: pointer;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* override */
.card-header {
    background-color: #DDDDC8 !important;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem !important;
}

.card-title {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: var(--primary) !important;
}

/* Estilos para el menú lateral */
.menu-lat {
    position: fixed;
    top: 0px;
    /* left: 0; */
    left: -100%;
    margin: 0;
    padding: 10px;
    width: 50%;
    height: 100vmax;
    background-color: var(--bs-body-bg);
    z-index: 2000;
    box-shadow: 0 0.2rem 0.2rem 0.5rem rgba(0, 0, 0, 0.5);
}

@media (max-width: 575px) {
    .menu-lat {
        width: 85%;
    }
}

.menu-lat nav.xsm {
    margin: 0;
    overflow: hidden;
    list-style: none;
    background-color:var(--bs-body-bg);
}

.menu-lat nav.xsm i.bi {
    margin-right: 5px;
}

.menu-lat a:hover {
    color: var(--primary-hover);
}

/* boton cerrar */
#close-menu {
    display: block;
    height: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#close-menu i {
    float: inline-end;
    font-size: 1em;
    padding: 8px;
}

#close-menu {
    color: var(--primary);
}

#close-menu:hover {
    color: var(--primary-hover);
}

/* Estilos para las alertas */
.alert {
    position: fixed;
    top: 90px;
    right: 0px;
    z-index: 5000;
}

@media (min-width: 576px) {
    .alert {
        right: calc(50vw - 285px);
        width: 70%;
    }
}

@media (min-width: 768px) {
    .alert {
        right: calc(50vw - 375px);
        width: 60%;
    }
}

@media (min-width: 992px) {
    .alert {
        right: calc(50vw - 495px);
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .alert {
        right: calc(50vw - 585px);
        width: 40%;
    }
}

@media (min-width: 1400px) {
    .alert {
        right: calc((50vw - 660px) + 30px);
        width: 30%;
    }
}

/* Connections Overlay Styles */
#main_container {
    position: relative;
    min-height: 400px; /* Ensure there is space for the overlay */
}

#connections_container {
    position: absolute;
    top: auto;
    bottom: 18px;
    left: 0;
    padding: 0;
    width: 100%;
    height: 50%;
    z-index: 1000;
    background-color: var(--bs-body-bg);
    display: none;
    opacity: 0;
    transform: translateY(100%); /* Slide up from bottom */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 992px) {
    #connections_container {
        padding: 0 20px 0 5px;
    }
}

#connections_container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.btn-close-card {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.btn-close-card:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

/* loader */
/* HTML: <div class="loader"></div> */
.loader {
    height: 9px;
    width: 60px;
    --c: no-repeat linear-gradient(#6c747e 0 0);
    background: var(--c), var(--c), var(--c), var(--c);
    background-size: 26% 3px;
    animation: l2 1s infinite;
}

@keyframes l2 {

    0%,
    70%,
    100% {
        background-position: calc(0*100%/3) 100%, calc(1*100%/3) 100%, calc(2*100%/3) 100%, calc(3*100%/3) 100%
    }

    14% {
        background-position: calc(0*100%/3) 0, calc(1*100%/3) 100%, calc(2*100%/3) 100%, calc(3*100%/3) 100%
    }

    28% {
        background-position: calc(0*100%/3) 100%, calc(1*100%/3) 0, calc(2*100%/3) 100%, calc(3*100%/3) 100%
    }

    42% {
        background-position: calc(0*100%/3) 100%, calc(1*100%/3) 100%, calc(2*100%/3) 0, calc(3*100%/3) 100%
    }

    56% {
        background-position: calc(0*100%/3) 100%, calc(1*100%/3) 100%, calc(2*100%/3) 100%, calc(3*100%/3) 0
    }
}

#search_container {
    position: fixed;
    top: 120px;
    left: calc(50% + 5px);
    transform: translateX(-50%);
    width: 100%;
    height: calc(100dvh - 120px);
    z-index: 1050;
    pointer-events: none;
}

#search_zone {
    position: relative;
    padding-left: 233px;
    height: 100%;
    pointer-events: none;
}

#search_zone > div {
    pointer-events: auto;
    height: 100%;
}

@media (max-width: 992px) {
    #search_zone {
        padding-left: 0;
    }
}

