body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Gothic A1', 'Century Gothic', Arial, sans-serif;
    background: linear-gradient(135deg, #9333EA, #6366F1);
    padding: 0 2rem 2rem 2rem;
    overflow-x: hidden;
    max-width: 100vw;
}

.module-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.header {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
}

.chapter-navigation {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 2rem auto;
}

.button-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    margin: 1.5rem auto;
    background: #F3F4F6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.slider-container, .bottom-slider-container {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0 auto 1rem auto;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    outline: none;
    border-radius: 2px;
    margin: 0.5rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #7C3AED;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    background: #6D28D9;
}

.chapter-indicator {
    color: #4B5563;
    font-size: 0.75rem;
    margin: 0;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    width: 200px;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background: #6D28D9;
}

.nav-button:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* Blog post styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    counter-reset: section;
}

.post-section {
    position: relative;
    padding: 1.5rem 0;
}

.post-section h2 {
    color: #1F2937;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    counter-increment: section;
}

.post-section-no-counter h2 {
    color: #1F2937;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-section h2::before {
    content: counter(section) ". ";
}

.post-section p {
    color: #4B5563;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.post-section:not(:last-child)::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #E5E7EB;
    position: absolute;
    bottom: 0;
    left: 0;
}

h1 {
    font-size: 2rem;
    color: #1F2937;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Quiz styles */
.quiz-container {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.quiz-question {
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
}

.quiz-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
}

.quiz-feedback.correct {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #31C48D;
}

.quiz-feedback.incorrect {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #F98080;
}

.submit-answer {
    background-color: #7C3AED;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

.submit-answer:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    body {
        padding: 0.75rem;
    }

    .module-container {
        padding: 1rem;
        width: 100%;
        max-width: calc(100vw - 1.5rem);
        margin: 0.5rem auto;
        box-sizing: border-box;
    }

    .button-container {
        width: 100%;
        padding: 1rem;
        margin: 1rem 0;
        flex-direction: column;
        gap: 0.75rem;
        box-sizing: border-box;
    }

    .nav-button {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 0.875rem;
        box-sizing: border-box;
    }

    .post-section {
        padding: 1.25rem 0.5rem;
    }

    .post-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
        line-height: 1.4;
    }

    .post-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.875rem;
    }

    .achievement-box,
    .setup-checklist {
        padding: 1rem;
        margin: 0.75rem 0;
        border-radius: 0.5rem;
    }

    .quiz-container {
        padding: 1rem;
    }

    .quiz-options label {
        padding: 0.875rem;
        margin: 0.5rem 0;
        background: #F3F4F6;
        border-radius: 0.5rem;
        display: block;
    }

    .quiz-options input[type="radio"] {
        margin-right: 0.75rem;
        transform: scale(1.2);
    }

    .chapter-indicator {
        font-size: 0.875rem;
        margin: 0.5rem 0;
        color: #4B5563;
    }

    .blog-post,
    .post-section,
    .quiz-container,
    .achievement-box,
    .setup-checklist {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    body {
        padding: 0.5rem;
    }

    .module-container {
        padding: 0.75rem;
        max-width: calc(100vw - 1rem);
    }

    .button-container {
        padding: 0.75rem;
    }

    .nav-button {
        padding: 0.75rem;
    }

    .post-section {
        padding: 1rem 0.375rem;
    }

    .slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Add new banner styles */
.header-banner {
    background: linear-gradient(135deg, #2f2b7d, #7C3AED);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.banner-icon {
    width: 50px;
    height: auto;
    border-radius: 50%;
}

.header-banner h1 {
    text-align: left;
    color: white;
    font-family: monospace;
    margin: 0;
    font-size: 2rem;
}

/* Code block styles */
pre code {
    display: block;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

pre code::before {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #555;
}

pre code.language-python {
    border-left: 4px solid #3572A5; /* Python blue */
    background-color: #f0f8ff; /* Light blue background */
    color: #333; /* Text color */
    font-family: 'Courier New', Courier, monospace; /* Font */
    padding: 1rem; /* Padding */
    border-radius: 0.5rem; /* Rounded corners */
    overflow-wrap: break-word; /* Wrap text */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow */
    margin-bottom: 1rem; /* Margin */
}

pre code.language-bash {
    border-left: 4px solid #4E9A06; /* Bash green */
}

/* Add styles for the checklist */
.checklist-container {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: #374151;
    transition: color 0.2s, text-decoration 0.2s, opacity 0.2s;
}

.checklist-item input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: #7C3AED;
    flex-shrink: 0;
}

.checklist-item span {
    transition: text-decoration 0.2s, opacity 0.2s;
}

.checklist-item span a {
    color: #7C3AED;
    text-decoration: underline;
    transition: color 0.2s;
}

.checklist-item span a:hover {
    color: #6D28D9;
}

.checklist-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Hyperlink styles */
a {
    color: #7C3AED; /* Primary color for links */
    text-decoration: none; /* Remove underline */
    font-weight: 500; /* Slightly bold */
    transition: color 0.2s, text-decoration 0.2s; /* Smooth transition */
}

a:hover {
    color: #6D28D9; /* Darker shade on hover */
    text-decoration: underline; /* Underline on hover */
}

/* Add styles for the Join Discord button */
.join-discord-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #7C3AED; /* Purplish color */
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
    margin: 1rem auto; /* Centered with margin top and below */
}

.join-discord-button:hover {
    background-color: #6D28D9; /* Darker purplish on hover */
}
