
/* loader */

#loader {
    position: fixed;
}

.modal-loader {
    position: absolute;
}

#loader, .modal-loader {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #ffffff;
}

#loader:before, .modal-loader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #f2f2f2;
    border-top: 6px solid #56829e ;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
}


@-webkit-keyframes animate-preloader {
    0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    }
    100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    }
}

@keyframes animate-preloader {
    0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    }
    100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    }
}

.fade-out {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s .5s, opacity 1s linear;
  }

.error-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    overflow: hidden;
    background: #ffffff;
}

.error-icon-container {
    position: fixed;
    top: calc(50% - 16px);
    left: calc(50% - 22px);
}

/* General */

body {
    border: 0;
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: "Roboto", sans-serif;
}

h4 {
    margin: 0;
}

/* Leaflet */

#map {
    height: 100vh;
    width: 100vw;
    border: 0;
    padding: 0;
    margin: 0;
}

/* Country info feature */

.country-info {
    padding: 6px 8px;
    left: 5px;
    font-size: 12pt;
    background-color: white;
    color: black;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    text-align: center;
}

p.country-info {
    margin-top: 3px;
    padding-top: 5px;
    margin-bottom: 3px;
    padding-bottom: 5px;
}

#country-info-id {
    margin: 0;
    padding: 0;
}

.extra-info {
    display: none;
}

#close-more-info {
    display: none;
    width: 100%;
}

/* Country Select Box */

#select-container {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    padding: 11px 0;
  }

#country-list {
    width: 200px;
    text-align: center;
    margin: 0 auto;
}

/* Modals */

.modal-body {
    min-height: 160px;
}

/* News Modal */
.news-image-container {
    height: 160px;
}

.news-image {
    object-fit: cover;
}

/*Currency Ex Modal*/

.label-shift {
    left: .75rem !important;
}

/* Media queries for small screens */

@media only screen and (max-width: 768px) {

    .country-info {
        padding: 2px 5px;
        font-size: 10pt;
    }

    div.country-info.leaflet-control {
        margin: 3px;
        bottom: 40px;
    }

}

@media only screen and (max-width: 425px) {

    div.country-info.leaflet-control {
        bottom: 55px;
    }


}

@media only screen and (max-width: 320px) {

    div.country-info.leaflet-control {
        bottom: 68px;
    }

}

@media only screen and (max-height: 480px) {

    div.country-info.leaflet-control {
        left: 0;
        right: 5px;
        bottom: 0;
    }


}