/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: black;
  color: white;
}

h1 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
}

li a {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.5rem;
}

/* Header e Footer */
header, footer {
  display: flex;
  justify-content: space-between;
  gap: 5vh;
  align-items: baseline;
}

/* Estilo do canvas de fundo */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Fica abaixo dos textos */
}

/* Para os elementos de texto que devem ficar acima do canvas */
h1, h2, h3, h4, h5, h6, p, a, li {
  position: relative;
  z-index: 2;
  background-color: transparent;
}

/* Corpo */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding: 20px;
  background: transparent;
}

/* Navegação */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  margin-right: 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
}

/* Main e Sections */
main {
  margin: 20px 0;
  padding: 20px;
  border-radius: 5px;
}

/* Modal */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 90%;
  width: 90%;
}

.modal-content button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background: #007BFF;
  color: #fff;
  cursor: pointer;
  border-radius: 3px;
}

#modal .modal-content p {
  background-color: white;
  color: black;
  font-size: 1rem;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 600px) {
  /* Cabeçalho e rodapé empilhados */
  header, footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  /* Ajusta a navegação */
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin-bottom: 10px;
    margin-right: 0;
  }

  #footer-nav {
    display: contents
  }

  nav p p {
    display: contents
  }
  
  /* Reduz fontes */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  p, li a {
    font-size: 0.9rem;
  }
}
