* {
  font-family: "Source Sans Pro", sans-serif;
}

body,
html {
  height: 100%;
  margin: 0;
}

/* Initial Page */

.map-container {
  height: 100%;
  width: 100%;
  z-index: 0;
}

.container-fluid {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nav-container {
  position: absolute;
  width: 100%;
  z-index: 999;
  padding: 10px;
  padding-top: 10px;
}

.navbar {
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
}

.navbar-brand {
  font-size: 1.5rem;
}

#country-select {
  border-radius: 10px;
  font-size: 1rem;
}


/* Style pinning the house icon from the top */

.leaflet-control-attribution, .leaflet-control-scale-line {
  position: sticky;
}

.leaflet-control {
  top: 80px;
}

.easy-button-button {
  height: 44px;
  width: 44px;
  border-radius: 4px;
  border: none;
  background-color: white;
}

.fa.fa-solid.fa-house::before {
  color: #868686;
}

.easy-button-button:hover .fa.fa-solid.fa-house::before {
  color: #272626;
}

.modal-body {
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
}

.input-group-text.info-flag-div {
  min-width: 175px;
  min-height: 75px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 5px;
}

.fa-solid,
.fas {
  font-size: 18px;
  color: #000000;
}

.modal-dialog.modal-sm {
  font-size: 1rem;
  right: 45px;
}

.icon-info {
  font-style: normal;
  font-weight: bold;
  cursor: pointer;
}

.nav-flag-div {
  width: 100px;
  height: 40px;
  margin-right: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 570px) {
  .modal-dialog {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .leaflet-touch .leaflet-control-attribution {
    width: 100%;
    font-size: 8px;
  }
}

/* Loader */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7); 
  z-index: 9999; 
}

#loader-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#lottie-loader {
  width: 250px; 
  height: 250px; 
}

#loader-text {
  margin-top: 10px;
  font-size: 24px;
  color: #fff;
  white-space: nowrap; 
  overflow: hidden; 
  width: 10em; 
  animation: typing 3s steps(30, end) infinite; 
}

@keyframes typing {
  0% {
    width: 0;
  }
  50% {
    width: 10em;
  }
}


/* Country select sizing and reduction for tablet and phones */

#country-select {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 450px) {
  #country-select {
    max-width: 175px;
  }
  .ms-2 a {
    display: none;
  }
}

@media (max-width: 375px) {
  #country-select {
    max-width: 169px;
  }
}

.nav-flag-div {
  max-width: 100px;
}

@media (max-width: 405px) {
  .nav-flag-div {
    max-width: 80px;
  }
}

.map-container {
  position: relative;
  flex-grow: 1;
}

.row {
  height: 100%;
}

/* Custom Volcanoe Marker */

.popup-content {
  max-height: 40vh;
  max-width: 40vw;
  overflow-y: auto;
}

.leaflet-popup .custom-popup .leaflet-popup-content-wrapper {
  padding: 10px;
}

/* Tooltips and popups */

/* Custom tooltip styles */
.custom-tooltip {
  background-color: rgba(34, 34, 34, 1) !important;
  color: white;
  padding: 8px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: 2px solid rgb(255, 255, 255);
}

/* Custom popup styles */
.custom-popup .leaflet-popup-content-wrapper {
  background-color: rgba(34, 34, 34, 1);
  color: white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  border: 2px solid rgb(255, 255, 255);
}

.custom-popup .leaflet-popup-content {
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-align: center;
}

.custom-popup .leaflet-popup-close-button {
  display: none;
}

.popup-content img {
  margin-top: 8px;
  border-radius: 5px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.popup-content hr {
  border-color: #888;
  margin: 4px 0;
}

.popup-content b {
  font-size: 16px;
}

.popup-content a {
  font-size: 16px;
}

.custom-select {
margin-top: 10px;}


/* modals */

.modal-body p {
  margin-bottom: 0.25rem;
  text-align: center;
}

.modal-content {
  padding: 1rem;
  background-color: #f5f5f5;
}

.modal-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: black;
}

