.footer-icon {
  vertical-align: middle;
  margin-right: 5px;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

footer a:hover {
  text-decoration: underline;
}

body,
html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  max-height: 100vh;
  max-width: 100vw;
  position: relative;
}

header {
  width: 100vw;
  background-color: black;
  color: white;
  padding: 10px 0;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.logo {
  max-width: 110px;
  margin-left: 1.5em;
}

.header-links {
  margin-right: 20px;
  display: flex;
}

.header-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
  background-color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 5px;
}

.header-links a:hover {
  background-color: var(--accent-color);
  color: white;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}

.menu-button div {
  width: 30px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 3px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-button.open div:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-button.open div:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  max-width: 100vw;
  height: calc(100vh - 60px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  z-index: 1001;
  padding-top: 20px;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.menu.show {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.menu a {
  display: block;
  color: black;
  text-decoration: none;
  margin: 15px 20px;
  font-size: 18px;
  text-align: center;
}

.menu a:hover {
  text-decoration: underline;
}

footer {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 5px;
  text-align: center;
  font-size: 14px;
  position: relative;
  bottom: 0;
  max-width: 100vw;
}
footer p {
  margin: 5px 0;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  display: inline-block;
}

footer a:hover {
  text-decoration: underline;
}

/* Media Queries */
/* Media Queries */
/* Media Queries */
/* Media Queries */
@media (max-width: 768px) {
  .header-links {
    display: none;
  }
  .menu-button {
    display: flex;
  }
  /* Estilos quando o botão está aberto */
  .menu-button.open div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px); /* Animação de rotação e deslocamento */
  }

  .menu-button.open div:nth-child(2) {
    opacity: 0; /* Segundo traço desaparece */
  }
  .menu-button.open div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px); /* Animação de rotação e deslocamento */
  }

  .menu {
    display: none;
    position: fixed; /* Garante que o menu sobreponha outros elementos */
    top: 100px; /* Ajusta a posição do menu abaixo do cabeçalho */
    left: 0; /* Alinha o menu à borda esquerda da tela */
    width: 100vw; /* Ocupa toda a largura da tela */
    height: calc(100vh - 60px); /* Ocupa toda a altura da tela menos a altura do cabeçalho */
    background-color: rgba(255, 255, 255, 0.95); /* Fundo branco semi-transparente */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Sombra mais forte para destaque */
    overflow-y: auto; /* Adiciona rolagem vertical se necessário */
    z-index: 1001; /* Garante que o menu fique acima de outros elementos */
    padding-top: 20px; /* Espaço acima dos links */
    opacity: 0; /* Inicialmente invisível */
    transition: opacity 0.3s ease-in-out; /* Animação suave para a opacidade */
  }
  .menu.show {
    display: block; /* Exibe o menu */
    opacity: 1; /* Torna o menu visível */
  }

  .menu a {
    display: block;
    color: black;
    text-decoration: none;
    margin: 15px 20px; /* Espaço entre os links */
    font-size: 18px; /* Tamanho da fonte dos links */
    text-align: center; /* Alinha o texto ao centro */
  }

  .menu a:hover {
    text-decoration: underline; /* Sublinha os links ao passar o mouse */
  }
  .event-card {
    width: calc(46% - 20px); /* Aproximadamente 46% para 2 eventos por linha */
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 80px;
  }
  .header-links a {
    font-size: 14px;
  }
  .event-card {
    width: 100%; /* Ocupa toda a largura disponível em telas muito pequenas */
    margin-bottom: 20px; /* Espaço entre os cartões */
  }
  .event-card img {
    max-height: 120px; /* Reduz a altura máxima da imagem */
  }
  .event-card h2 {
    font-size: 16px; /* Ajusta o tamanho da fonte do título */
  }
  .event-card p {
    font-size: 12px; /* Ajusta o tamanho da fonte do parágrafo */
  }
  footer {
    font-size: 14px; /* Ajusta o tamanho da fonte do rodapé */
  }
}
