/* Timeline */

body {
    overflow: hidden;
}

.timeline {
    position: absolute;
    cursor: ew-resize;
}

.timeline>img {
    position: relative;
    min-height: 360px;
    height: calc(100vh - 2.5rem);
}

.timeline>img.without-minimap {
    height: 100vh;
}

.timeline>div {
    /* size & position are dynamically injected inline by JS */
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline>div.minimap {
    position: fixed;
    background-size: cover;
    z-index: 1;
}

.timeline>div>a {
    display: flex;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    background-size: cover;
}

.timeline>div>a {
    opacity: 0.7;
}

.timeline>div>a:hover {
    opacity: 1;
}

.timeline>div>a:focus-visible {
    outline-width: 0px;
}


/* Information Pop-up */

.bs-tooltip-auto[x-placement^=top] .arrow::before,
.bs-tooltip-top .arrow::before {
    border-top-color: #fff !important;
    border-width: 0.7rem 0.7rem 0 0.7em !important;
}

.bs-tooltip-auto[x-placement^=bottom] .arrow::before,
.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #fff !important;
    border-width: 0 0.7rem 0.7em 0.7em !important;
}

.bs-tooltip-auto[x-placement^=right] .arrow::before,
.bs-tooltip-right .arrow::before {
    border-right-color: #fff !important;
    border-width: 0.7rem 0.7rem 0.7em 0 !important;
}

.bs-tooltip-auto[x-placement^=left] .arrow::before,
.bs-tooltip-left .arrow::before {
    border-left-color: #fff !important;
    border-width: 0.7rem 0 0.7rem 0.7em !important;
}

.tooltip-inner a.close {
    position: absolute;
}

.tooltip[x-placement="top"] {
    left: -2px !important;
}

.tooltip[x-placement="top"] .tooltip-inner a.close {
    right: 7px;
    top: 8px;
}

.tooltip[x-placement="bottom"] {
    left: -2px !important;
}

.tooltip[x-placement="bottom"] .tooltip-inner a.close {
    right: 7px;
    top: 9px;
}

/*.tooltip-image {*/
/*    top: -120px !important;*/
/*}*/

.tooltip[x-placement="right"]:not(.tooltip-image) {
    top: -5px !important;
}

.tooltip[x-placement="left"]:not(.tooltip-image) {
    top: -5px !important;
}

.tooltip[x-placement="right"] .tooltip-inner a.close,
.tooltip[x-placement="left"] .tooltip-inner a.close {
    right: 13px;
    top: 2px;
}

.tooltip-inner {
    font-family: arial, sans-serif;
    background-color: #fff !important;
    color: #000 !important;
    text-align: left !important;
    padding: 20px 20px 15px 15px !important;
    max-width: 80vh !important;
    border-radius: 8px !important;
}

.tooltip.show {
    opacity: 1 !important;
}

.tooltip-inner h2 {
    color: #8C0036;
    font-weight: bold;
    font-size: 1.6rem;
}

.tooltip-inner p {
    font-size: 1rem;
    color: #262626;
    margin: 0;
}

.sm.tooltip-inner {
    width: 20vh;
}

.md.tooltip-inner {
    width: 40vh;
}

.lg.tooltip-inner {
    width: 60vh;
}

.xl.tooltip-inner {
    width: 80vh;
}


/* Modals */

.modal-dialog {
    max-width: 90% !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.modal-content {
    background-color: #000 !important;
}

.modal-content button.close {
    color: #fff !important;
    position: relative;
    top: -13px;
    right: -6px;
}

.modal-dialog.modal-xl{
    width: 50%;
}

#video-modal
{
    width: 100%;
}

/* Sounds */

.sound-player {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.sound-player figcaption {
    color: #fff !important;
    text-align: center;
}



/* Images */

.tooltip-inner .imageDiv {
    display: flex;
    justify-content: center;
}

.tooltip-inner img {
    margin: 0.7rem 0rem;
}

div.timeline__items {
    max-height: 27rem;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

div.timeline__items > * {
    scroll-snap-align: start;
}

div.legend {
    text-align: center;
    font-style: italic;
}

/* div.tooltip + div.sound-player { */
/* top: 2rem !important; */
/* left: 50% !important; */
/* translate: 0 -25% !important; */
/* } */

/*  Minimap */

.minimap {
    position: fixed;
    bottom: 0;
    height: 2.5rem;
    width: 100vw;
    cursor: pointer;
}

/* .vertical-line {
    position: absolute;
    height: 100%;
    width: 0.125rem;
    background-color: rgb(175, 175, 175);
    display: none;
} */
/* .triangle {
    position: absolute;
    top: -8px;
    overflow: visible;
    display: none;
} */

/* .slider:hover ~ .vertical-line { opacity: 0;} */

.slider {
    position: absolute;
    height: 2.5rem;
    background-color: hsla(240, 50%, 80%, .5);
    transition: left 0.3s ease-out;

&:hover {
     background-color: hsla(240, 70%, 80%, .5);
     /* filter: drop-shadow(0 0 0.75rem hsla(240, 50%, 80%, .5)); */
     cursor: grab;
 }
}

/* Pointer */

#timeline-div {
    cursor: default !important;
}


/* Messages Flash */

.message {
    margin-left: 250px;
    text-align: center;
    padding: 0.5rem;
    color: #fff;
}

.success {
    background-color: #28a745;
}

.error {
    background-color: #dc3545;
}


/* Coloreds links

#timeline-div>div>a {
    border: 1px solid #ff1493;
}
*/

#coords-info {
    z-index: 100;
    position: fixed;
    background-color: #f7f7f7;
    padding: 5px 10px;
}


/* Links */

.link_block {
    padding: 0.6rem 0.5rem 0rem 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.25rem;
    background-color: white;
}

.bootstrap-select.form-control {
    border: 1px solid #ced4da !important;
}

button[role="combobox"],
div[role="listbox"] a[role="option"] {
    padding: 0.1rem 0.75rem 0.1rem 0.25rem !important;
}


/* CKEditor */

.ck-reset {
    width: 100%;
}

.ck-editor__editable_inline {
    min-height: 12rem;
}


/* Iframe */

.timeline_iframe {
    width: 100%;
}


/* Icons preview */

.icon_preview {
    max-width: 5rem;
    max-height: 5rem;
}

div.timeline__items {
    max-height: 27rem;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

div.timeline__items > * {
    scroll-snap-align: start;
}

.bootstrap-select .dropdown-toggle .filter-option {
    display: grid;
    align-content: center;
    justify-content: flex-start;
    height: 2rem;
}

.input-group-prepend input[type="file"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* input::file-selector-button {
    font-weight: bold;
    color: dodgerblue;
    padding: 0.5em;
    border: thin solid grey;
    border-radius: 3px;
} */

/* For smartphones and tablets */

@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) {
    body {
        overflow-x: auto;
        overflow-y: hidden;
    }
}