/* Import Aramco World Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

#spice-timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', 'sans-serif';
    color: #262524;
    font-size: 1.0625rem;
}

#mobile-hide-all {
    display: none;
}

#spice-timeline-inner {
    display: flex;
    max-width: 100%;
    justify-content: space-between;
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    background-color: transparent;
    position: relative;
}

#spice-timeline-inner:after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: .20;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-image: url(images/map-current-grey.svg);
    background-position: center;
}

#spice-timeline-inner:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/map-texture-grey.png);
    background-size: 250px 250px;
    background-repeat: repeat;
}

#spice-timeline-map {
    width: 100%;
    max-height: 100%;
    z-index: 99;
    text-align: center;
    overflow-y: scroll;
    position: relative;
}

#timeline-wrapper {
    position: relative;
    height: 100%;
}

#spice-timeline-line {
    margin-left: 7%;
    position: absolute;
    height: 7px;
    width: 80%;
    background-color: #098c8e;
    margin-top: 450px;
}

.timeline-date {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #f0ae62;
    border: 3px solid #fcc280;
    transform: translateY(-25px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.timeline-date .date {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: .5s;
    line-height: 85%;
}

.timeline-node {
    position: absolute;
}

.node-id {
    position: absolute;
    top: 12px;
    right: 0;
    font-weight: 600;
}

.date-line {
    position: absolute;
    height: 100px;
    width: 3px;
    background-color: #fcc280;
    bottom: -200%;
    transition: .5s;
}

.line-box {
    position: absolute;
    border: 1px solid #fcc280;
    min-width: 180px;
    background-color: white;
    transform: translateX(-90px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: .5s;
}

.box-content {
    min-height: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    z-index: 9999;
    background-color: transparent;
}

.map-pin {

    display: flex;

    background-color: transparent;

    align-items: center;

    font-weight: 500;

    transition: .25s;

    padding: 10px 20px 10px 15px;

    background-color: white;

    z-index: 9999;

}

#spice-map-toolbox-headers {
    height: 500px;
    transition: 1s;
    padding: 0 5px;
}

#directions-controls {
    text-align: right;
    transition: 1s;
}

#directions-controls-arrow {
    width: 20px;
    transition: .75s;
}

#directions-controls-arrow:hover {
    cursor: pointer;
}

.map-pin p {
    flex-direction: column;
}

.map-pin img {

    width: 35px;

}

.map-pin-wrap {

    z-index: 999;

    min-height: 45px;

    min-width: 35px;
    
    transition: .5s;

    border-radius: 2.5px;

    margin-bottom: 4px;
    
    display: flex;
    
    align-items: center;

    justify-content: center;

    flex-direction: column;
}

.map-pin-wrap img {
    padding: 5px;
    border-radius: 2.5px;
}

#spice-timeline-toolbox {
    width: 25%;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: white;
    z-index: 99;
    overflow-y: scroll;
    max-height: 100vh;
    z-index: 999;
}

#spice-timeline-toolbox a {
    color: #262524;
}

.map-pin p {

    margin: 0;

    padding: 0 10px;

    text-align: left;

    transition: .5s;

    display: flex;
    
    flex-direction: column-reverse;

    width: 100%;

}

.map-pin input {
    width: 100%;
    font-size: inherit;
}

.question-prepend {
    padding: 5px 0;
    font-size: .8rem;
}

.map-pin-img-hover:hover {

    cursor: grab;

}

.map-pin-no-hover:hover {
    cursor: default !important;
}



.map-pin-img {

    width: 35px;

    height: 45px;

    z-index: 999;

    opacity: .5;

}


#spice-timeline-toolbox > * {
    z-index: 999;
}

.question {
    padding: 15px;
    text-align: left;
    transition: .5s;
}

#spice-timeline-top {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
    z-index: 999;
}

#spice-timeline-bottom {
    position: absolute;
    width: 100%;
    z-index: 100;
    text-align: left;
}

#spice-timeline-directions {
    position: absolute;
    right: 7px;
    color: black;
    font-size: 17px;
    padding: 5px;
    border-radius: 7px;
    width: 55%;
    transition: .25s;
    padding-left: 17.5px;
}


#spice-map-interactive-popup {

    position: absolute;

    width: 500px;

    min-height: 35px;

    top: calc(50% - 17.5px);

    left: calc(40% - 250px);

    padding: 7px;

    z-index: 999;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: transparent;

    color: white;

    transition: .5s;

    border-radius: 5px;

    text-align: center;

    font-weight: 700;

    visibility: visible;

    border: 3px solid transparent;

}


#spice-map-interactive-popup p {
    width: 85%;
    text-align: center;
}

#spice-badge {
    z-index: 999;
    height: 125px;
    padding: 15px 0 0 15px;
}

.toolbox-header {
    color: #7a7a7a;
    text-align:left;
    padding: 0 8px;
}

#toolbox-bottom-header {
    border-bottom: 1px solid #7a7a7a;
    padding-bottom: 15px;
}

.map-pin-input {
    font-family: 'Lato', 'sans-serif';



    color: #262524;



    font-size: 1.0625rem;

    width: 100%;

}

@media only screen and (max-width: 1550px) {
    #spice-badge {
        height: 80px;
    }

    #spice-timeline-directions {
        font-size: 14px;
        width: 50%;
    }

    #spice-timeline-line {
        margin-top: 425px;
    }
}

@media only screen and (max-height: 500px) and (max-width: 1200px) {

    #mobile-hide-all {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background-color: black;
        opacity: .75;
        text-align: center;
        align-items: center;
        justify-content: center;
        color: white;
        z-index: 99999999;
    }

    #mobile-hide-all p {
        font-size: 20px;
        width: 75%;
    }
}

@media only screen and (max-width: 1575px) {
    .line-box {
        min-width: 150px;
        transform: translateX(-75px);
    }

    .date-line {
        height: 50px;
        bottom: -100%;
    }
}

@media only screen and (max-width: 1275px) {
    #spice-timeline-inner {
        flex-direction: column;
    }

    .map-pin-wrap {
        flex-direction: row;
    }

    .col-rev-important {
        flex-direction: column-reverse !important;
    }

    .toolbox-header {
        display: none;
    }

    #spice-map-interactive-popup {
        position: absolute;
        width: 500px;
        max-width: 90%;
        height: 100px;
        top: calc(40% - 50px);
        left: calc(50% - 250px);
    }

    #spice-timeline-map {
        max-height: none;
        width: 100%;
        max-height: 75vh;
        min-height: 50vh;
        height: 75vh;
        overflow: scroll;
        text-align: center;
        position: relative;
    }

    #spice-timeline-top {
        width: 100%;
    }

    #spice-timeline-toolbox {
        width: 100%;
        flex-direction: row;
        overflow: scroll;
        max-height: 25vh;
        height: 25vh;
    }

    .display-none-on-col {
        display: none;
    }

    #spice-timeline-bottom {
        position: absolute;
        width: 100%;
        z-index: 100;
    }

    .question {
        min-width: 10%;
    }

    .map-pin {
        flex-direction: column;
        min-width: 25%;
    }

    .map-pin p {
        display: flex;
        flex-direction: column;
    }
}

@media only screen and (max-width: 1100px) {
    #spice-timeline-directions {
        visibility: hidden;
    }
}

@media only screen and (max-width: 1100px) {
    #spice-timeline-line {
        width: 140%;
    }

    .line-box {
        min-width: 180px;
        transform: translateX(-90px);
    }

    .question {
        min-width: 17.5%;
    }

}

@media only screen and (max-width: 900px) {

    #spice-badge {
        height: 70px;
    }

    #mobile-hide-all {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background-color: black;
        opacity: .75;
        text-align: center;
        align-items: center;
        justify-content: center;
        color: white;
        z-index: 99999999;
    }

    #mobile-hide-all p {
        font-size: 20px;
        width: 75%;
    }

    .question {
        min-width: 20%;
    }

    #spice-timeline-line {
        width: 250%;
    }

    .question {
        min-width: 50%;
    }

    #spice-timeline-line {
        margin-top: 400px !important;
        margin-left: 100px;
    }
}

@media only screen and (max-width: 500px) {
    #spice-map-interactive-popup {
        width: calc(100% - 6px);
        max-width: calc(100% - 6px);
        left: 0;
        padding: 0;
    }

    .map-pin {
        min-width: 50%;
        height: 100%;
    }
}

@media only screen and (max-width: 400px) {

    #spice-timeline-line {
        margin-top: 330px !important;
    }

    #spice-badge {
        display: none;
    }

    #interactive-popup {
        left: 0;
    }
}


/* Inner Scroll Bar styling */
#spice-timeline-toolbox::-webkit-scrollbar, #spice-timeline-map::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

#spice-timeline-toolbox::-webkit-scrollbar-track, #spice-timeline-map::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#spice-timeline-toolbox::-webkit-scrollbar-thumb, #spice-timeline-map::-webkit-scrollbar-thumb {
  background: #888;
}

#spice-timeline-toolbox::-webkit-scrollbar-thumb:hover, #spice-timeline-map::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Add to elements that should not be highlightable */
.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
 }