/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
}
#preloader: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: 1s linear infinite animate-preloader;
    animation: 1s linear infinite animate-preloader;
}
#preloader2 {
    position: absolute;
    top: 315px;
    left: 20px;
    z-index: 9999;
    overflow: hidden;
    background: #F2F2F2;
    height: 275px;
    width: 500px;
    border-radius: 15px;
}
#preloader2:before {
    content: "";
    position: absolute;
    top: 122px;
    left: 220px;
    border: 6px solid #f2f2f2;
    border-top: 6px solid #56829e;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: 1s linear infinite animate-preloader;
    animation: 1s linear infinite animate-preloader;
}
/* --- Preloader End --- */

/* --- Global --- */
html, body, #map {
    height: 100%;
    width: 100vw;
}
.leaflet-popup-content {
    text-align: center;
}
img.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive {
    z-index: 620 !important;
}
div.leaflet-marker-icon.extra-marker {
    z-index: 600 !important;
}
#darkModeSwitch {
    height: 34px;
    margin-right: 10px;
    width: 60px;
    display: flex;
    z-index: 1;
    cursor: pointer;
}
.leaflet-top.leaflet-right {
    top: 45px;
}
.leaflet-touch .leaflet-control-layers-toggle {
    width: 50px;
    height: 50px;
}
.leaflet-top.leaflet-left .leaflet-control button,
.leaflet-top.leaflet-left .leaflet-control a,
.leaflet-top.leaflet-right .leaflet-control button,
.leaflet-top.leaflet-right .leaflet-control a {
    height: 40px;
    width: 40px;
    line-height: 40px;
    padding: 0;
    margin: 0;
}
.leaflet-top.leaflet-left .leaflet-control button span span,
.leaflet-top.leaflet-right .leaflet-control button span span {
    font-size: 18px;
    line-height: 40px;
}
.leaflet-top.leaflet-left .leaflet-control button span span::before,
.leaflet-top.leaflet-right .leaflet-control button span span::before {
    padding: 0;
    margin: 0;
}
/* --- Global End --- */

/* --- Dark Mode --- */
.checkbox {
    opacity: 0;
    position: absolute;
}
.checkbox-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checkbox-label .fa-moon {
    color: #FFF;
}
.checkbox-label .fa-sun {
    color: #f39c12;
}
.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}
.checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}
.dark-mode {
    background: dimgray !important;
    color: white !important;
    border: 1px solid white !important;
}
.dark-mode-icon {
    color: white !important;
}
.dark-mode-header {
    background: grey !important;
    color: white !important;
}
.dark-mode-table {
    --bs-table-color: white !important;
    --bs-table-striped-color: white !important;
    --bs-table-striped-bg: gray !important;
    --bs-table-bg: darkgrey !important;
    border-color: transparent;
}
.dark-mode-table tbody tr:first-child {
    border-top: 1px solid #DEE2E6;
}
/* --- Dark Mode End --- */

/* --- Nav Bar --- */
#navHeader {
    background: rgba(204, 204, 204, 0);
    position: absolute;
    z-index: 1000;
    width: 100%;
    justify-content: space-between;
    padding: 8px 10px;
}
#searchBySelectCountry {
    width: 200px;
    display: flex;
}
.nav-space {
    content: '';
    width: 50px;
}
/* --- Nav Bar End --- */

/* --- Modals Global --- */
#countryInfoModalHeader,
#currencyConverterModalHeader,
#countryWeatherModalHeader,
#flightPlannerModalHeader {
    background-color: #208f4f;
}
.modal-title {
    color: #FFFFFF;
}
#countryWeatherModal,
#flightPlannerModal {
    --bs-modal-width: 550px;
}
#weatherContainer .stretch-card,
#flightPlannerContainer .stretch-card {
    padding: 0;
}
.countryInfoModalBody,
.currencyConverterModalBody {
    padding: 15px;
}
.modal-row-icons {
    text-align: center;
}
/* --- Modals Global End --- */

