html,
body {
  margin: 0;
  padding: 0;
}

::selection {
  background: #4a8fe8;
  color: white;
}

#map {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* ========================= Preloader ==================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
}

/* Style for the loading spinner or animation */
.spinner-border {
  width: 3rem; 
  height: 3rem; 
  color: #007bff; 
}

/* Optional: Customize animation speed or other properties */
.spinner-border::after {
  animation-duration: 1.5s; /* Adjust the animation duration */
  border-color: #007bff transparent transparent transparent; /* Customize border color */
}

/* ======================== End of Preloader ================ */
#selectContainer {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 11px 0;
}

#countrySelect {
  width: 200px;
  margin: 0 auto;
}

.bi:hover {
  font-size: 25px;
}

#txtFlag {
  font-size: 30px;
  padding: 0 0 0 7px;
}

.country_info {
  background-color: #2D1015;
}

.modal-dialog {
  max-width: 53vw;
}

#modal1 .modal-body,
#modal2 .modal-body,
#modal3 .modal-body,
#modal4 .card-group,
#modal5 .modal-body
 {
  overflow-x: auto;
  overflow-y: scroll;
  height: fit-content;
  max-height: 67vh;
}

/* ============================ Currency Converter ====================== */
.currency_converter {
  min-height: 68vh;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #011844;
  margin-top: 0;
}

.wrapper {
  width: 600px;
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.01);
}

.wrapper header {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.wrapper form {
  margin: 40px 0 20px 0;
}

.wrapper form button,
.wrapper form input,
.wrapper form select {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 5px;
}

.wrapper form p {
  font-size: 18px;
  margin-bottom: 5px;
}

.wrapper form input {
  height: 50px;
  padding: 0 15px;
  border: 1px solid #999;
  font-size: 17px;
}

.wrapper form input:focus {
  border: 2px solid maroon;
  padding: 0 14px;
}

.wrapper form .dropdown_list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.wrapper form .dropdown_list .select_box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 45px;
  border: 0.5px solid maroon;
  border-radius: 5px;
}

#from, #to {
  font-size: 15px;
  width: 213px;
}

.wrapper form .dropdown_list .select_box img {
  max-width: 21px;
}

.wrapper form .dropdown_list .select_box select {
  width: auto;
  font-size: 16px;
  background: none;
  margin: 0 -5px 0 5px;
}

.wrapper form .dropdown_list .select_box select::-webkit-scrollbar {
  width: 8px;
}

.wrapper form .dropdown_list .select_box select::-webkit-scrollbar-track {
  background: #fff;
}

.wrapper form .dropdown_list .select_box select::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
  border-right: 2px solid #fff;
}

.wrapper form .dropdown_list .icon {
  font-size: 22px;
  margin-top: 30px;
  cursor: pointer;
}

.wrapper form .exchange_rate {
  font-size: 16px;
  margin: 20px 0 30px;
}

.wrapper form button {
  height: 52px;
  background: maroon;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wrapper form button:hover {
  background: transparent;
  color: maroon;
  border: 2px solid maroon;
}

/* ======================== Currency Converter Media Query ============== */
@media screen and (max-width: 575px) {
  .wrapper {
    width: 260px;
    height: 420px; /* Adjust height to auto for better fit */
    padding: 20px; /* Add padding for better spacing inside the wrapper */
  }

  .wrapper header{
    font-size: 20px;
  }

  .wrapper form {
    margin-top: 15px;
  }

  .dropdown_list {
    display: flex;
    flex-direction: column; /* Align items in a column */
    align-items: center; /* Center items horizontally */
    margin-top: 10px; /* Add margin to separate from header */
  }

  .icon {
    margin: 2px 0; /* Add some spacing between the icon and select boxes */
  }

}

/* =========================== Weather ================================== */
.modal-body_weather {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-image: radial-gradient(
    circle,
    #1c7fc2 0%,
    #009cdc 28%,
    #0d9ade 32%,
    #011844 100%
  );
  color: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
}

.weather {
  width: 80%;
  height: 100%;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.weather_today {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.weather_icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.weather_image {
  width: 20vmin;
  align-self: center;
}

.weather_text-container {
  margin-top: 5px;
  text-align: center;
  font-size: 18px;
}

.weather_city {
  font-size: 20px;
  font-weight: 600;
}

.weather_country {
  font-size: 15px;
  font-weight: 500;
  margin: 20px 0;
}

.weather_day {
  font-size: 13px;
  margin: 10px 0;
  font-weight: 400;
  margin: 10px 0;
}

.weather_indicator::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  background-size: cover;
  margin-right: 10px;
}

.weather_indicator-humidity::before {
  background-image: url(../images/humidity.png);
  margin-right: 10px;
  filter: brightness(2.5); /* Adjust the brightness value as needed */
}

.weather_indicator-wind::before {
  background-image: url(../images/wind2.png);
  filter: brightness(1.3); /* Adjust the brightness value as needed */
}

.weather_indicator-pressure::before {
  background-image: url(../images/pressure.png);
  filter: brightness(0.9); /* Adjust the brightness value as needed */
}

.weather_temperature {
  font-size: 20px;
}

.weather_forecast-condition {
  font-size: 13px;
}

.weather_forecast {
  width: 100%;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.weather_forecast-icon {
  max-width: 50%;
}

.weather_forecast-item {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 10px 10px 10px;
  padding: 15px 5px 20px;
  box-sizing: border-box;
  width: 16%;
  flex-grow: 1;
}

.weather_forecast-day {
  margin-top: 10px;
}

.modal-footer_weather {
  background-image: url(../images/rain.png);
}

/* ======================== Weather Media Query ========================== */
@media screen and (min-width: 600px) and (max-width: 760px) {
  .weather_forecast-condition {
    font-size: 10px;
  }
}

@media screen and (min-width: 435px) and (max-width: 599px) {
  .weather_forecast-condition {
    font-size: 6px;
  }
}

@media screen and (max-width: 434px) {
  .weather_forecast-condition {
    display: none;
  }

  .weather_forecast-day {
    font-size: 14px;
  }

  .weather_forecast-temperature {
    font-size: 10px;
  }
}

/* ======================== News ============================== */
.card-img-top {
  height: 185px; 
  object-fit: cover; /* This property ensures that the image retains its aspect ratio and covers the entire container */
}

.card-content {
  font-size: 10px;
  margin-bottom: 2px;
}

.card-link {
  text-decoration: none;
  font-size: 13px;
}

/* ======================== Media Query ========================== */
@media screen and (max-width: 515px) {
  #countrySelect {
    width: 35%;
    font-size: 10px;
  }

  #modal4 .modal-content {
    max-height: 500px;
  }
}

@media screen and (min-width: 516px) and (max-width: 575px) {
  #modal4 .modal-content {
    max-height: 500px;
  }
}

@media screen and (max-width: 900px) {
  .modal {
    margin-left: auto;
    margin-right: auto;
  }

  .modal-dialog {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 901px) and (max-width: 1279px) {
  .modal {
    margin-left: auto;
    margin-right: auto;
  }

  .modal-dialog {
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1280px) {
  #modal4 .modal-dialog {
    max-width: 810px;
    width: 90%;
    max-height: 80vh;
  }
}

/* =========================== The End ================================== */