@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');


:root {
    --primary-color: #BDE994;
    --primary-background: #29191C;
    --secondary-color: #432E36;
    --third-color: #6A686D;
    --fourth-color: #A1B592;
    --fifth-color: #185E3F;
}

.nav-btn {
    background-color: var(--primary-color);
    border: 0;
    border-radius: 20px;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 20px;
    width: 40px;
    height: 35px;
    margin: 5px;
    z-index: 4;
}

body {
    margin: 0;
    font-family: Lato, Helvetica, Arial, sans-serif;
}

.nav-el {
    position: fixed;
    left: 20px;
    top: 16vh;
    width: 250px;
    height: 45px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    z-index: 3;
    cursor: move;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


.nav-el p {
    margin: auto 10px;
    font-size: 20px;
}

.nav-el-OSM {
    left: 60px;
    top: 17vh;
    background-color: rgb(250, 245, 245, 0.6);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.4);
}

.nav-el.expanded {
    height: 190px;
    background-color: rgb(250, 245, 245, 0.9);

}

.navi-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.nav-option {
    width: 140px;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #d3d3d3;
    cursor: pointer;
}
.nav-option.wide {
    width: 80%;
}

.nav-option:hover {
    transform: scale(0.9);
    background-color: #e0e0e0;
}

#world {
    z-index: 1;
    position: relative;
}


.header {
    display: flex;
    flex-direction: row;
    background-color:  var(--primary-background);;
    justify-content: space-between;
    align-items: center;
    padding: 2vh;
    border-bottom: 2px solid var(--primary-color);
    width: 100%;
    height: 3vh;
    margin: 0;
}


.headerLeft {
    display: flex;
    flex-direction: row;
    width: 50%;
    height: 4vh;
    border-right: 2px dashed var(--primary-color);
    text-align: left;
}

.headerLeft p {
    color: var(--primary-color);
    text-align: center;
    padding-left: 10px;
}

.headerRight {
    width: 50%;
    text-align: right;
    margin-right: 15px;
}


.nav-btn:hover {
    transform: scale(0.9);
}

#logout-btn::before {
    opacity: 1;
}

#log-btn::before {
    opacity: 1;
}
#user-btn::before {
    opacity: 1;
}


.mapWindow {
    background-color: rgba(166, 166, 188, 0.47);
    width: 100%;
    height: calc(100vh - 18vh);
    z-index: 1;
    cursor: crosshair;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border: 1px solid #d3d3d3;
    border-radius: 5px;
}

.mapWindowOSM {
    background-color: rgba(166, 166, 188, 0.47);
    width: 100%;
    height: calc(100vh - 3vh);
    z-index: 1;
    cursor: crosshair;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border: 1px solid #d3d3d3;
    border-radius: 5px;
}

.img-responsive {
  display: inline-block;
  height: 100%;
  width: 100%;

}

.Expanded-menu {
    background-color: rgb(250, 245, 245, 0.9);
    padding: 0 18px;
    display: none;
    overflow: hidden;
    z-index: 10;
}

.top {
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    text-align: center;
    position: relative;
    z-index: 3;
    height: 15vh;
}


.top h1 {
    padding-left: 10px;
    padding-right: 10px;
    top: 5px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    position: absolute;
    margin-top: 0;
}

.top h4 {
    position: absolute;
    margin-bottom: 0;
}

.legend {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    align-items: center;
}

.legend h2 {
    margin-bottom: 0;
    font-size: clamp(1.0rem, 2vw, 2rem);
}


.mapLibraryModal {
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.mapLibraryModal.show-modal {
    display: block;
}

.modal {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    width: 400px;
    min-height: 400px;
    animation-name: modalopen;
    animation-duration: 1s;
    z-index: 6;
}

.modal-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
}

.modal-header h3 {
    margin: 0;
    text-align: center;
}

.modal-content {
    padding: 20px;
    text-align: center;
    align-items: center;
}

.modal-form div {
    margin: 15px 0;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
}

.modal-form .form-input {
    padding: 8px;
    width: 100%;
}

.modal submit-btn {

}

.close-btn {
    background: transparent;
    font-size: 25px;
    position: absolute;
    top: 5px;
    right: 0;
    border: none;
}

