/* Estilos gerais */
/* Estilos gerais */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Wrapper para todo o conteúdo exceto o footer */
.content-wrapper {
  flex: 1 0 auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  
  position: sticky;
  top: 0;
  
  width: 100%;
  z-index: 1000;
  background-color: #fff; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
  box-sizing: border-box;
}

.logo {
  width: 100px;
  height: auto;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  color: lightcoral;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: -1;
}

.text-light {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
}

/* Navegação */
nav {
  margin-left: auto;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

/* Imagem centralizada */
picture {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}


.capa {
  width: clamp(250px, 80%, 400px);
  height: auto;
  margin-top: -3em; 
}

.livro {
  margin-top: -8em;
  margin-bottom: -5em;
}

.ilustracao {
  margin-top: -6em;
  height: 400px;
  width: auto;
}

/* Seções */
main {
  padding: 0 20px;
}

section {
  padding-bottom: 5rem;
  margin-bottom: 40px;
}

.light {
  background-color: #F6F5F2;
}

p, h3 {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.autor {
  margin-bottom: 20px;
}

.nome-autor {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.titulacao-autor {
  font-size: 0.9em;
  line-height: 1.4;
  color: #555;
}

h2 {
  font-size: 1.5em;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  color: lightcoral;
  margin-bottom: 15px;
  text-align: center;
  padding-top: 1.5rem;
}

.center {
  text-align: center;
}

.videos-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.video-link, .autoavaliacao-link {
  margin-bottom: 10px;
}

.chapter {
  font-weight: bold;
  margin-right: 10px;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #000000;
  color: #333;
  padding: 5px 0;
  text-align: center;
  flex-shrink: 0;
}

.footer_img {
  width: 150px;
  height: auto;
}

/* Estilos para a autoavaliação */
.quiz-container {
  max-width: 800px;
  margin: 2rem auto;
  font-family: 'Montserrat', sans-serif;
}

.question-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.question-header {
  display: flex;
  padding: 1rem;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.question-number {
  background-color: lightcoral;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

.question-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.options-container {
  padding: 1rem;
}

.option {
  margin-bottom: 0.7rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
}

.option:hover {
  background-color: #f0f7ff;
}

.option input[type="radio"] {
  margin-right: 10px;
  flex-shrink: 0;
}

.option label {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1rem;
  width: 100%;
}

.option-letter {
  display: inline-block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #e0e0e0;
  text-align: center;
  line-height: 25px;
  margin-right: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

.feedback {
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 4px;
  display: none;
}

.feedback.correct {
  background-color: #e6f7e6;
  color: #2e7d32;
  display: block;
}

.feedback.incorrect {
  background-color: #ffebee;
  color: #c62828;
  display: block;
}

.quiz-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: lightcoral;
  color: white;
}

.btn-primary:hover {
  background-color: #005f92;
}

.btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #d0d0d0;
}

.score-display {
  margin-left: auto;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Estilos para opções corretas e incorretas */
.option.correct {
  background-color: #e6f7e6;
}

.option.incorrect {
  background-color: #ffebee;
}