@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

html {
    overflow: hidden;
    height: 100%;
}

body {
    margin: 0px;
    font-family: 'Noto Sans', sans-serif;
    height: 100%;
    overflow: auto;
}

nav {
    background-color: #ffffff66 !important;
}

nav.show {
    background-color: #ffffff !important;
}

#map {
    display: block;
    width: 100vw;
    height: 100dvh;
}

.marker {
    background-color: #2250a4;
    width: 36px;
    height: 36px;
    display: block;
    left: -18px;
    top: -18px;
    position: relative;
    border-radius: 36px 36px 0;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.active .marker {
    background-color: #8c2828;
}

.marker i {
    color: #FFFFFF;
    font-size: 1rem;
    position: absolute;
    transform: rotate(-45deg);
    width: 100%;
    height: 100%;
    line-height: 36px;
    text-align: center;
}

.leaflet-top {
    top: 65px;
    width: 35vw;
}

.leaflet-control {
    box-shadow: 0 0 14px 0px rgb(0 0 0 / 28%) !important;
}

.marker-cluster-small {
    background-color: #3063c373;
    color: white;
    transition: background-color 0.2s ease;
}

.marker-cluster-small div {
    background-color: #2250a473;
    color: white;
    transition: background-color 0.2s ease;
}

.marker-cluster-medium {
    background-color: #1e458e73;
    color: white;
    transition: background-color 0.2s ease;
}

.marker-cluster-medium div {
    background-color: #11357773;
    color: white;
    transition: background-color 0.2s ease;
}

.marker-cluster-large {
    background-color: #031e5173;
    color: white;
    transition: background-color 0.2s ease;
}

.marker-cluster-large div {
    background-color: #031e5173;
    color: white;
    transition: background-color 0.2s ease;
}

.marker-cluster-small:hover {
    background-color: #3063c3;
    color: white;
}

.marker-cluster-small:hover div {
    background-color: #2250a4;
    color: white;
}

.marker-cluster-medium:hover {
    background-color: #1e458e;
    color: white;
}

.marker-cluster-medium:hover div {
    background-color: #113577;
    color: white;
}

.marker-cluster-large:hover {
    background-color: #031e51;
    color: white;
}

.marker-cluster-large:hover div {
    background-color: #031e51;
    color: white;
}

.search {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    margin-right: 0px !important;
    box-shadow: none !important;
}

.search input {
    background-color: white;
    border: 1px solid rgb(215, 215, 215);
    border-radius: 20px !important;
    padding: 13px;
    width: calc(95% - 26px);
    outline: none;
    font-size: 15px;
    border-radius: 0px;
    box-shadow: rgba(0, 0, 0, 0.11) -2px 2px 14px 5px;
    display: block;
    margin: auto;
}

.title {
    margin: 0px;
}

.title a {
    text-decoration: none;
    font-size: 20px;
    line-height: normal !important;
    color: #0078A8 !important;
}

.title a:hover {
    text-decoration: underline;
}

.title p {
    margin: 0px;
    font-weight: normal;
}

.tag {
    color: white !important;
    margin: 5px !important;
    padding: 5px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    background-color: #8c2828 !important;
    text-transform: capitalize !important;
    display: inline-block !important;
    text-decoration: none;
    margin-left: 0px !important;
    line-height: normal !important;
}

.tag:hover {
    text-decoration: underline;
}

#info {
    background-color: white;
    width: 95%;
    padding: 0px;
    margin: auto;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden; /* Change from scroll to hidden */
    box-shadow: none;
    position: relative;
    transition: max-height 0.6s ease;
    max-height: 0px;
}

#info.open {
    max-height: 100vh;
    box-shadow: rgba(0, 0, 0, 0.11) -2px 2px 14px 5px;
}

#info a {
    height: auto;
    width: auto;
    text-align: left;
}

#info .media {
    width: 100%;
    margin-top: 20px;
    max-height: 450px;
}

.story {
    padding: 20px;
}

.story .title {
    color: #0078A8 !important;
}

.story hr {
    border: 2px solid #eee;
}

.story p {
    font-size: 16px;
    margin-top: 5px;
}

.leaflet-bar {
    border: none !important;
    overflow: visible;
}

.searchResult {
    border-bottom: 4px solid #eee;
    padding: 25px;
}

.searchResult h3 a {
    cursor: pointer;
}

.searchResult h3 a:hover {
    background-color: transparent;
}

.leaflet-popup-content .searchResult {
    padding: 0px;
}

#locateButton {
    z-index: 1000;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    font-size: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border: none;
    padding-bottom: 4px;
    cursor: pointer;
}

.spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.show {
    display: block !important;
}

#storyAudio {
    display: none;
}

#media {
    width: 100%;
    margin-top: 20px;
    position: relative;
}

#media video {
    width: 100%;
    max-height: 350px;
    display: block;
}

#videoOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

#videoOverlay.paused {
    opacity: 1;
}

#videoOverlay button i {
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

#videoOverlay.paused button i {
    opacity: 1;
}

#videoOverlay:hover {
    opacity: 1;
}

#videoOverlay:hover #videoPlay i {
    color: rgb(199, 199, 199);
}

#videoOverlay:hover button i {
    opacity: 1;
}

#videoPlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

#fullscreen {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#fullscreen i {
    color: white;
    font-size: 20px;
}

#fullscreen i:hover {
    color: rgb(199, 199, 199);
}

.audioPlayer {
    padding: 0px 3%;
    padding-bottom: 20px;
}

.controls {
    width: 100%;
    display: flex;
}

.box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.togglePlay {
    border-radius: 50%;
    background-color: #003279;
    color: white;
    font-size: 20px;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, color 0.2s;
}

.togglePlay:hover {
    background-color: #03004f;
    color: rgb(199, 199, 199);
}

.box:first-child>div {
    margin-right: auto;
}

.box:last-child>div {
    margin-left: auto;
}

.timeline {
    width: 100%;
    margin-top: 10px;
    display: flex;
    column-gap: 15px;
    align-items: center;
}

.bar {
    background-color: rgb(216 216 216);
    border-radius: 5px;
    flex: 1;
    height: 8px;
    position: relative;
    overflow: hidden;
}

.time {
    font-size: 12px;
    margin: 0px !important;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(104, 104, 104);
}

#seekSlider {
    cursor: pointer;
    margin: 0px;
    height: 8px;
    padding: 0px;
    width: 100%;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    box-shadow: none;
    -webkit-appearance: none;
    border-radius: 5px;
    background: transparent;
    outline: none;
    border: none;
    overflow: hidden;
}

#seekSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    background-color: #02239c;
    cursor: pointer;
    box-shadow: -160px 0 0 160px #02239c;
    transition: background-color 0.2s;
}

#seekSlider::-webkit-slider-thumb:hover {
    background-color: #ffffff;
}

#buffer {
    background-color: #afafaf;
    height: 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#closeStory {
    color: grey;
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background-color: transparent;
    font-size: 25px;
    cursor: pointer;
}

#closeStory:hover {
    color: black;
}

#searchResults {
    max-height: 80vh;
    overflow: scroll;
}

#searchResults .message {
    margin : 0px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#searchResults .message p {
    font-size: 16px;
    color: grey;
}

@media screen and (max-width: 1000px) {
    .search {
        width: 60vw;
    }
}

@media screen and (max-width: 750px) {
    .search {
        width: 100vw;
        margin: 0px;
    }

    #searchResults {
        height: 50vh;
        overflow: scroll;
    }
}