/* viewer js styles */
.archivoDisplay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.imageContainer {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}
.archivoImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* audio styles */
.audioPlayerContainer {
    width: 100%;
    height: 100%;
    padding-top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.audioVideoContainer {
    width: 95%;
    max-width: 900px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audioVideoContainer:hover .videoControls {
    opacity: 1;
}

.audioPlayer {
    width: 100%;
    height: 80px;
    background-color: transparent;
    position: relative;
    top: -40px;
    line-height: 1.4;
}

#archivoAudio::cue {
    font-size: 1.8rem;
    color: var(--text-color);
    background: none;
}

.transcriptionSearch {
    max-width: 800px;
    margin: 0 auto;
}

.transcriptionSearchContainer {
    display: flex;
    gap: 10px;
    background-color: var(--primary-color);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--tertiary-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

#transcriptionSearch {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--tertiary-color);
    background-color: var(--primary-color);
    color: var(--text-color);
}

#transcriptionSearch:focus {
    outline: none;
}

.transcriptionSearchNavigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

#matchCounter {
    font-size: 0.9rem;
    color: var(--secondary-color);
    min-width: 50px;
    text-align: center;
}

.searchNavButton {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.searchNavButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.searchNavButton:hover:not(:disabled) {
    background-color: var(--accent-hover-color);
}

.transcriptionContainer {
    background-color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid var(--tertiary-color);
    max-height: 48vh;
    width: 95%;
    max-width: 800px;
    margin: 0 auto;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: none;
}

.transcriptionText {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.95rem;
}

.transcriptionLoader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--secondary-color);
}

.transcriptionLoader i {
    font-size: 1.5rem;
}

.speakerParagraph {
    margin-bottom: 2rem;
}

.transcriptionSegment {
    padding-right: 0.3rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    left: 0;
    transition: left 0.2s ease;
}

.transcriptionSegment:hover {
    left: 3px;
    color: var(--accent-color);
}

.transcriptionSegment.current-playing {
    color: var(--accent-hover-color);
}

.searchHighlight {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 0 1px;
    border-radius: 2px;
}

.currentSearchHighlight {
    background-color: rgba(255, 165, 0, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 165, 0, 0.3);
}

.videoControls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.videoContainer:hover .videoControls {
    opacity: 1;
}

.videoControlButton {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
}

.videoControlButton:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.progressBar {
    flex-grow: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progressBar:hover {
    height: 8px;
}

.progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.timeContainer {
    color: white;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.volumeSlider {
    width: 80px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
}

.volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .videoControls {
        padding: 10px 15px;
        gap: 10px;
    }

    .videoControlButton {
        font-size: 1rem;
    }

    .timeContainer {
        min-width: 70px;
        font-size: 0.8rem;
    }

    .volumeSlider {
        width: 60px;
    }

    .transcriptionSearchContainer {
        flex-direction: column;
        align-items: stretch;
    }

    .transcriptionSearchNavigation {
        justify-content: flex-end;
    }

    .transcriptionContainer {
        width: 100%;
        padding: 10px;
        max-height: 35vh;
    }
    #archivoAudio::cue {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .videoControls {
        padding: 8px 10px;
        gap: 8px;
    }

    .timeContainer {
        display: none;
    }

    .transcriptionSearchNavigation {
        justify-content: space-between;
    }

    .searchNavButton {
        width: 36px;
        height: 36px;
    }

    #archivoAudio::cue {
        font-size: 1rem;
    }
}

footer {
    margin-top: 70px;
}

