body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ECF0F1;
  color: #333333; 
}

header {
  margin: 0; 
  padding: 0; 
}

nav {
  background-color: #2C3E50; 
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; 
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 1rem;
  display: flex;
  align-items: center;
}

nav ul li a {
  color: white;
}

.nav-button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #219653;
}

.donate-button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.donate-button:hover {
  background-color: #219653; 
}

main {
  padding: 2rem;
  padding-top: 15vh;
  flex-grow: 1; 
  max-width: 800px; 
  margin: 0 auto; 
  text-align: center; 
  display: flex;
  flex-direction: column; 
  justify-content: center; 
}

footer {
  text-align: center;
  padding: 1rem; 
}

ul {
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

.texto {
  width: 100%; 
  max-width: 515px; 
  margin: 0 auto;
  text-align: center; 
}

header, footer {
  background-color: #2C3E50; 
  color: white;
}

a {
  color: #2980B9; 
}

.logo-img {
  max-width: 70px;
  height: auto; 
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 80%; 
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.tab {
  overflow: hidden;
  background-color: #f1f1f1;
  margin-bottom: 10px;
}

.tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

.tab button:hover {
  background-color: #ddd;
}

.tabcontent {
  display: none;
  padding: 10px;
  border: 1px solid #ccc;
}

.tabcontent h3 {
  margin-top: 0;
}

h2 {
  text-align: center; 
  margin-top: 20px;  
}

#documentos {
  border: 2px solid #ccc;
  padding: 20px;    
  border-radius: 8px;   
  margin: 20px; 
  background-color: #f9f9f9; 
}

.tab-section {
  margin-bottom: 10px;  
}

.tab-section button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-weight: bold; 
}

.tab-section button:hover {
  background-color: #ddd;
}

.event-cards {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-around; 
  margin-top: 20px; 
}

.event-card {
  background-color: #f9f9f9; 
  border: 1px solid #ccc; 
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  margin: 10px; 
  width: 30%; 
  max-width: 300px;
  text-align: center; 
  padding: 10px; 
}

.event-image {
  width: 100%; 
  height: auto; 
  border-radius: 8px 8px 0 0;
}

.event-card h3 {
  margin: 10px 0; 
}

/* Estilos do modal de eventos com centralização */
.event-modal {
  display: none;
  position: fixed;
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.8); 

  /* Centralização com Flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalContent {
  margin: auto;
  display: block;
  width: 80%; 
  max-width: 700px; 
}

.modalClose {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white; 
  font-size: 35px;
  font-weight: bold;
  cursor: pointer; 
}

/* Estilização do conteúdo do modal para texto */
#modalCaption {
  margin: auto;
  text-align: center;
  color: #333;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
}

@media (max-width: 768px) {

  header nav ul {
      display: none;
  }

  header nav .logo {
      display: block;
      margin: 0 auto; 
  }

  header nav ul li {
      display: none;
  }

  header nav ul li:nth-child(4) {  
      display: block;
      text-align: center;
  }

  header {
      position: relative; 
      height: auto; 
      z-index: 10;
  }

  main {
      padding-top: 15vh; 
  }

}