.back-btn {
    background: transparent;
    font-size: 25px;
    position: absolute;
    top: 5px;
    left: 0;
    border: none;
}

button:hover,
input[type='submit']:hover {
    transform: scale(1.1);
}

button:focus {
    outline: none;
}

.Explore-Menu {
    padding: 0 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-menu {
    padding: 0 18px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    align-items: center;
}


.map3 {
   height: 100%;
    z-index: 2;
}

@keyframes modalopen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.banks-model {
    font-family: 'Lato', sans-serif;
    position: absolute;
    left: 20px;
    bottom: 3vh;
    width: 250px;
    height: 250px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    cursor: move;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: rgb(250, 245, 245, 0.9);
    overflow: hidden;
    z-index: 2;
}

.bank {
    position: absolute;
    top: 0;
    left: 0;
    align-items: center;
    text-align: center;
    font-size: clamp(0.5rem, 16px, 2rem);
    height: 100%;
    width: 100%;
}

.pos {
    position: absolute;
    top: 5px;
    right: 5px;
}


.bigger {
    height: 250px;
}

/* Basic styling for the slider */
.slider-container {
    width: 80%;
    margin: 20px auto 0;
    position: relative;
}

.slider {
    height: 5px;
    position: relative;
    background-color: var(--primary-color);
    border-radius: 2px;
}



.slider input {
    position: absolute;
    width: 10px;
    height: 5px;
    top: -3px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.slider input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    background-color: #fff;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
    -webkit-appearance: none;
}
.slider input::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    background-color: #fff;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
    -moz-appearance: none;
}

.year-left {
    background-color: #fff;
    position: absolute;
    top: 22px;
    left: -30px;
    width: 80px;
    padding: 5px 0;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0, 0.3);
}

