* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.muro-container {
  height: 100vh;
  overflow-x: auto; /* Permite scroll horizontal */
  white-space: nowrap;
}

.muro-scroll {
  position: relative;
  height: 100%;
  display: inline-block;
}

.muro-imagem {
  height: 100vh; /* A imagem ajusta-se à altura da tela */
  width: auto;   /* Permite que a largura varie de acordo com a altura */
}

.data {
  position: absolute;
  font-size: 11px;
  color: #ffffff;
  background-color: rgba(255, 19, 23, 0.744);
  font-family: sans-serif;
  padding: 6px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.data:hover {
  color: rgb(221, 27, 27);
}

.text {
  cursor: pointer;
  white-space: nowrap;
  position: absolute;
  color: rgb(221, 27, 27);
  background-color: #e2d3d3(0, 0, 0, 0);
  padding: 9px;
  border-radius: 5px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 12px;
  background-color: rgba(249, 250, 252, 0.747);
  display: none;
}

@media (max-width: 768px) {
  .data {
      font-size: 14px;
      padding: 5px;
  }
}



#rodape {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color:  rgb(221, 27, 27); /* Cor de fundo do rodapé */
  color: white;
  padding: 10px 0; /* Espaçamento no rodapé */
  font-family: sans-serif;
  display: flex;
  justify-content: space-between; /* Distribui o espaço entre as seções */
  align-items: center;
  flex-wrap: wrap;
}

#rodape a {
  color: white;
  text-decoration: none;
  margin: 0 15px; 
  font-size: 12px;
}

#rodape a:hover {
  color:  rgba(221, 27, 27, 0.79); /* Sublinhar links ao passar o mouse */
}

@media (max-width: 768px) {
  #rodape {
    flex-direction: column; /* Muda o layout para coluna em telas pequenas */
    padding: 5px 0;
  }

  #links-principais {
    margin-bottom: 10px; /* Adiciona espaçamento entre as seções */
    text-align: center;
  }

  #links-secundarios {
    text-align: justify;
    margin-right: 0;
  } 
}


.tooltip,
.tooltip-right,
.tooltip-center {
  position: absolute;
  color: rgb(221, 27, 27);
  padding: 9px;
  border-radius: 5px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 10px;
  background-color: rgba(249, 250, 252, 0.747);
  display: none;
  margin: 30px;
}

.tooltip {
  top: 40%;
  left: 44%;
}
.tooltip-right {
  top: 50%; 
  left: 98%;
}
.tooltip-center {
  top: 1%;
  left: 49%;
}

p {
  margin-bottom: 11px; 
}

.FBAUP,
.credits {
  position: absolute;
  color: rgb(221, 27, 27);
  padding: 9px;
  border-radius: 5px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 10px;
  transform: translateX(-50%); /* Centra horizontalmente */
}

/* Estilo da FBAUP */
.FBAUP {
  top: 50%; /* Posicionamento vertical */
  left: 86%; /* Posicionamento horizontal ao centro */
}

/* Estilo das credits */
.credits {  
  top: 87%; /* Ajuste de posicionamento para estar abaixo da FBAUP */
  left: 80%; /* Centra horizontalmente */
  text-align: center;
  background: none; /* Remove qualquer fundo */
}

.titulo {
  text-align: left;
}

#gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente se necessário */
  overflow-y: auto; /* Mantém o scroll normal */
  padding: 20px; /* Controla o espaço ao redor da galeria */
  margin-bottom: 20px;
}

#gallery-container img {
  margin: 20px;
  width: auto;
  height: 200px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  pointer-events: none; /* Evita que o scroll funcione ao passar o mouse sobre as imagens */
}

#gallery-container img:hover {
  pointer-events: auto; /* Habilita novamente os eventos de mouse ao interagir */
  transform: scale(1.05); /* Efeito de zoom ao passar o mouse, opcional */
}

@media (max-width: 600px) {
  #gallery-container img {
    width: 95%; /* Ajusta a largura para caber melhor em telas menores */
    margin: 5px 0; /* Menor margem para mais espaçamento em telas pequenas */
  }
}

#pagdesenhar {
  bottom: 15px;
  left: 50%;
}
#paggaleria {
    bottom: 15px;
    left: 60%;
}

/*#gallery-container {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}*/

main {
    flex-grow: 1;
    overflow: auto;
}


@media only screen and (max-width: 767px) {
  .tooltip,
  .tooltip-right,
  .tooltip-center {
    position: absolute;
    color: rgb(221, 27, 27);
    padding: 9px;
    border-radius: 5px;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 10px;
    background-color: rgba(249, 250, 252, 0.747);
    display: none;
    left: 0%;
  }


  #rodape {
    flex-wrap: wrap; /* Permite que as colunas se organizem em duas linhas */
    justify-content: space-around;
  }

  #left-section, #center-section, #right-section {
      width: 5%;
      text-align: center;
      margin-bottom: 10px;
  }

  #left-section, #center-section {
      order: 1;
  }

  #right-section {
      order: 2;
  }

  #center-section a {
      display: block;
      margin: 5px 0; /* Espaço entre os links no mobile */
  }
}