/* --- Country Modal --- */
#country-flag {
    margin-bottom: 4px;
}
.weather-temperature-container,
.weather-wind-speed-container {
    display: flex;
}
.weather-temperature-icon,
.weather-wind-speed-icon {
    margin-left: 5px;
    margin-bottom: 0;
}
#searchedLatandLng {
    font-size: 0.875em;
}
/* --- Country Modal End --- */

/* --- Weather Modal --- */
#currentWeatherIcon {
    width: 85px;
    color: #878C93;
    font-size: 50px;
}
#weatherIcon1 i,
#weatherIcon2 i,
#weatherIcon3 i,
#weatherIcon4 i,
#weatherIcon5 i {
    font-size: 28px;
    color: #878C93;
}
.blue-bg {
    background-color: #E5F3FC;
}
.modal-body-bg {
    background: #FFF !important;
    background-image: linear-gradient(to left bottom, #FFF, #FFF) !important;
}
#weatherSidePanel {
    float: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.weatherWindSpeed,
.weatherTemperature {
    margin-bottom: 0;
}

.weather-forecast-data-small {
    font-size: 12px;
}
.weather-forecast-data {
    font-size: 14px;
}
.card.card-weather {
    border-radius: 0px;
    border: none;
}
#currentWeatherDescription {
    font-size: 1.2em;
}
.weather-forecast {
    display: flex;
    justify-content: space-evenly;
    padding-top: 16px;
    background: #ffffff;
    overflow-x: auto;
    flex: 0 0 20%;
    text-align: center;
    font-size: 0.8rem;
}
.weather-forecast-item {
    padding: 0 2px;
}
#currentTempature,
#currentTempHighs, 
#currentTempLows {
    font-weight: 700;
}
.card-weather .card-body {
    background: transparent;
    z-index: 1;
    background: url(../../images/weatherBackground.svg) no-repeat center;
    background-size: cover;
    padding: 8px 30px;
}
#weather-background1,
#weather-background2,
#weather-background3,
#weather-background4,
#weather-background5 {
    background-size: cover;
    z-index:0;
    opacity:0.7;
    width: 100%;
    background-image: url();
}

.weather-container {
    background-image: url(../../images/weatherBackground.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

/* --- Weather Modal End --- */

/* --- Currency Modal --- */
#swap-button {
    border: 1px solid #DDDDDD;
    border-radius: 100%;
    background-color: transparent;
    float: right;
    margin: 5px 0;
}
#swap-button i {
    color: #006CE0;
    rotate: 90deg;
}
#exchangeRateForm .form-group:nth-of-type(3) {
    padding-top: 18px;
}
#convert-buton {
    width: 466px;
}
#resultContainer {
    text-align: center;
    font-weight: 700;
}
/* --- Currency Modal End --- */

/* --- Flight Modal --- */
#flightPlannerContainer {
    margin: 0;
    padding: 0;
}
.flightPlannerInnerContainer {
    display: flex;
    flex-direction: column;
    padding: 15px;
    justify-content: center;
    align-items: center;
}
.flightPlannerForm {
    display: flex;
    margin-bottom: 35px;
    padding: 10px;
    justify-content: space-between;
    border: 1px solid #C7C8C9; 
    border-radius: 15px;
    width: 100%;
}
#flightPlannerForm_Form {
    display: flex; 
    width: 100%; 
    flex-direction: row; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
    gap: 10px;
}
.flightPlannerForm_Form_Inner {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}
#flightPlannerForm_Form_Inner .form-group {
    display: flex; 
    width: 47%; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}
