/* Reset de bază */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Paletă naturală */
:root {
  --bg: #f3eee9;
  --text: #2f2f2f;
  --accent: #7e9c8f;
  --btn-bg: #c2d4ca;
  --btn-text: #2d3b33;
}

/* Font de bază */
body {
  font-family: 'Georgia', serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* Pagina de titlu */
.cover {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('media/background_index.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

}

.cover-content {
  text-align: center;
  padding: 2rem;
}

.cover-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
  font-style: italic;
}

/* Grup de butoane */
.btn-group {
  display: flex;
  gap: 0.75rem; /* spațiu între butoane */
  flex-wrap: wrap; /* permite trecerea pe linia următoare pe ecrane mici */
  justify-content: center; /* opțional: centrează grupul */
}


/* Buton */
.btn {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent);
  color: #fff;
}

.author {
display:none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 50px;
  font-size: 1rem;
  user-select: none;
  pointer-events: none;
}

/* De aici incepe cartea */

/* Capitole */
.chapter {
  max-width: 700px;
  margin: 3rem auto 6rem auto;
  padding: 0 1rem;
}

.chapter h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.chapter p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Imagini în capitole */
.chapter-image {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
}

/* Navigare capitole */
.chapter-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--bg);
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.disabled {
  color: #aaa;
  pointer-events: none;
}




/* Cuprins */
.toc {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.toc h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.toc-list {
  list-style:  decimal inside;
  font-size: 1.1rem;
  line-height: 1.8;
}

.toc-list a {
  text-decoration: none;
  color: var(--text);
}

.toc-list a:hover {
  color: var(--accent);
}

.moc-list {
  display: block;
padding-top: 300 px;
  list-style:  inside;
  font-size: 1.1rem;
  line-height: 1.8;
}
.moc-list a {
  text-decoration: none;
  color: var(--text);
}

.moc-list a:hover {
  color: var(--accent);
}

.image-block {
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
}

.image-block img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-block figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}




blockquote {
  font-style: italic;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background-color: #f5f2ee;
  color: #444;
  max-width: 600px;
}




.footnotes {
  font-size: 0.9rem;
  color: #555;
  margin-top: 3rem;
  max-width: 700px;
  padding: 1rem;
  border-top: 1px solid #ccc;
}

.footnotes ol {
  margin-left: 1.2rem;
  padding-left: 0.5rem;
}

.footnotes li {
  margin-bottom: 0.5rem;
}

sup a {
  text-decoration: none;
  font-size: 0.8em;
}


/* Titluri secundare (h2) */
h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

/* Titluri tertiare (h3) */
h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #444;
}
