div {
  animation: show 0s;
}

abbr {
  position: relative
}

abbr:hover::after {
  background: #212529;
  color: aliceblue;
  border-radius: 4px;
  bottom: 100%;
  content: attr(title);
  display: block;
  left: 85%;
  padding: 10px;
  position: absolute;
  width: 350px;
  z-index: 1;
  text-align: center;
  font-size: 16px;
}

.regular-text {
  padding-bottom: 1em;
}

@keyframes show {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.img-languages {
  -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
  filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */
}

.img-languages:hover {
  -webkit-filter: grayscale(0);
  filter: none;
}

.country:hover {
  position: relative;
  z-index: 1;
}

.country:hover .card_header_with_image_de {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../flag-icons-main/flags/4x3/de.svg") center center;
  opacity: 0.2;
  width: 100%;
  height: 100%;
}

.country:hover .card_header_with_image_nl {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../flag-icons-main/flags/4x3/nl.svg") center center;
  opacity: 0.2;
  width: 100%;
  height: 100%;
}

.country:hover .card_header_with_image_gb {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../flag-icons-main/flags/4x3/gb.svg");
  opacity: 0.2;
  background-size: 100% auto;
}

.country:hover .card_header_with_image_usa {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../flag-icons-main/flags/4x3/us.svg");
  opacity: 0.2;
  background-size: 100% auto;
}

.country:hover .card_header_with_image_at {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../flag-icons-main/flags/4x3/at.svg") center center;
  opacity: 0.2;
  width: 100%;
  height: 100%;
}

.zoom-thumb {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.4s ease-in-out;
}

/* desktop action */
@media (hover: hover) and (pointer: fine) {
  .zoom-thumb:hover {
    transform: scale(3.5);
    position: relative;
    z-index: 999;
  }
  .zoom-overlay {
    display: none !important;
  }
}

/* mobile action */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  .zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .zoom-overlay img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    cursor: zoom-out;
  }

  /* show overlay when clicked on img */
  .zoom-overlay:target {
    display: flex;
  }
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-style: normal;
}

p {
  line-height: 1.6;
}

body {
  font-family: 'Open Sans', sans-serif;
}

/* .popup-content {
  font-family: "Segoe UI", sans-serif;
  min-width: 220px;
  max-width: 300px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
} */

/* #0d6efd */
.popup-header {
  background: #212529; 
  color: white;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-weight: bold;
}

.popup-body {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #333;
}

.popup-meta {
  margin-top: 0.5rem;
  color: #6c757d;
  font-size: 0.8rem;
}

.popup-category {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: #f8f9fa;
  border-radius: 100px;
  font-size: 0.75rem;
  color: #0d6efd;
  border: 1px solid #dee2e6;
}

.popup-button {
  display: inline-block;
  margin-top: 0.75rem;
  background: #0d6efd;
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.popup-button:hover {
  background: #0b5ed7;
}

.mapboxgl-popup-content {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

.mapboxgl-popup-close-button{
  color: white;
  padding: 0.1rem 0.5rem;
  font-size: 1rem;
  font-weight: bold;
 }

.highlighted-text {
  background: linear-gradient(90deg, #2a5bcc, #00e0ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 700;
  display: inline-block;
  animation: gradientMove 7s linear infinite;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .highlighted-text {
    animation: none;
  }
}
