@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Satisfy&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

html {
    height: 100%;
}

body {
    background-image: linear-gradient(to right, #b8abd7, rgba(0, 0, 0, 0)), url(https://grainy-gradients.vercel.app/noise.svg);
    height: 100%;
}

.wrapper {
    height: 100%;
    width: 80%;
    margin: auto;
    padding-bottom: 50px;
}

#map {
    /* height: 90%; */
    height: 690px;
    border-radius: 16px;
    margin: 15px 0;
    cursor: crosshair;
    border: 1px solid #b7abd7;
    /* box-shadow: rgba(184, 171, 215) 5px 5px, rgba(184, 171, 215, 0.4) 10px 10px, rgba(184, 171, 215, 0.3) 15px 15px, rgba(184, 171, 215, 0.1) 20px 20px; */
    /* margin-top: 15px; */
}

.top-dash{
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
    grid-auto-flow: dense;
    margin-top: 50px
    /* padding-bottom: 15px; */
}

.top-grid:not(:first-child){
    padding: 30px 35px;
    border-radius: 16px;
    /* background-color: #fafaf8; */
    border: 1px solid #b7abd7;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
    /* box-shadow: rgba(184, 171, 215) 5px 5px, rgba(184, 171, 215, 0.4) 10px 10px, rgba(184, 171, 215, 0.3) 15px 15px, rgba(184, 171, 215, 0.1) 20px 20px; */
}

.top-grid h1{
    /* font-family: "Source Code Pro", monospace; */
    font-family: "Satisfy", cursive;
    text-align: center;
    /* padding-top: 30px; */
    font-size: 40px;
    margin: 15px 0 0 0;
}

.top-grid:first-child p {
    font-family: "Source Code Pro", monospace;
    text-align: center;
    margin: 0;
    font-weight: 300;
    font-size: 14px;
}


.top-grid h2{
    font-family: "Source Code Pro", monospace;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.top-grid p{
    font-family: "Source Code Pro", monospace;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

.note {
    padding: 30px 35px;
    border-radius: 16px;
    /* background-color: #fafaf8; */
    border: 1px solid #b7abd7;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px); 
}

.note p {
    font-family: "Source Code Pro", monospace;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

.note p span {
    font-size: 12px;
    font-weight: 300;
    margin-right: 10px;
    color: #b7abd7;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar{
    /* border: none; */
    /* border: 1px solid rgba(211, 211, 211, 0.6); */
    border: 1px solid #b7abd7;
    border-radius: 9px;
}

.leaflet-touch .leaflet-bar a:first-child{
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #b7abd7;
}

.leaflet-bar a, .leaflet-bar a:hover{
    border-bottom: none;
}

.leaflet-touch .leaflet-bar a:last-child{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.leaflet-left .leaflet-control{
    margin-left: 30px;
}

.leaflet-right .leaflet-control{
    margin-right: 30px;
    /* margin-bottom: 30px; */
}

.leaflet-top .leaflet-control{
    margin-top: 30px;
}

.leaflet-top, .leaflet-bottom{
    z-index: 800;
}

.leaflet-bar.leaflet-view-selector {
    width: 290px;
    /* padding: 0 20px; */
    border-radius: 13px;
    border: none;
    /* background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px); */
    display: flex;
    justify-content: center;
    cursor: crosshair;
}

.leaflet-bar.leaflet-view-selector button {
    font-family: "Source Code Pro", monospace;
    border-radius: 9px;
    padding: 5px 7px;
    margin: 0 5px;
    transition: color .3s ease-in-out, box-shadow .3s ease-in-out, text-decoration 1s ease-in-out;
    box-shadow: inset 0 0 0 0 #b8abd7;
    border: none;
    font-size: 12px;
    font-weight: 300;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
    width: 115px;
    border: 1px solid #b7abd7;
}

.leaflet-bar.leaflet-view-selector button.active {
    box-shadow: inset 200px 0 0 0 #b8abd7;
    font-weight: 400;
}

.leaflet-bar.leaflet-view-selector button:hover {
    box-shadow: inset 200px 0 0 0 #b8abd7;
}


.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out{
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
}

.leaflet-bar.leaflet-control.leaflet-control-custom {
    margin-bottom: 30px;
    box-shadow: none;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
    width: 250px;
    text-align: center;
}

.leaflet-bar.leaflet-control.leaflet-input-custom {
    margin-bottom: 30px;
    box-shadow: none;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
    width: 250px;
    font-family: "Source Code Pro", monospace;
}

#coord-go {
    margin-top: 10px;
    width: 100%;
    font-family: "Satisfy", cursive;
    font-size: 16px;
    line-height: 0.8;
}

.coordWrapper{
    display: flex;
    /* justify-content: space-between; */
    align-items: flex-end;
}

.coordWrapper div:not(:first-child){
    margin-left: 8px
}

.coordWrapper label {
    font-family: "Satisfy", cursive;
    font-size: 16px;
}


input[type="number"], input[type="button"]{
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    font-weight: 300;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #b7abd7;
    padding: 5px 10px;
    padding-left: 10px;
    /* margin-top: 10px; */
}

input[type="number"] {
    width: 100px;
}

input[type="number"]:focus{
    outline: none;
    border: 1px solid black;
}

input[type="button"]{
    cursor: pointer;
    background-color: #b7abd7;
    color: white;
    border: 1px solid #b7abd7;
}

input[type="button"]:hover{
    background-color: #aca1c9;
}

.leaflet-bar.leaflet-control.leaflet-control-custom p{
    padding: 0;
    margin: 0;
}

.leaflet-bar.leaflet-control.leaflet-control-custom #toggleBtn{
    font-family: "Source Code Pro", monospace;
    font-size: 35px;
    font-weight: 300;
    color: #b7abd7;
    cursor: pointer;
}

.fa-solid.fa-triangle-exclamation, .fa-solid.fa-circle-exclamation {
    color: #b7abd7;
    font-size: 8px;
    margin-right: 2px;
    vertical-align: middle;
}


.fa-circle-play:hover, .fa-circle-pause:hover{
    border: 1px solid #b7abd7;
    border-radius: 50%;
    padding: 5px;
}

.leaflet-bar.leaflet-control.leaflet-control-custom #toggleBtn:hover{
    color: #aca1c9;
}

.popupTitle {
    margin: 0;
}

.leaflet-popup-content p {
    margin: 0;
}

.popupTitle span {
    font-family: "Satisfy", cursive;
    font-size: 18px;
}


#frameLabel{
    font-family: "Source Code Pro", monospace;
    font-size: 14px;
    font-weight: 300;
    margin-top: 7px;
}

