/* --- 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;
}
.leaflet-routing-alt h2 {
    width: 80%;
}
/* --- 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;
}
#searchBySelectActivity,
#searchBySelectRestaurant {
    width: fit-content;
    display: flex;
}
#selectActivity,
#selectRestaurant {
    font-size: 0.8rem;
    width: 275px;
}
.nav-space {
    content: '';
    width: 50px;
}
#activityBtnGroup,
#restaurantBtnGroup {
    overflow: hidden;
}
#activityMenuToggleBtn,
#restaurantMenuToggleBtn {
    border-radius: 0 6px 6px 0;
}
.menu-toggle-btn {
    position: absolute;
    left: 0;
    top: 0;
}
#switchToActivity.btn-hidden,
#switchToRestaurant.btn-hidden {
    transform: translateY(100%);
    margin-top: 2px;
}
#switchToActivity,
#switchToRestaurant {
    position: absolute;
    z-index: 1;
    right: 0;
    transition: transform 0.3s ease;
    margin-top: 0;
}
/* --- Nav Bar End --- */

/* --- Modals Global --- */
#activityInfoModalHeader,
#currencyConverterModalHeader,
#countryWeatherModalHeader,
#flightPlannerModalHeader,
#amsterdamFactsModalHeader {
    background-color: #208f4f;
}
.modal-title {
    color: #FFFFFF;
}
#countryWeatherModal,
#flightPlannerModal {
    --bs-modal-width: 550px;
}
#weatherContainer .stretch-card,
#flightPlannerContainer .stretch-card {
    padding: 0;
}
.activityInfoModalBody,
.currencyConverterModalBody {
    padding: 15px;
}
.modal-row-icons {
    text-align: center;
}
#activityInfoModalCloseBtn,
#currencyConverterModalCloseBtn,
#countryWeatherModalCloseBtn,
#flightPlannerModalCloseBtn,
#amsterdamFactsModalCloseBtn {
    background-color: transparent;
    border: none;
}
#activityInfoModalCloseBtn img,
#currencyConverterModalCloseBtn img,
#countryWeatherModalCloseBtn img,
#flightPlannerModalCloseBtn img,
#amsterdamFactsModalCloseBtn img {
    background-color: transparent;
    width: 30px;
}
/* --- Modals Global End --- */

