 /* Pop-up Styles */
 .popup {
  display: none; /* Inicialmente escondido */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fundo semitransparente */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  position: relative;
  background-color: rgba(13, 17, 23, 0.95); /* Dark background color with slight transparency */
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 80%;
  text-align: left;
  background-image: url("../media/images/patchnotes.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  backdrop-filter: blur(0px); /* Começa sem desfoque */
  transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

.popup-blurred {
  filter: blur(5px);
  pointer-events: none;  /* Impede interação com elementos enquanto o pop-up está ativo */
}
.popup-header {
  position: relative;
  width: 100%; /* Largura total do pop-up */
  height: 200px; /* Altura fixa do cabeçalho */
  background-size: cover; /* Faz a imagem cobrir todo o cabeçalho */
  background-position: center; /* Centraliza a imagem no cabeçalho */
  background-repeat: no-repeat; /* Evita repetição da imagem */
}

.popup-header h2 {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  z-index: 1; /* Garante que o texto fique sobre a imagem */
}

.popup-header h2 {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.3s;
}

.popup-close:hover {
  color: var(--color-primary-hover);
}

/* Alinha a descrição à esquerda */
.popup-description {
  padding: 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-align: left; /* Alinha o texto à esquerda */
  margin-bottom: 1rem;
}

#popup-details-container {
  max-height: 300px;
  overflow-y: auto;
  padding: 0 20px 20px 20px;
}

#popup-details {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Cities Section Styles */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.city-card {
  position: relative;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.city-card:hover {
  transform: scale(1.05);
}

.city-card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.3s;
}

.city-card:hover img {
  transform: scale(1.1);
}

.city-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.city-info h3 {
  color: var(--color-primary);
  font-size: 1.20rem; /* Tamanho reduzido */
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.city-info p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* Estilo para a lista e sub-lista com efeito de escadinha */
ul {
  padding-left: 20px; /* Ajusta o recuo das listas */
}

ul ul {
  margin-left: 20px; /* Adiciona um recuo adicional nas sub-listas */
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  .cities {
    grid-template-columns: 1fr;
  }

  .city-card img {
    height: 12rem;
  }
}

/* Setas de navegação */
#cities-container-wrapper {
  position: relative;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

#prev-arrow {
  left: 10px;
}

#next-arrow {
  right: 10px;
}

.city-card {
  display: none; /* Inicialmente oculto */
  opacity: 0; /* Começa com opacidade 0 */
  transform: translateY(20px); /* Move levemente para baixo */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Suaviza a transição de opacidade e movimento */
}

.city-card.show {
  display: block; /* Exibe os cards quando a classe show for aplicada */
  opacity: 1; /* Torna o card visível */
  transform: translateY(0); /* Reseta o deslocamento, trazendo o card para sua posição normal */
}