.modal-dialog {
  max-height: 80%;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

/* Country Info */
.info-icon {
  position: absolute;
  left: 10px;
  z-index: 1000;
}

.info-icon-1 {
  top: 85px;
}

.info-icon i {
  font-size: 30px;
  color: #868686;
  background-color: white;
  cursor: pointer;
  padding: 14px;
  border-radius: 10px;
  background-clip: padding-box;
  border: 2px solid rgba(0, 0, 0, 0.2);
  height: 61px;
  width: 61px;
}

.fas.fa-book-atlas.fa-x2::before {
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-info-modal body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.country-info-modal .modal-content {
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
}

.country-info-modal .modal-header {
  color: #000000;
}

.country-info-modal .modal-title {
  font-weight: bold;
}

.country-info-modal .btn-close {
  background-color: #ffffff;
  border: none;
  width: 25px;
  height: 25px;
}

.country-info-modal .btn-close:hover {
  background-color: #f8f9fa;
}

.country-info-modal .info-icon-1 {
  cursor: pointer;
  color: #6c757d;
}

.country-info-modal .info-icon-1:hover {
  color: #495057;
}

.country-info-modal .table {
  border: none;
}

.country-info-modal td {
  font-weight: 500;
}

.country-info-modal td:first-child {
  width: 30%;
}

.country-info-modal strong {
  font-weight: bold;
}

/* Weather National and City */

.info-icon-2 {
  top: 160px;
}

.fa-solid.fa-cloud-sun-rain:before {
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-wrapper {
  padding: 10px;
  min-width: 100%;
  border-radius: 10px;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
}


.city-weather-info h5 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.city-weather-info h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.8em;
}

.weather-icon {
  width: 110px;
  height: 110px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  background-color: white;
  border-radius: 20px;
  margin-top: 10px;
}

.city-weather-info p {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.weather-wrapper h5 {
  font-size: 1.5rem;
  font-weight: bold;
}

.weather-wrapper h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10px;
}

.weather-wrapper p {
  font-size: 18px;
  margin-bottom: 10px;
}

.weather-wrapper p strong {
  font-weight: bold;
  color: #4d311c;
}

.weather-wrapper #city-select {
  font-size: 1rem;
}

.weather-wrapper p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #5d4739;
}

.weather-wrapper p strong {
  font-weight: bold;
}

#weather-country-fore {
  font-size: 1.5rem;
}

#weather-desc {
  font-size: 1.2rem;
}

#weather-icon {
  background-color: white;
  border-radius: 20px;
  margin-top: 5px;
}

#weather-loader {
  text-align: center;
}

#gw-icons {
  height: 35px;
  width: 35px;
}

#weather-loader {
  margin-top: 15px;
}

.weather-row {
  font-size: 1.2rem;
  height: auto;
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
}

.gw-icons {
  width: 20px;
  height: 20px;
}

/*  News  */

.info-icon-3 {
  top: 235px;
}

.fa-newspaper:before {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-dialog-scrollable .modal-content {
  max-height: 80%;
  overflow: hidden;
}

.newspaper {
  line-height: 1.6;
  padding: 5px;
}

.card.mb-3 {
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-text {
  font-size: 1rem;
  margin-bottom: 10px;
}

.card-text small {
  font-size: 0.8em;
  font-style: italic;
}

.card-body {
  padding: 15px;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #333;
}

/* Exchange */

.info-icon-4 {
  top: 310px;
}

.fa-money-bill-1:before,
.fa-money-bill-alt:before {
  align-items: center;
  justify-content: center;
  display: flex;
}

.exchange-modal-content {
  background-color: #f5f5f5;
  border-radius: 10px;
}

.exchange-modal-content .modal-header {
  border-bottom: 2px solid #ccc;
}

.exchange-modal-content .modal-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.exchange-modal-content .modal-body {
  font-size: 1rem;
  display: grid;
}

.exchange-modal-content .modal-footer {
  border-top: 2px solid #ccc;
  justify-content: space-evenly;
}

.form-label {
  font-weight: bold;
  margin-top: 0.5rem;
}

.form-select {
  border-radius: 5px;
  border-color: #ced4da;
}

#amount {
  border-radius: 5px;
  border-color: #ced4da;
}

#exchange-rates {
  margin-top: 20px;
}

.exchange-card {
  background-color: #f0f8ff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.exchange-modal-content .mb-3 {
  justify-content: center;
}


.exchange-card-container .card-title {
  color: #3498db;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.exchange-card-container .card-text {
  text-align: initial;
}

/* Food Modal */

.info-icon-5 {
  top: 385px;
}

.food-modal .food-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.food-modal .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.food-modal .card-text {
  margin-bottom: 0.25rem;
}

.food-modal .food-pick {
  border-bottom: 1px solid #e5e5e5;
}

.food-modal .food-pick:last-child {
  border-bottom: none;
}

.food-modal .modal-body {
  max-height: 80%;
  overflow-y: auto;
}

.preFood { 
  text-align: center;
}

.noFoodAvailable {
  text-align: center;
}

#food-loader {
  text-align: center;
}

/* wikipedia Modal */

.info-icon-6 {
  top: 460px;
}

.fa-wikipedia-w:before {
  display: flex;
  justify-content: center;
  align-content: center;
}

.wikipedia-card {
  margin: 20px auto;
  max-width: 600px;
}

.wikipedia-card .card-header,
.wikipedia-card .card-footer {
  text-align: center;
}

.wikipedia-card .card-title {
  margin-bottom: 0;
}

.wikipedia-card .btn {
  display: block;
  margin: 10px auto;
}

.wikipedia-card img {
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

/* Position the zoom buttons and remove for tablets and phones */

.leaflet-control-zoom {
  position: static;
}

@media (max-width: 767px) {
  .leaflet-control-zoom {
    display: none;
  }
}

@media (max-height: 400px) {
  .leaflet-control-zoom {
    display: none;
  }
}