#frameLabel .time{
    font-size: 16px;
    font-weight: 300;
    display: inline-block;
    width: 48px;
    /* text-align: left; */
}

#frameLabel .timeUnit, #frameLabel .date {
    font-size: 12px;
}

#frameLabel .timeIntro {
    font-family: "Satisfy", cursive;
    font-size: 16px;
    margin-right: 5px;
}

#frameSlider:hover {
    opacity: 1;
}

#frameSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;  
    background: white;
    outline: 1px solid #b7abd7;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    cursor: pointer;
}
  
#frameSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%; 
    background: #b7abd7;
    cursor: pointer;
}

#frameSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b7abd7;
    cursor: pointer;
}

.leaflet-control-attribution a{
    display: none;
}

.leaflet-control-scale-line {
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
}

.intro {
    margin-bottom: 50px;
}
.intro h1{
    font-family: "Source Code Pro", monospace;
    font-family: "Satisfy", cursive;
    text-align: center;
    padding-top: 30px;
    font-size: 40px;
    margin-bottom: 0;
}

.intro p {
    font-family: "Source Code Pro", monospace;
    text-align: center;
    margin: 0;
    font-weight: 300;
    font-size: 14px;
}

.intro p span {
    padding: 0 10px;
}

.intro p span:not(:first-child) {
    border-left: 1px solid #b7abd7;
}

/* .intro p:last-child {
    margin-top: 50px;
    font-size: 13px;
} */

.footer h1 {
    margin: 60px 0 0 0;
    font-size: 24px;
    font-weight: 600;
    color: #222;
    text-align: right;
    /* font-family: "Libre Baskerville", serif; */
    font-family: "source code pro", monospace;
  }
  
  
.footer p {
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
    text-align: right;
    padding-bottom: 80px;
}

.leaflet-popup-content-wrapper {
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
    text-align: center;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    /* background-color: #e8e7ecda; */
    /* background-color: #dfdee5d1; */
    border: 1px solid #b7abd7;
    /* padding: 10px; */
    /* width: 400px; */
}

/* .blurred-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
} */



.leaflet-popup-content-wrapper .name {
    font-family: "Satisfy", cursive;
    font-size: 18px;
}

/* .leaflet-popup-content-wrapper .umd {
    font-weight: 400;
} */