.year-right {
    background-color: #fff;
    position: absolute;
    top: 22px;
    right: -30px;
    width: 80px;
    padding: 5px 0;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.model-option {
    font-size: clamp(5px, 18px, 25px);
    padding: 0px 0px;
    min-width: 100px;
    max-width: 125px;
    margin-top: 5px;
    background-color: var(--fourth-color);
    border: 2px solid var(--fourth-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 25px;
    line-height: 25px;
}

.model-option.selected {
    border: 2px solid var(--primary-color);
    animation: colorChange 2s infinite;
    content: '<i class="fa-solid fa-magnifying-glass"></i>';
}

.flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    width: 100%;
    height: 35.84px;
    box-sizing: border-box;
    overflow: hidden;
}

.flag-icon img {
    width: 51.2px;
    min-height: 25.6px;
    max-height: 35.84px;
}

.parentDiv {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.innerLeft {
    top: 0;
    position: relative;
    flex: 1;
    border-right: 1px solid var(--third-color);
    height: 100%;
}

.innerRight {
    top: 0;
    position: relative;
    flex: 1;
    height: 100%;
}

.currencyBox {
    position: absolute;
    margin: 5px;
    bottom: 3vh;
    display: flex;
    width: 115px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    font-family: Lato, Helvetica, Arial, sans-serif;
}

.currencyBox h2 {
    margin-top: 0;
    margin-bottom: 0;
    padding: 1px;
    font-size: 30px;
    font-weight: normal;
}

.currencyBox p {
    margin-top: 0;
    margin-bottom: 0;
}


.currencyBox input {
    font-family: Lato, Helvetica, Arial, sans-serif;
    border: 0;
    width: 30%;
    background: transparent;
    font-size: 30px;
    text-align: right;
}

.mediaTags {
position: fixed;
    left: 20px;
    bottom: 38vh;
    width: 45px;
    height: 45px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    z-index: 3;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    color: black;
}

.mediaTagsOSM {
    bottom: auto;
    top: 9vh;
    left: 60px;
}

.mediaTagsP-OSM {
    bottom: auto;
    top: 9vh;
}

@keyframes colorChange {
    0% {
        border-color: var(--primary-color);
    }
    50% {
        border-color: var(--fifth-color);
    }
    100% {
        border-color: var(--primary-color);
    }
}





@media only screen and (orientation: portrait) {


    header {
        align-items: center;
    }

    .nav-el {
        left: 0;
        right: 0;
        top: auto;
        bottom: 29vh;
        margin-left: 20px;
        margin-right: auto;
        width: 300px;
        height: 60px;
        z-index: 8;
    }

    .mediaTags {
        left: 0;
        right: 0;
        bottom: 29vh;
        height: 60px;
        width: 60px;
        font-size: 30px;
        margin-left: auto;
        margin-right: 20px;
    }

    .mediaTagsOSM {
        top: auto;
        bottom: 5vh;
    }

    .mediaTagsP-OSM {
        top: auto;
        bottom: 29vh;
    }

    .nav-el-OSM {
        position: fixed;
        bottom: 5vh;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.4);
        z-index: 8;
    }

    .nav-el.expanded {
        height: 300px;
        background-color: rgb(250, 245, 245, 0.6);
    }

    .nav-btn {
        font-size: 25px;
        width: 45px;
        height: 40px;
        margin: 10px;
    }

    .Expanded-menu {
        background-color: rgb(250, 245, 245, 0.4);
        padding: 0 10px;
        height: 200px;
        width: 90%;
        display: none;
        overflow: hidden;
        z-index: 9;
    }

    .nav-option {
        width: 95%;
        height: 50px;
        font-size: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin-bottom: 5px;
        border: 1px solid #d3d3d3;
        background-color: rgb(250, 245, 245, 0.9);
        cursor: pointer;
    }

    .modal {
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        position: absolute;
        overflow: scroll;
        font-size: 20px;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        width: 80vw;
        min-height: 40vh;
        max-height: 90vh;
        animation-name: modalopen;
        animation-duration: 1s;
        z-index: 10;
    }

    .top {
        height: 10vh;
    }

    .top h1 {
        top: 1vh;
        padding: 0;
        font-size: clamp(1.5rem, 4vw, 3rem);
        position: absolute;
        margin-top: 0;
    }

    .legend {
        display: flex;
        flex-direction: row;
        position: absolute;
        bottom: 1vh;
        padding: 0;
        margin-top: 0;
        max-width: 100vw;
        align-items: center;
    }

    .legend h2 {
        margin-bottom: 0;
        font-size: clamp(1.0rem, 2vw, 2rem);
        text-align: left;
    }

    .top h4 {
        position: relative;
        font-size: clamp(1.0rem, 1.5, 3rem);
        margin-bottom: 5px;
    }

    .mapWindow {
        height: 65vh;
    }

    .mapWindowOSM {
        height: 90vh;
    }

    .slider-container {
        position: relative;
        border: 1px solid #d3d3d3;
        margin-top: 210px;
        padding: 50px;
        height: 70px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }


    .year-left {
        top: 75px;
        left: 200px;
        font-size: 30px;
        padding: 10px;
    }

    .year-right {
        top: 75px;
        right: 200px;
        font-size: 30px;
        padding: 10px;
    }

    .banks-model {
        position: fixed;
        top: auto;
        bottom: 1vh;
        left: 0;
        width: 98vw;
        height: 25vh;
        border: 1px solid #d3d3d3;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        background-color: rgb(250, 245, 245, 0.9);
        padding: 5px;
        overflow: hidden;
        z-index: 2;
    }

    .bank {
        position: absolute;
        top: 0;
        left: 0;
        align-items: center;
        text-align: center;
        font-size:  clamp(1.0rem, 20px, 3rem);
        height: 100%;
        width: 100%;
    }


    .pos {
        font-size: 20px;
        padding: 20px;
    }

    .bank textarea {
        margin-top: 5px;
        width: 95%;
        font-size: 20px;
        height: 16vh;
    }

    .banks-model h4,p {
        margin-top: 1px;
        margin-bottom: 1px;
    }

    .slider input::-webkit-slider-thumb {
        height: 40px;
        width: 40px;
    }
    .slider input::-moz-range-thumb {
        height: 40px;
        width: 40px;
    }

    .leaflet-popup-content-wrapper {
        transform: scale(1.1);
    }

    .innerLeft {
        top: 0;
        position: relative;
        flex: 1;
        border-right: 1px solid var(--third-color);
        height: 100%;
    }

    .innerRight {
        top: 0;
        position: relative;
        flex: 1;
        height: 100%;
    }

    .currencyBox {
        bottom: 2vh;
        margin: 0 10px;
        width: 180px;

    }

    .currencyBox input {
        text-align: center;
    }

}
