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

html,
body {
    height: 100%;
}

main ol, main ul
{
    padding-left: 2rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    font-size: 15px;
    display: flex;
    flex-direction: column;
}

header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.btn-back,
.btn-prev,
.btn-next {
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1.2rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-back:hover,
.btn-prev:hover,
.btn-next:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.btn-back:disabled,
.btn-prev:disabled,
.btn-next:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.flowchart-container {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 10px;
    overflow-x: auto;
}

.flowchart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-step {
    flex-shrink: 0;
    cursor: pointer;
}

.flow-node {
    background: #fff;
    border: 2px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    min-width: 140px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.15s ease;
}

.flow-step:hover .flow-node {
    border-color: #0d6efd;
    color: #0d6efd;
}

.flow-step.active .flow-node {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.flow-arrow {
    color: #adb5bd;
    font-size: 1.2rem;
    flex-shrink: 0;
}

main {
    flex: 1;
    padding: 3rem 2rem;
    overflow-y: auto;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.slides-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
}

.slide {
    display: none;
    animation: fadeIn 0.3s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
}

.slide-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #495057;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    margin-right: 1rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.slide-title {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.subtitle-badge {
    font-size: 0.85rem;
    background: #e9ecef;
    color: #495057;
    padding: 0.35rem 0.65rem;
    border-radius: 0.25rem;
    margin-left: 0.8rem;
    font-weight: 500;
}

.slide-description {
    margin: 1.5rem 0;
    line-height: 1.7;
}

.slide-description p {
    margin-bottom: 1rem;
    color: #495057;
}

.slide-description h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 1.5rem 0 0.8rem 0;
}

.slide-description ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.slide-description li {
    margin-bottom: 0px;
    color: #495057;
}

code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.command-box {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.375rem;
}

.command-box .label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.command-box code {
    display: block;
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    color: #212529;
}

.command-box pre {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin-top: 0.5rem;
}

.command-box pre code {
    background: none;
    padding: 0;
    border: none;
    color: #212529;
    font-size: 13px;
    line-height: 1.5;
}

.visual-area {
    margin: 2rem 0;
}

.file-tree {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.file-tree h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.tree-item {
    padding: 0.4rem 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #495057;
}

.tree-item.indent-1 {
    padding-left: 1.5rem;
}

.tree-item.indent-2 {
    padding-left: 3rem;
}

.file-unchanged {
    color: #6c757d;
    font-size: 13px;
}

.status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.status.modified {
    background: #f8d7da;
    color: #721c24;
}

.status.staged {
    background: #d1ecf1;
    color: #0c5460;
}

.status.committed {
    background: #d4edda;
    color: #155724;
}

.git-status {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.git-status h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.status-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.status-section:last-child {
    margin-bottom: 0;
}

.status-section h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.8rem;
}

.status-section p {
    font-size: 14px;
    color: #495057;
}

.files {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 0.25rem;
    border-left: 3px solid #0d6efd;
}

.files div {
    font-size: 14px;
    color: #212529;
    margin-bottom: 0.4rem;
    font-family: 'Courier New', monospace;
}

.text-small {
    font-size: 13px;
}

.text-faded {
    color: #6c757d;
}

.note-info {
    font-size: 13px;
    color: #495057;
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: #fff;
    border-left: 3px solid #0d6efd;
    border-radius: 0.25rem;
}

.info-box {
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
    border-left: 4px solid #0d6efd;
    background: #cfe2ff;
    color: #084298;
}

.info-box p {
    font-size: 14px;
    color: #084298;
}

.info-box code {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0.4rem;
    color: #0c63e4;
}

.git-graph {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.git-graph h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.git-graph div {
    color: #495057;
    font-size: 14px;
    margin-bottom: 1rem;
}

.git-graph ul {
    margin-left: 2rem;
}

.git-graph li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.commit-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.8rem;
    font-size: 13px;
}

.commit-dot {
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 50%;
    flex-shrink: 0;
}

.commit-hash {
    font-family: 'Courier New', monospace;
    color: #6c757d;
    font-weight: 600;
    min-width: 70px;
}

.commit-message {
    color: #212529;
    flex: 1;
}

.commit-branch {
    background: #e9ecef;
    color: #495057;
    padding: 0.35rem 0.65rem;
    border-radius: 0.25rem;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.commit-line.previous .commit-dot {
    background: #adb5bd;
}

.legend {
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 2rem;
}

.legend h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legend-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 13px;
    color: #495057;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-dot.modified {
    background: #f8d7da;
    border: 1px solid #721c24;
}

.legend-dot.staged {
    background: #d1ecf1;
    border: 1px solid #0c5460;
}

.legend-dot.committed {
    background: #d4edda;
    border: 1px solid #155724;
}

.notes-aside {
    flex: 0 0 25%;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
    background: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 1.5rem;
}

.notes-aside h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.notes-aside h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
}

.note-item {
    display: none;
    background: #cfe2ff;
    padding: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid #0d6efd;
    margin-bottom: 1.5rem;
    color: #084298;
}

.note-item.active {
    display: block;
}

.note-item ul {
    margin-left: 1.5rem;
}

.note-item li {
    margin-bottom: 0.5rem;
    font-size: 14px;
    line-height: 1.5;
}

.note-item p {
    font-size: 14px;
    line-height: 1.6;
}

.note-item code {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.2rem 0.4rem;
    color: #0c63e4;
}

.full-width {
    margin-left: 0;
    margin-right: 0;
}

.section-github {
    margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    h1 {
        font-size: 1.4rem;
    }

    .header-nav {
        width: 100%;
        flex-direction: column;
    }

    .btn-back,
    .btn-prev,
    .btn-next {
        width: 100%;
        text-align: center;
    }

    .flowchart {
        gap: 0.5rem;
    }

    .flow-node {
        min-width: 110px;
        padding: 0.8rem 1rem;
        font-size: 13px;
    }

    .flow-arrow {
        font-size: 1rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .slides-container {
        padding-right: 0;
    }

    .notes-aside {
        flex: none;
        position: static;
        max-height: none;
        border-left: none;
        border-top: 1px solid #dee2e6;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

.pull-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.repo {
    background: #fff;
    border: 2px solid #dee2e6;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    min-width: 200px;
}

.repo.remote {
    background: #e3f2fd;
    border-color: #2196f3;
}

.repo.local {
    background: #f3e5f5;
    border-color: #9c27b0;
}

.arrow {
    font-size: 1.5rem;
    color: #495057;
    font-weight: 600;
}