.leaflet-popup-tip{
    display: none;
}

.leaflet-container a.leaflet-popup-close-button{
    padding: 8px 8px 0 0;
}

.leaflet-bottom .leaflet-control-scale {
    margin-left: 30px;
    margin-bottom: 30px;
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
    font-size: 12px;
}

.leaflet-control-scale-line {
    border: 1px solid #b7abd7;
    border-top: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
}



.leaflet-control-scale-line:not(:first-child){
    border: 1px solid #b7abd7;
    border-bottom: none;
    margin-top: -1px;
}

.leaflet-retina .leaflet-control-layers-toggle {
    background-image: url(assets/layer-group-solid.png);
    background-size: 60%;
}

.leaflet-touch .leaflet-control-layers-toggle {
    height: 38px;
    width: 38px;
    /* border-radius: 15px; */
}

.leaflet-control-layers-base {
    font-family: "Source Code Pro", monospace;
    font-size: 13px;
    font-weight: 300;
    padding: 0 5px;
}

.leaflet-control-layers-base label div{
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* .leaflet-control-layers {
    border-radius: 10px;
} */


.leaflet-control-layers-base input[type="radio"]{
    /* Add if not using autoprefixer */
  -webkit-appearance: none;
  appearance: none;
  /* For iOS < 15 to remove gradient background */
  background-color: #fff;
  /* Not removed via appearance */
  margin: 0;
  font: inherit;
  color: #b7abd7;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateY(-2px);
  display: grid;
  place-content: center;
  cursor: pointer;
  margin-right: 10px;
  margin-top: 2px;
}

.leaflet-control-layers-base input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #b7abd7;
  }

.leaflet-control-layers-base input[type="radio"]:checked::before {
    transform: scale(1);
  }


.navbar{
    /* margin: auto; */
    /* padding: 0px 15px; */
    display: flex;
    align-items: center;
    justify-content: right;
    font-family: "source code pro", monospace;
    font-size: 15px;
    font-weight: 300;
    
}

.nav-list{
    display: flex;
    padding: 15px 15px;
    border-radius: 13px;
    border: 1px solid #b7abd7;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
}

.nav-list li{
    list-style: none;
    display: inline-block;
    /* margin: 0 10px; */
    position: relative;
    
}

.nav-list li a {
    text-decoration: none;
    color: black;
    border-radius: 6px;
    padding: 3px 7px;
    margin: 0 3px;
    text-decoration: none;
    transition: color .3s ease-in-out, box-shadow .3s ease-in-out, text-decoration 1s ease-in-out;
    box-shadow: inset 0 0 0 0 #b8abd7;
}

.nav-list li a:hover {
    box-shadow: inset 200px 0 0 0 #b8abd7;
    /* text-decoration: underline; */
}

.active {
    font-weight: 400;
}

.icon-ruler {
    height: 38px;
}

#toggle-legend {
    margin-left: 12px;
    background-color: #b7abd7;
    /* border: 1px solid #b7abd7; */
    padding: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    /* color: white; */
}

#toggle-legend:hover {
    background-color: #aca1c9;
    color: white;
    /* box-shadow: inset 200px 0 0 0 #b8abd7; */
}

.custom-legend.leaflet-control .legend-content, .custom-legend.leaflet-control #legend-content{
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 20px;
    box-shadow: none;
    padding: 15px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
    width: 285px; 
    border: 1px solid #b7abd7;
    /* max-height: 60px; */
    height: 20px;
    overflow: hidden;
    transition: height 0.3s ease, width 0.3s ease;
}

.custom-legend.leaflet-control #legend-content.expanded {
    height: 262px;
    width: 130px;
}

.custom-legend.leaflet-control #legend-content.expanded #toggle-legend{
    margin-left: 0;
    margin-top: 2px
}


.legend-title, .toggle-title {
    margin-top: 0;
    margin-bottom: 5px;
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    font-weight: 300;
    padding: 0 10px;
    /* text-align: right; */
}

.legend-title span, .toggle-title span {
    font-family: 'Satisfy', cursive;
    font-size: 18px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 39px;
  height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .1s;
  transition: .1s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .1s;
  transition: .1s;
}

input:checked + .slider {
  background-color: #b7abd7;
}

input:focus + .slider {
  box-shadow: 0 0 1px #b7abd7;
}

input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.leaflet-toggle-control-custom .toggle-content {
    box-shadow: none;
    padding: 15px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
    /* width: 250px; */
    border: 1px solid #b7abd7;
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    font-weight: 300;
}

