body {
  background-color: #ede1d3;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 20px;
  zoom: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  overflow: hidden;

}

html {
  height: -webkit-fill-available;

}

nav {
  background-color: #333;
  overflow: hidden;
  font-size: 18px;
  width: 100%;

}

nav a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

nav a:hover {
  background-color: #ddd;
  color: black;
}

h1 {
  text-align: center;
  font-size: 40px;
  font-style: italic;
  padding-top: 20px;
}
h2{
  text-align: center;
  font-size: 20px;
  font-style: italic;
}

/* Estilos para os botões de atividades */
.activity-button {
  position: relative;
  display: inline-block;
  overflow: hidden;


}

.activity-image {
  width: 350px;
  height: 200px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* Adiciona uma transição para a opacidade */
  opacity: 0;
  /* Começa com opacidade 0 */
}

.activity-button:hover .activity-image {
  transform: scale(1.1);
  opacity: 1;
  /* Altera a opacidade para 1 quando o mouse passa */
}

.overlay {
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.192);
  color: white;
  font-size: 15px;
  padding: 10px 30px;
  border-radius: 5px;
  font-size: medium;
}

.activity-button:hover .overlay {
  opacity: 1;
}

.conteiner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 40%;
  margin: auto;
  flex-wrap: wrap;
  height: 100%;
  justify-content: space-between;
}

.elementL {
  margin-bottom: 90px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  margin: auto;
  align-items: center;
}

.element {
  margin-bottom: 90px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  text-align: center;
  margin: auto;
  align-items: center;
}

.activity-background-1917 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens1.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  /* Remove a transição */
  border-radius: 5px;
}

.elementL p {
  text-align: right;
  width: 50%; /* Define uma largura mais confortável para o texto */
}

.activity-background-sudao {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens2.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  /* Remove a transição */
  border-radius: 5px;
}

.activity-background-any {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens3.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  border-radius: 5px;
}

.activity-background-essay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens2_1.jpg');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  border-radius: 5px;
}

.activity-background-poema {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens2_2.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  border-radius: 5px;
}

.activity-background-maquete {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens2_3.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  border-radius: 5px;
}

.activity-background-maalimentacao {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens_ma_alimentacao.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  border-radius: 5px;
}

.activity-background-modernismo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens_modernismo.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  border-radius: 5px;
}

.activity-background-tropicalismo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./public/linguagens_tropicalismo.png');
  background-size: cover;
  opacity: 1;
  transition: opacity 0s;
  border-radius: 5px;
}

a {
  text-decoration: none;
  padding: 10px;
}

.p_center{
  text-align: center;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.image-container {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.7s;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 40px;
  animation: rotateCarousel 40s infinite linear;
}

@keyframes rotateCarousel {
  from {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
  to {
    transform: perspective(900px) rotateY(560deg) rotateX(0deg);
  }
}

.image-container span {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateY(calc(var(--i) * 72deg)) translateZ(300px) translateY(50px);
  transition: transform 0.7s, top 0.7s;
}

.image-container span img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  background: rgba(25, 111, 186, 0.0);
  color: #ffffff00;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 10px;
}

.btn:hover {
  filter: brightness(1.5);
}

.carrossel{
  margin-bottom: -10px;
  margin-top: 100px;
}