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

body {
    background: url('assets/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Merriweather', serif;
    color: #e0dfdc;
    overflow-x: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(15, 14, 23, 0.95);
    border-bottom: 2px solid #7c6f58;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    width: 80px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

header h1 {
    font-size: 3.5em;
    font-family: 'Cinzel', serif;
    color: #b8860b;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

header p {
    font-size: 1.3em;
    color: #e4ded8;
    font-style: italic;
    margin-top: 10px;
}

/* Sections */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

section {
    background-color: rgba(15, 14, 23, 0.85);
    border-radius: 10px;
    padding: 20px;
    max-width: 900px;
    width: 90%;
    margin: 20px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* Volume and Chapter Titles */
h2, h3 {
    color: #f0a500;
    font-size: 2.4em;
    font-family: 'Cinzel', cursive;
    margin-bottom: 20px;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

h2 {
    color: #b8860b;
    margin-bottom: 25px; /* Aumentamos margen con el botón de regreso */
}

h3 {
    color: #d4a76a;
}

/* Volume and Chapter Lists */
.volume-list, .title-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 25px;
    gap: 20px;
    justify-content: center;
}

.volume, .title {
    cursor: pointer;
    width: 180px;
    color: #e0dfdc;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: rgba(35, 35, 45, 0.85);
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.volume img, .title img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

.volume:hover, .title:hover {
    transform: scale(1.05);
    background-color: rgba(92, 84, 76, 0.8);
    box-shadow: 0px 8px 20px rgba(184, 134, 11, 0.5);
}

.volume img:hover, .title img:hover {
    transform: scale(1.08);
}

/* Volume and Chapter Descriptions */
.volume-description, .chapter-description {
    padding: 0 20px;
    color: #d8d2cc;
    font-size: 1.1em;
    line-height: 1.6;
    font-family: 'Merriweather', serif;
    text-align: justify;
}

/* Video Section */
.video-centered {
    margin-top: 25px;
    margin-bottom: 20px;
}

.video-centered iframe {
    width: 100%;
    max-width: 640px;
    height: 360px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
    padding: 20px;
    background-color: rgba(15, 14, 23, 0.95);
    color: #b8860b;
    text-align: center;
    font-size: 0.9em;
    border-top: 2px solid #7c6f58;
}

footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e4ded8;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f0a500;
}

/* Buttons */
button.back-button {
    background-color: #7c6f58;
    color: #f5f5f5;
    margin-top: 25px;
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.back-button:hover {
    background-color: #b8860b;
}