.leaflet-toggle-control-custom .toggle-content .toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaflet-toggle-control-custom .toggle-content .toggle-item:not(:first-child) {
    margin-top: 8px;
}

.leaflet-toggle-control-custom .toggle-content p {
    margin: 0 10px 0 0;
}

.toggle-title {
    text-align: right;
}

.esri-truncated-attribution {
    display: none;
}

.leaflet-container .leaflet-control-attribution{
    display: none;
}

.toggleLayer {
    display: none;
}

.leaflet-marker-icon:hover {
  transform: scale(1.3);
  filter: brightness(1.3);
  transition: transform 0.2s, filter 0.2s;
}

.custom-locate-control.leaflet-control {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5.5px);
    border: 1px solid #b7abd7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-locate-control.leaflet-control:hover {
    background-color: white;
}

.custom-locate-control.leaflet-control:hover i {
    color: #b7abd7;
}

@media (max-width: 1200px) {
    .nav-list li a {
        font-size: 14px
    }
    
    .top-grid h1 {
        font-size: 35px
    }

    .top-grid:not(:first-child) {
        padding: 20px 30px
    }

    .top-grid p, .note p {
        font-size: 13px;
    }

    .custom-legend.leaflet-control .legend-content, .custom-legend.leaflet-control #legend-content {
        width: 265px;
    }

    .leaflet-bar.leaflet-control.leaflet-control-custom {
        width: 240px;
    }
}

@media (max-width: 1060px) {
    .top-dash {
        grid-template-columns: repeat(2, 1fr)
    }

    .top-grid:first-child {
        grid-column: 1 / span 2;
    }
}

@media (max-width: 840px) {
    .custom-legend.leaflet-control {
        display: none;
    }
}

@media (max-width: 550px) {
    body {
        margin: 0;
        width: 100%;
    }

    /* .navbar {
        position: fixed;
        top: 0;
        left: 30px;
        z-index: 10000;
    } */

    .nav-list {
        /* display: block; */
        position: fixed;
        top: 30px;
        left: 50%;
        margin: 0;
        width: calc(100% - 60px);
        transform: translateX(-50%);
        z-index: 10000;
        justify-content: space-around;
        box-sizing: border-box;
    }

    /* .nav-list li a.active {
        font-family: "Satisfy", cursive;
        font-size: 18px;
    }

    .nav-list {
        align-items: baseline;
    } */

    .top-dash {
        margin: 0;
    }

    .top-grid:first-child{
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        z-index: 10000;
        /* padding: 15px 20px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5.5px);
        border: 1px solid #b7abd7; */
        margin-top: 30px;
    }

    .top-grid:first-child h1 {
        font-size: 25px;
        margin-top: 0
    }

    .top-grid:first-child p {
        font-size: 12px;
    }

    .top-grid:not(:first-child) {
        display: none;
    }

    .top-dash, .note, .footer {
        display: none;
    }

    #map {
        height: 100%;
        margin-top: 0;
        border-radius: 0;
        width: 100%;
        border: none;
    }
    
    .wrapper {
        padding: 0;
        width: 100%;
    }

    .leaflet-bottom .leaflet-control-scale, .leaflet-control-zoom.leaflet-bar.leaflet-control {
        display: none;
    }

    .custom-locate-control.leaflet-control {
        display: none;
    }

    .leaflet-bar.leaflet-control.leaflet-control-custom {
        position: fixed;
        right: 30px;
        bottom: 30px;
        width: calc(100% - 60px);
        /* width: 100%; */
        margin: 0;
        box-sizing: border-box
    }

    .leaflet-right .leaflet-control{
        margin: 0;
    }

    .leaflet-toggle-control-custom.leaflet-control {
        position: fixed;
        right: 30px;
        top: 91px;
    }

    .leaflet-bar.leaflet-view-selector {
        position: fixed;
        bottom: 206px;
        left: 50%;
        transform: translateX(-50%);
        gap: 4px;
    }

    #frameLabel .time{
        font-size: 20px;
        font-weight: 300;
        width: 60px;
    }

    #frameLabel .timeIntro {
        font-family: "Satisfy", cursive;
        font-size: 18px;
        margin-right: 5px;
    }

    .leaflet-bar.leaflet-control.leaflet-control-custom #toggleBtn {
        font-size: 45px;
    }

    .leaflet-popup-content .detailLines {
        display: none;
    }
}