:root {
  --main-bg-color: #0a0a0a;
  --paper-color: #f5f5dc;
  --text-color: #333;
  --accent-color: #d4af37;
  --stamp-color: #8b0000;
  --censored-bg: #000;
  --header-bg: #e6e6cc;
}

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

body {
  background-color: var(--main-bg-color);
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  justify-content: center;
  padding: 20px;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 800px;
  background-color: var(--paper-color);
  color: var(--text-color);
  padding: 25px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zIguAAAAP0lEQVRIDUzOARZDQQgF0CwzZczQRtn/mtto8G/tIhvCbO1sDrFgHrVVE7kBqyJdwG9tE/I+U6PiZhPC/MrTN/aVPuNZ07YsAAAAAElFTkSuQmCC');
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zIguAAAAP0lEQVRIDUzOARZDQQgF0CwzZczQRtn/mtto8G/tIhvCbO1sDrFgHrVVE7kBqyJdwG9tE/I+U6PiZhPC/MrTN/aVPuNZ07YsAAAAAElFTkSuQmCC');
  opacity: 0.05;
  pointer-events: none;
}

.document-header {
  position: relative;
  margin-bottom: 30px;
  border-bottom: 2px solid #555;
  padding-bottom: 20px;
}

.document-stamp {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--stamp-color);
  color: white;
  padding: 5px 15px;
  transform: rotate(15deg);
  font-weight: bold;
  font-size: 1.2em;
  border: 2px solid #500;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.document-date {
  font-size: 0.9em;
  margin-bottom: 15px;
  text-align: right;
}

.document-intro {
  margin-bottom: 20px;
  font-size: 0.95em;
}

.censored {
  background-color: var(--censored-bg);
  color: var(--censored-bg);
  padding: 0 2px;
  user-select: none;
  margin: 0 2px;
}

.warning-box {
  border: 1px dashed #8b0000;
  padding: 10px;
  margin: 15px 0;
  background-color: rgba(139, 0, 0, 0.05);
  position: relative;
}

.metadata {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dotted #555;
}

.section-title {
  margin: 20px 0 10px 0;
  font-weight: bold;
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
}

.concept-definition {
  background-color: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--accent-color);
  padding: 10px;
  margin: 15px 0;
}

.mission-context {
  font-style: italic;
  margin: 15px 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px dashed #555;
}

.formula-highlight {
  text-align: center;
  margin: 15px auto;
  padding: 10px;
}

.historical-note {
  font-size: 0.85em;
  margin: 10px 0;
  padding: 8px;
  border: 1px dotted #777;
  background-color: rgba(139, 0, 0, 0.05);
}

.exercise-list {
  list-style-type: none;
}

.exercise-item {
  margin-bottom: 30px;
  border: 1px solid #777;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.4);
  position: relative;
}

.exercise-number {
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
}

.context {
  font-size: 0.8em;
  margin-bottom: 15px;
  font-style: italic;
  color: #555;
}

summary {
  cursor: pointer;
  background-color: var(--header-bg);
  padding: 8px;
  margin-top: 15px;
  border: 1px solid #999;
  font-weight: bold;
  transition: background-color 0.3s;
}

summary:hover {
  background-color: #d6d6b6;
}

.solution {
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #999;
  border-top: none;
}

.page-number {
  text-align: center;
  margin-top: 30px;
  font-size: 0.8em;
  color: #555;
  border-top: 1px solid #777;
  padding-top: 10px;
}

.footer-stamp {
  position: absolute;
  bottom: 50px;
  right: 30px;
  opacity: 0.3;
  transform: rotate(-20deg);
  font-weight: bold;
  font-size: 1.5em;
  color: var(--stamp-color);
  border: 2px solid var(--stamp-color);
  padding: 5px 15px;
  pointer-events: none;
}

/* Novo estilo para dicas dentro de details */
.hint-container {
  margin-top: 10px;
  margin-bottom: 10px;
}

.hint-container summary {
  background-color: #f0f0e0;
  font-weight: normal;
  font-size: 0.9em;
}

.hint {
  font-size: 0.9em;
  font-style: italic;
  margin: 10px 0;
  padding: 5px;
  border-left: 3px solid #777;
  background-color: rgba(0, 0, 0, 0.05);
}
