/* RESET */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #f4f1ec;
  color: #3b2f2f;
  font-family: 'Georgia', serif;
  overflow-x: hidden;
}

/* SEÇÃO PRINCIPAL */
.teorias {
  padding: 60px 20px;
  background-color: #fff9e6;
  text-align: center;
}

/* CARD GIGANTE */
.card-gigante {
  max-width: 1200px;
  margin: auto;
  padding: 50px 30px;
  background-color: #fff3c4;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
}

/* TÍTULO */
.teorias h1 {
  font-size: 48px;
  display: inline-block;
  padding: 14px 36px;
  background-color: white;
  color: #0c0505;
  border-radius: 10px;
  margin-bottom: 55px;
  border: 2px solid #000;
  box-shadow: 5px 5px 0px #000;
}

.emoji-titulo {
  display: inline;
}

/* ÁREA DOS CARDS */
.cards-teoria {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* CARD INDIVIDUAL */
.card-teoria {
  width: 300px;
  padding: 25px;
  border-radius: 16px;
  background-color: white;
  border: 2px solid #000;
  box-shadow: 5px 5px 0px #000;
  transition: 0.3s ease;
  text-decoration: none;
  color: inherit;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* IMAGEM DO CARD */
.card-teoria img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
}

/* TEXTO DOS CARDS */
.card-teoria h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card-teoria p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* HOVER */
.card-teoria:hover {
  transform: translateY(-8px);
  box-shadow: 10px 10px 0px #000;
}

.card-teoria:hover h2 {
  text-decoration: underline;
}

.card-teoria,
.card-teoria:visited,
.card-teoria:hover,
.card-teoria:active {
  text-decoration: none;
  color: inherit;
}

/* DECORAÇÕES */
.chapeu {
  position: absolute;
  top: 0px;
  right: 220px;
  width: 150px;
  transform: rotate(10deg);
}

.livro {
  position: absolute;
  top: 10px;
  left: 50px;
  width: 150px;
  transform: scaleX(-1) rotate(-10deg);
}

.bussola {
  position: absolute;
  top: 220px;
  left: -20px;
  width: 120px;
  transform: rotate(-10deg);
}

.lupa {
  position: absolute;
  top: 220px;
  right: -20px;
  width: 120px;
  transform: scaleX(-1);
}

/* DETALHES VISUAIS */
.teorias::after {
  content: "✦ ✧ ✦";
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 24px;
  color: #5b4b8a;
}

.card-gigante::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: -20px;
  border-left: 4px dashed #5b4b8a;
}

.card-gigante::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: -20px;
  border-right: 4px dashed #5b4b8a;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  font-size: 18px;
}

/* RESPONSIVO */
@media (max-width: 768px) {

  .emoji-titulo {
    display: none;
  }

  .teorias {
    padding: 30px 15px;
  }

  .card-gigante {
    padding: 25px 15px;
  }

  .teorias h1 {
    font-size: 26px;
    padding: 10px 16px;
    margin-bottom: 25px;
    line-height: 1.3;
  }

  .cards-teoria {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card-teoria {
    width: 250px;
    min-height: 360px;
    padding: 18px;
  }

  .card-teoria img {
    max-width: 170px;
  }

  .card-teoria h2 {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .card-teoria p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* DECORAÇÕES NO CELULAR */
  .chapeu {
    width: 90px;
    top: -5px;
    right: -10px;
  }

  .livro {
    width: 90px;
    top: 20px;
    left: 10px;
  }

  .bussola {
    width: 70px;
    top: auto;
    bottom: 20px;
    left: 10;
  }

  .lupa {
    width: 70px;
    top: auto;
    bottom: 20px;
    right: 10;
  }

  .card-gigante::before,
  .card-gigante::after {
    display: none;
  }

  footer {
    font-size: 16px;
    padding: 15px;
  }
}