/* --- Country Modal --- */
#activityName {
    text-align: center;
    width: 100%;
}
#activityImage {
    min-height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url();
    margin-bottom: 20px;
    border-radius: 12px;
}
#weekday span,
#saturday span,
#sunday span {
    padding-right: 5px;
}
.resultsTableAPI a {
    color: black;
}
.resultsTableAPI {
    width: 60%;
}
.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;
}
#flightPlannerModalHeader {
    border-color: #208f4f;
}
.flightPlannerInnerContainer {
    display: flex;
    flex-direction: column;
    padding: 15px;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #3f32e5;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #1c1c1c;
}
.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: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
.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: 33%;
    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;
}
@keyframes fly {
    0% {
        transform: translate(-150%, 0) scaleX(1);
    }
    25% {
        transform: translate(800%, 350%) scaleX(1);
    }
    26% {
        transform: translate(800%, 200%) scaleX(-1); /* Flip horizontally for the return journey */
    }
    50% {
        transform: translate(-150%, 550%) scaleX(-1);
    }
    51% {
        transform: translate(-150%, 600%) scaleX(1);
    }
    75% {
        transform: translate(800%, 0) scaleX(1);
    }
    76% {
        transform: translate(800%, 0) scaleX(-1); /* Flip horizontally for the return journey */
    }
    100% {
        transform: translate(-150%, 0) scaleX(-1);
    }
}
.flying-image {
    position: absolute;
    top: 0;
    left: 0;
    animation: fly 20s linear infinite;
} 
  
  .ticket-system {
    max-width: 385px;
    .top {
      display: flex;
      align-items: center;
      flex-direction: column;
      .title {
        font-weight: normal;
        font-size: 1.6em;
        margin-bottom: 20px;
        color: #fff;
        text-align: center;
      }
      .printer {
        width: 95%;
        height: 20px;
        border: 5px solid #fff;
        border-radius: 10px;
        box-shadow: 1px 3px 3px 0px rgba(0, 0, 0, 0.2);
      }
    }
  
    .receipts-wrapper {
      overflow: hidden;
      margin-top: -10px;
      padding-bottom: 10px;
    }
  
    .receipts {
      width: 100%;
      display: flex;
      align-items: center;
      flex-direction: column;
      transform: translateY(-510px);
  
      animation-duration: 2.5s;
      animation-delay: 500ms;
      animation-name: print;
      animation-fill-mode: forwards;
  
  
      .receipt {
        padding: 25px 30px;
        text-align: left;
        min-height: 200px;
        width: 91%;
        background-color: #fff;
        border-radius: 10px 10px 20px 20px;
        box-shadow: 1px 3px 8px 3px rgba(0, 0, 0, 0.2);
  
        .airliner-logo {
          max-width: 80px;
        }
  
        .route {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin: 30px 0;
  
          .plane-icon {
            width: 30px;
            height: 30px;
            transform: rotate(90deg);
          }
          h2 {
            font-weight: 300;
            font-size: 2.2em;
            margin: 0;
          }
        }
  
        .details {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
  
          .item {
            display: flex;
            flex-direction: column;
            min-width: 70px;
  
            span {
              font-size: .8em;
              color: rgba(28, 28, 28, .7);
              font-weight: 500;
            }
            h3 {
              margin-top: 10px;
              margin-bottom: 25px;
            }
          }
        }
  
        &.qr-code {
          height: 110px;
          min-height: unset;
          position: relative;
          border-radius: 20px 20px 10px 10px;
          display: flex;
          align-items: center;
  
          
          &::before {
            content: '';
            background: linear-gradient(to right, #fff 50%, #3f32e5 50%);
            background-size: 22px 4px, 100% 4px;
            height: 4px;
            width: 90%;
            display: block;
            left: 0;
            right: 0;
            top: -1px;
            position: absolute;
            margin: auto;
          }
  
          .qr {
            width: 70px;
            height: 70px;
          }
          
          .description {
            margin-left: 20px;
  
            h2 {
              margin: 0 0 5px 0;
              font-weight: 500;
            }
            p {
              margin: 0;
              font-weight: 400;
            }
          }
        }
      }
    }
  }
  
  @keyframes print {
    0% {
      transform: translateY(-510px)
    }
    35% {
      transform: translateY(-395px);
    }
    70% {
      transform: translateY(-140px);
    }
    100% {
      transform: translateY(0);
    }
  }

/* Add this CSS for the animation */
@keyframes ticketAnimation {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 0;
        transform: translateY(100px);
    }
}
#printOutboundTicketBtn,
#printReturnTicketBtn {
background-color: #208f4f;
border-radius: 6px;
border-width: 0;
box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
box-sizing: border-box;
color: #fff;
cursor: pointer;
font-size: 100%;
height: 44px;
margin: 12px 0 0;
padding: 0 25px;
text-align: center;
width: fit-content;
}
#printOutboundTicketBtn:hover,
#printReturnTicketBtn:hover {
    background-color: #20C14F;
}
/* --- Flight Modal End --- */

/* --- Amsterdam Facts Modal --- */
#amsterdamFactsModalBody {
    justify-content: center; 
    align-items: center;
}
.amsterdamFactsBubble {
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}
.speech-bubble {
    border: 1px solid #ccc;
    position: relative;
    margin: 30px;
    font-size: 1.2em;
    color: #fff;
    background: #a53d38;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
}
.speech-bubble::after {
    display: block; width: 0; content: "";
    border: 15px solid transparent;
    border-bottom-color: #a53d38;
    border-top: 0;
    position: absolute; 
    top: -15px; left: calc(50% - 15px);
}
#updateFactBtn {
    background-color: #a53d38;
    border-radius: 6px;
    border-width: 0;
    box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-size: 100%;
    height: 44px;
    margin: 12px 0 0;
    padding: 0 25px;
    text-align: center;
    width: fit-content;
}
#updateFactBtn:hover {
    background-color: #BF3D38;
}
.amsterdamFactsImg {
    width: 100%; 
    display: flex; 
    justify-content: center;
}
.amsterdamFactsImg img {
    width: 250px;
}
@media screen and (max-width: 780px) {
    .amsterdamFactsImg img {
        width: 170px;
    }
}
/* --- Amsterdam Facts 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%;
    }
}

@media screen and (max-width: 465px) {
    #navHeader {
        flex-direction: column;
        align-items: flex-end;
    }
    .darkMode {
        margin-top: 10px;
    }
    .leaflet-top {
        top: 45px;
    }
    .leaflet-top.leaflet-right {
        top: 85px;
    }
    #activityForm,
    #restaurantForm {
        align-self: center;
    }
    #selectActivity,
    #selectRestaurant {
        width: 275px;
    }
}

/* --- 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);
    }
}