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


.animated-question path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw 2s linear infinite;
    transform-origin: left;
    margin-left: 200px;
}

@keyframes draw {
    0% {
        stroke-dashoffset: 200;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes draw {
    0% {
        stroke-dashoffset: 200;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 200;
    }
}

.rocket {
    font-size: 40px;
    display: inline-block;
    animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -20px) rotate(15deg);
    }

    50% {
        transform: translate(40px, -40px) rotate(0deg);
    }

    75% {
        transform: translate(20px, -20px) rotate(-15deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}


:root {
    --primary-color: #3a86ff;
    /* A vibrant blue */
    --secondary-color: #8338ec;
    /* A deep purple */
    --bg-color: #0d1117;
    /* GitHub Dark Mode Black */
    --card-bg: #161b22;
    /* Darker Card Background */
    --text-color-light: #c9d1d9;
    /* Light Text */
    --text-color-dark: #7c7c84;
    /* Subdued Text */
    --border-radius: 12px;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    color: var(--text-color-light);
    line-height: 1.6;
    background-image: radial-gradient(circle at 1px 1px, #213f85a5 1px, transparent 0);
    background-size: 30px 30px;
}

.doc-container {
    max-width: 900px;
    margin: 4rem auto 5rem;
    padding: 0 2rem;
}

.doc-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.doc-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.doc-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 3rem;
    transition: box-shadow 0.3s;
}

.doc-section:hover {
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.1);
}

.doc-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-color-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-section h2 i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.doc-sub-heading {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.doc-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.doc-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.doc-list {
    margin-left: 1.5rem;
    list-style: none;
}

.doc-list li {
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
}

.nested-list {
    list-style: disc;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 20px;
    color: var(--text-color-dark);
    font-size: 0.95rem;
}

/* --- Code Editor & Syntax Style --- */

pre {
    background: #0d1117;
    /* Same as body BG for depth */
    border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
    padding: 20px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid #21262d;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

pre code {
    color: #c9d1d9;
    /* Light text for code */
    font-family: Consolas, monospace;
    display: block;
    white-space: pre-wrap;
}

.code-title {
    color: var(--text-color-light);
    background: #21262d;
    padding: 8px 15px;
    /* border-radius: var(--border-radius) var(--border-radius) 0 0; */
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: -1px;
    display: inline-block;
}

.code-title i {
    color: #00979C;
    /* Arduino Blue/Green */
    margin-right: 5px;
}

/* Syntax colors (Updated to match the new dark theme vibe) */
.k-color {
    color: #ff7b72;
}

/* Keyword - red */
.fn-color {
    color: #62d0ff;
}

/* Function - light blue */
.str-color {
    color: #ffeb95;
}

/* String - yellow */
.num-color {
    color: #ffa3a3;
}

/* Number - pink */
.com-color {
    color: #8b949e;
}

/* Comment - muted gray */
.cst-color {
    color: #a58fff;
}

/* Constant/Define - purple */

/* Inline code styling */
.code-inline {
    font-family: Consolas, monospace;
    background: #21262d;
    padding: 2px 6px;
    border-radius: 4px;
    color: #62d0ff;
    /* Function color */
    font-size: 0.95rem;
}

.code-inline-str {
    font-family: Consolas, monospace;
    background: #21262d;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffeb95;
    /* String color */
    font-size: 0.95rem;
}

.code-inline-danger {
    font-family: Consolas, monospace;
    background: #490202;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ff7b72;
    /* Keyword color */
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 700px) {

    .doc-main-title {
        font-size: 2rem;
    }
}