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

#map {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}
#selectContainer {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 11px 0;
}

#countrySelect {
  width: 200px;
  margin: 0 auto;
  color: #cf4b00;
}
/* ===== Pre-loader ===== */
#pre-load {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
  opacity: 0.6;
}

#pre-load:before {
  content: "";
  position: fixed;
  width: 60px;
  height: 60px;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #cf4b00;
  border-radius: 50%;
  -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);
  }
}

/* Flip Cards CSS for landmark inside wikipedia */
input[type="checkbox"] {
  display: none;
}
.card-container {
  display: block;
  height: 100%;
}
.card-flip {
  display: grid;
  grid-template: 1fr / 1fr;
  grid-template-areas: "frontAndBack";
  transform-style: preserve-3d;
  transition: all 0.7s ease;
  height: 100%;
}

.card-flip .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-body {
  flex: 1;
}
.card-flip div {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.front {
  grid-area: frontAndBack;
}
.back {
  grid-area: frontAndBack;
  transform: rotateY(-180deg);
}

.card-img-wrapper {
  width: 100%;
  height: 50%;
  overflow: hidden;
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.card-img-wrapper .icon-top-right {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.25rem;
  color: #555;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.card-img-wrapper:hover .icon-top-right {
  opacity: 1;
  transform: scale(1) rotate(180deg);
}

input[type="checkbox"]:checked + .card-container .card-flip {
  transform: rotateY(180deg);
}

/* Weather Modal */
.boxShadow-card {
  cursor: pointer;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boxShadow-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.625rem 1.25rem rgba(137, 115, 209, 0.5);
}

/* ===== Choropleth Maps ===== */
.world-map {
  width: 100%;
  height: 700px;
  border-radius: 4px;
}
@media (max-width: 991px) {
  .worldModal .modal-dialog {
    max-width: 100%;
    margin: 0;
  }
}

/* All World Map Legend */
.info.legend {
  color: #555;
  border-radius: 4px;
  font-size: 0.625rem;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}