#flightPlannerForm_Form_Inner .form-group label {
    width: 100%; 
    text-align: left;
}
#flightPlannerForm_Form_Inner .form-group select,
#flightPlannerForm_Form_Inner .form-group select {
    font-size: 12px;
    cursor: pointer;
}
#fromAirport,
#departDateTime {
    padding: 0.375rem 0.55rem;
    font-size: 12px;
}
#get-flights-buton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28%;
}
#get-flights-buton:disabled,
#convert-buton:disabled {
    cursor: not-allowed;
    opacity: 40%;
    pointer-events: all;
}
#flights-swap-button {
    border: 1px solid #DDDDDD;
    border-radius: 100%;
    background-color: transparent;
    margin: 25px 5px 0px 5px;
    padding: 0px 10px;
}
#flights-swap-button i {
    color: #006CE0;
    font-size: 12px;
}
#flightNoResultsContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 300px;
    justify-content: center;
    align-items: center;
    background-color: #F2F2F2;
    border: 1px solid #C7C8C9;
    border-radius: 15px;
    text-align: center; 
    padding: 0 10px;
}
#flightPreResultsMessage {
    font-size: 16px;
    color: #000;
    font-weight: 700;
}
#flightPreResultsMessage span {
    font-style: italic;
    font-weight: 400;
    padding: 0 60px;
    display: flex;
    font-size: 14px;
}
#flightNoResults {
    display: none;
    color: #FF0000;
}
#flightResultsContainer {
    display: none;
    flex-direction: column;
    width: 100%;
}
.flightPlannerResult1,
.flightPlannerResult2,
.flightPlannerResult3 {
    display: flex;
    height: auto;
    margin: 5px 0;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #C7C8C9; 
    border-radius: 15px;
    width: 100%;
    line-height: 1;
}
.flightPlannerResult1,
.flightPlannerResult3 {
    background-color: #F2F2F2;
}
.flightPlannerResultLeft,
.flightPlannerResultMiddle,
.flightPlannerResultRight {
    display: flex;
    flex-direction: column;
    width: auto;
    text-align: center;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    height: 100%;
}
.flightPlannerResultMiddle {
    justify-content: center;
}
.flightPlannerResultMiddle i {
    font-size: 45px;
    color: #333333;
}
.flightPlannerResultMiddle p {
    margin: 0;
}
.airportCode {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.flightTitle {
    font-weight: 400;
    margin: 0;
    font-size: 12px;
    text-decoration: underline;
}
.flightData {
    font-weight: 700;
    margin: 0;
    font-size: 12px;
    text-decoration: none;
}
.airportName, 
.airportDepart,
.airportArrival {
    margin: 0;
}
.airportDepart small,
.airportArrival small {
    font-size: 10px;
}
.airportName {
    display: none;
}
/* --- Flight Modal End --- */

/*-----------*/

#weatherContainer {
    margin: 0;
    padding-left: 0px;
    padding-right: 0px;
}

.card-weather {
   background: #e1ecff;
   background-image: linear-gradient(to left bottom, #d6eef6, #dff0fa, #e7f3fc, #eff6fe, #f6f9ff);
}

.card {
   position: relative;
   display: flex;
   flex-direction: column;
   min-width: 0;
   word-wrap: break-word;
   background-color: #fff;
   background-clip: border-box;
   border: 1px solid rgba(0, 0, 0, 0.125);
   border-radius: 0.25rem;
}

.card-body {
   flex: 1 1 auto;
   padding: 1.25rem;
}

.card-weather .weather-date-location {
   padding: 0 0 38px;
}

.h3, h3 {
   font-size: 1.56rem;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
   font-family: "Poppins", sans-serif;
   font-weight: 500;
}

.text-gray, 
.card-subtitle {
   color: #969696;
}

.mr-auto, 
.mx-auto {
   margin-right: auto !important;
}

.display-3 {
   font-size: 2.5rem;
}

.card-weather .weakly-weather {
   background: #ffffff;
   overflow-x: auto;
   justify-content: center;
   
}

.mb-0, 
.my-0 {
   margin-bottom: 0 !important;
}

/* --- Media Queries --- */
@media screen and (max-width: 575px) {
    #convert-buton {
        width: 525px;
    }
    .nav-space {
        width: 60px;
    }
    #preloader2 {
        width: 88%;
    }
    #preloader2:before {
        left: 45%;
    }
}

/* --- Preloader --- */

@-webkit-keyframes animate-preloader {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes animate-preloader {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}