.j_spec_cat {
    padding: 8rem 2rem 2rem;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 340px;
    width: 90% !important;
    max-width: 300px;
}
.lead_cat {
    font-style: italic;
}
.dateinput {
    width: 70px;
    margin: 0 10px;
}
.commented {
    border-bottom: 1px solid #777;
}
.comments_photo_container {
    text-align: center;
}
.typecomment {
    height: 100%;
    width: 100%;
    background: transparent;

    border: 1px solid #777;
    color: white;
}
.comment_image {
    border: 10px solid #eee;
}
.comments_wrapper {
    padding-right: 0px;
}
.comment {
    padding: 30px 12px;
    background: #222;

    border-radius: 10px;
    margin-bottom: 30px;
    margin: 20px 10px;
}
.comment_content {
    font-weight: bolder;
}
.comment_title {
    width: 80%;
    font-size: 16px;
    margin: 5px 5px 18px 5px;
    color: #25cc91;
}
.comment_add_un {
    margin: 5px;
}
.comment_send {
    margin-top: 15px;
}
.comments_photo_container {
    cursor: pointer;
    flex-direction: column;
    display: flex;
    align-items: center;
    max-width: 500px;
}

html {
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
ul.ks-cboxtags {
    list-style: none;
    padding: 5px;
    margin: 0;
}
ul.ks-cboxtags li {
    display: inline;
}
ul.ks-cboxtags li label {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(139, 139, 139, 0.3);
    color: #333;
    border-radius: 6px;
    white-space: nowrap;
    margin: 3px 2px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s;
    font-size: 12px;
}
ul.ks-cboxtags li label {
    padding: 2px 2px;
    cursor: pointer;
}
ul.ks-cboxtags li label::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    padding: 2px 6px 2px 2px;
    content: '\f067';
    transition: transform 0.3s ease-in-out;
}
ul.ks-cboxtags li input[type='checkbox']:checked + label::before {
    content: '\f00c';
    transform: rotate(-360deg);
    transition: transform 0.3s ease-in-out;
}
ul.ks-cboxtags li input[type='checkbox']:checked + label {
    border: 2px solid #4df2b8;
    background-color: #24cc91;
    color: #fff;
    transition: all 0.2s;
}
ul.ks-cboxtags li input[type='checkbox'] {
}
ul.ks-cboxtags li input[type='checkbox'] {
    position: absolute;
    opacity: 0;
}
ul.ks-cboxtags li input[type='checkbox']:focus + label {
    border: 2px solid #e9a1ff;
}
#collmi_subject {
    text-transform: inherit;
}
ul li {
    cursor: pointer;
}

#background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10999;
}
#collmi_player {
    text-align: center;
    background: black;
}
.items_sheader {
    padding: 10px 10px 10px 30px;
    border-radius: 20px;
    margin: 20px 0px;

    background: #1ecb92;
    position: sticky;
    top: 70px;
    z-index: 90;
}

.items_sheader h5 {
    margin: 0;
    font-weight: bolder;
}
.titulobusqueda {
    text-decoration: none;
    -webkit-line-clamp: 4;
}
.miniaturabusqueda {
    background-size: cover;
}
div,
canvas {
    transition: all 0.2 linear;
    -moz-transition: all 0.2 linear;
    -webkit-transition: all 0.2 linear;
}
.breathe {
    -webkit-animation: breathing 0.5s ease-out infinite normal;
    animation: breathing 0.5s ease-out infinite normal;
}
@-webkit-keyframes breathing {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    25% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    60% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@keyframes breathing {
    0% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }
    25% {
        -webkit-transform: scale(1.2);
        -ms-transform: scale(1.2);
        transform: scale(1.2);
    }
    60% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }
    100% {
        -webkit-transform: scale(1.2);
        -ms-transform: scale(1.2);
        transform: scale(1.2);
    }
}
.openseadragon-container {
    border-radius: 0 !important;
    background: #111 !important;
    min-height: unset !important;
    height: 100% !important;
}
#map {
    position: relative;
    bottom: 0;
    width: 100%;
}
.marker {
    background-image: url('https://archivolaunion.cl/pin1.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    cursor: pointer;
}
input::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #888;
    opacity: 1;
    /* Firefox */
}
input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #888;
}
input::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #888;
}
.cajabusqueda {
    transition:
        0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
        0.3s box-shadow,
        0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
    margin: 0 15px;
    min-width: 190px;
}
.cajabusqueda:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
}
label {
    color: white;
}
.selectize-control {
    width: 100px;
}
#fy-selectized {
    width: 40px !important;
}
#ty-selectized {
    width: 40px !important;
}
.ui-datepicker-calendar {
    display: none;
}
.rowcenter {
    justify-content: center;
    align-items: center;
}
.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgb(255 255 255 / 50%);
}
a:focus {
    color: white;
}
.btn-primary {
    border: unset;
    font-weight: bolder;
    border-radius: unset;
}
.fondodms {
    box-shadow: inset 0px -50px 50px 10px #111;
}

