/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #e6e6e6;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Ensure footer doesn't hide content */
}

/* Header Styles */
header {
    background-color: #4b0082;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 15px 15px;
}

header h1 {
    color: #fff;
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 5px #000;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #dda0dd;
    transform: scale(1.1);
}

/* Section Styles */
section {
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    text-align: justify;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Separate Purple Glow Effect for Each Section */
/* Chapter 1 */
#chapter1:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px 10px rgba(186, 85, 211, 0.6); /* Purple Glow */
}

/* Chapter 2 */
#chapter2:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px 10px rgba(186, 85, 211, 0.6); /* Purple Glow */
}

/* Chapter 3 */
#chapter3:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px 10px rgba(186, 85, 211, 0.6); /* Purple Glow */
}

/* Chapter 4 */
#chapter4:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px 10px rgba(186, 85, 211, 0.6); /* Purple Glow */
}

/* FAQ Section */
#faq:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px 10px rgba(186, 85, 211, 0.6); /* Purple Glow */
}

/* Troubleshooting Section */
#troubleshooting:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px 10px rgba(186, 85, 211, 0.6); /* Purple Glow */
}

/* Expandable Content Styling */
.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.details.expanded {
    max-height: 500px; /* Adjust for content size */
    opacity: 1;
}

/* Section Titles */
section h2 {
    color: #dda0dd;
    text-shadow: 1px 1px 3px #000;
    font-size: 2em;
    margin-bottom: 15px;
    text-align: center;
    cursor: pointer; /* Make clickable sections more intuitive */
}

/* Chapter Styles */
.chapter {
    padding: 30px;
    background-color: #333;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.chapter.visible {
    opacity: 1;
    transform: translateY(0);
}

pre {
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
}

/* Footer Styles */
footer {
    background-color: #4b0082;
    color: #e6e6e6;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 15px 15px 0 0;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 15px;
    }

    .chapter {
        padding: 20px;
    }

    footer {
        padding: 15px;
    }
}