body {
    background: #111;
    color: white;
    font-family: Lato;
}
@media (min-width: 768px) {
    .card-columns {
        column-count: 4;
    }
}

@media (min-width: 992px) {
    .card-columns {
        column-count: 4;
    }
}

@media (min-width: 1200px) {
    .card-columns {
        column-count: 5;
    }
}
@media (max-width: 500px) {
    .centermobile {
        margin-left: 0px;
        padding-left: 0px;
    }
}
a {
    color: white;
}
a:hover {
    color: wheat;
}
.card {
    border: none !important;

    background-color: transparent;
}
.minuaturabusqueda {
    background-image: url('/images/spinner.gif');
}
.tipobusqueda {
    color: #48bb93 !important;
}
.cajabusqueda {
    background-color: #222 !important;
    color: #ccc !important;
    box-shadow: -1px 1px 18px 0px rgba(0, 0, 0, 0.41);
    margin-bottom: 30px !important;
    cursor: pointer;
}
.cbtexto {
    color: #ccc !important;
}
p {
    color: #ccc !important;
}
mark {
    background-color: #038160;
    color: white;
}
#collmi {
    position: fixed;
    width: 100%;
    height: 0;
    overflow: auto;
    z-index: 11000;
    top: 0;
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}
#collmi::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

#collmi_c {
    background-color: #222;
    border-bottom: 2px solid;
}
#collmi.active {
    padding: 0 0 40px 0;
}
#collmm {
    position: absolute;
    width: 100%;
    height: 90vh;
    background-color: #222;
    overflow: auto;
    z-index: 999;
    top: 0;
}
#collmi_cls {
    width: 70px;
    height: 70px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    border: 2px solid;
}
#collmi_clsc {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -35px;
    cursor: pointer;
}
#collmi_cls a {
    color: white;
    font-size: 30px;
    /*    padding-top: -10;*/
    margin-top: -5px;
}
@media (min-width: 601px) {
    .comments_photo_container {
        min-width: 400px;
    }
    .comment_card {
        margin: 5px 5px 5px 5px;
        border-bottom: 1px solid #777;
        font-style: italic;
        padding: 0;
    }
    .photo-item {
        position: sticky;
        top: 80px;
    }
    #ctitle {
        display: flex;
        padding-left: 300px;
        font-style: unset;
    }

    .openseadragon-container.zoomed {
        height: 100vh !important;
        z-index: 10;
    }
    .display-5 {
        width: 50%;
    }
    .jumbotron {
        width: 60vw;
    }
    .col.menu {
        width: 30vw;
        max-width: 300px;
        padding-left: 50px;
    }

    .fa-chevron-up {
        margin: 0;
    }
    #collmi_subject {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #items_container {
        padding-right: 20px;
    }
    #collmi {
        height: 100vh;
        width: 0;
        right: 0;
        max-width: 1100px;
    }
    #collmi_c {
        position: absolute;
        height: 100vh;
        width: 100%;
        right: 0;
    }
    #collmi_clsc {
        position: absolute;
        bottom: 20px;
        left: 20px;
        justify-content: flex-start !important;
    }
    #collmi_cls {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    #collmi_cls i {
        margin: 0;
    }
    #collmi_cls a {
        font-size: 20px;
    }
    #itemdata {
        padding: 0 50px;
    }
    #framepdf {
        height: 50vh;
    }
    #social_actions {
        margin-left: 0;
        font-size: 25px;
        margin-top: -7px;
    }
    .spansocial {
        display: inline-block;
        padding: 0 10px;
    }
    .menu {
        padding-left: 30px;
    }
    #togglemenu {
        display: none;
    }

    .lead_cat {
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .photo-item {
        max-width: 90%;
    }
    .comment_image {
        max-width: 100%;
    }
    .comments_wrapper {
        margin-top: 20px;
        padding: 0;
    }
    .comment {
        margin: 0px;
    }
    .comment_content {
        font-weight: bolder;
        font-style: italic;
    }
    .comment_card {
        margin-left: 5px;
        border-bottom: 1px solid #777;
    }
    #ctitle {
        display: flex;
        justify-content: center;
        font-style: unset;
    }
    .openseadragon-container.zoomed {
        height: calc(90vh - 40px) !important;
        z-index: 10;
    }
    .comment {
        margin-right: 5px;
        justify-content: center;
        margin-bottom: 1.2rem;
    }

    .bmf_c {
        border-left: 1px solid #666;
    }
    #collmi {
        width: 100%;
        height: 0%;
    }
    #collmi_clsc {
        /*        bottom: 40px;*/
        position: absolute;
        display: flex;
        justify-content: center;
    }
    #bmenu {
        padding: 20px;
        background: rgba(0, 0, 0, 0.65);
        min-width: 100%;
        height: 100%;
    }
    .air-datepicker-global-container {
        z-index: 20000;
    }
    .cat_container {
        margin-left: 10px !important;
    }
    #collmi_c {
        height: unset;
    }
    .lead_cat {
        max-width: 80%;
    }

    .titulobusqueda {
        text-decoration: none;
        -webkit-line-clamp: 3;
    }
    #player {
        width: 100%;
    }
    #collmi_cls i {
        font-size: 24px;
        margin: 0;
    }
    #collmi_cls {
        width: 50px;
        height: 50px;
    }
    .menu {
        display: none;
    }
    .icontent {
        padding: 0;
        margin-left: 7px;
        min-height: 100vh;
    }
    #framepdf {
        height: 50vh;
    }
    .openseadragon-container {
        transition: height 0.5s;
    }
    #collmi_subject {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #collmi_actions {
        justify-content: space-between;
    }
    #social_actions {
        font-size: 25px;
        margin-top: -5px;
    }
    #collmi_actions,
    #collmi_data {
        width: 100%;
    }
    .spansocial {
        display: none;
    }
    .col.menu {
        position: fixed;
        width: 100vw;
        height: 0;
        overflow: auto;
        z-index: 11002;
        bottom: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    #togglemenu {
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 0;
        width: 100vw;
    }
    #menuback {
        position: fixed;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        top: 0;
        z-index: 11001;
        display: none;
    }
    #toggler {
        width: 80px;
        background: black;
        height: 40px;
        border-radius: 60px 60px 0px 0px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 5px;
        border-top: 2px solid #47bc92;
    }
    .togglershadow {
        -webkit-box-shadow: 2px -20px 79px 0px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 2px -20px 79px 0px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 13px 40px 40px rgb(0 0 0 / 35%);
    }
    #accordian {
        width: 100%;
        margin-top: 0;
        background: black;
        padding-bottom: 40px;
        height: 120vh;
    }
    #contw {
        margin: 0;
    }
}
@media (max-width: 429px) {
    #items_container {
        margin-right: 7px;
        padding-right: 0px;
    }
    .cajabusqueda {
        max-width: 180px;
        margin: 5px;
        min-width: 140px;
    }

    .miniaturabusqueda {
        min-width: unset;
    }
    .titulobusqueda {
        text-decoration: none;
        -webkit-line-clamp: 2;
    }
}
@media (min-width: 1601px) {
    .cajabusqueda {
        min-width: 250px;
        max-width: 300px;
    }
}
@media (max-height: 650px) {
    #collmi_clsc {
        bottom: 0px !important;
        z-index: 11;
    }
    #player {
        height: 55vh;
    }
}
@media (min-height: 651px) {
    #player {
        height: 60vh;
    }
}
