* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    display: grid;
    grid-template-columns: 200px 1fr;
    /* Sidebar width, main content takes remaining space */
    grid-template-rows: auto 1fr auto;
    /* Header, Main, Footer heights */
    grid-template-areas:
        "header header"
        "sidebar main"
        "footer footer";
    min-height: 100vh;
    /* Optional: forces grid to fill screen height */
    gap: 10px;
    /* Optional: adds space between items */
    background-color: #f0f0f0;
}

header {
    grid-area: header;
    background-color: #292929;
    color: tomato;
    padding: 10px 20px;
}

aside {
    width: auto;
    grid-area: sidebar;
    background-color: #f0f0f0;
}

#main {
    grid-area: main;
    background-color: #f0f0f0;
}

footer {
    grid-area: footer;
    background-color: #333;
    color: white;
}

#desktop-nav {
    position: fixed;
    top: 60px;
    /* Adjust based on header height */
    left: 0;
}

#mobile-nav {
    display: none;
}

.diagram {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.diagram img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.network-diagram {
    width: 100%;
    object-fit: contain;
}

section {
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    background-color: white;
    margin-bottom: 20px;
    border-radius: 5px;
}

h2 {
    margin-bottom: 10px;
}

p {
    text-indent: 10px;
}

ol,
li {
    padding: 5px 10px;
}

.p-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: beige;
    padding: 10px 10px;
    border-radius: 5px;
}

label {
    display: block;
    background-color: rgb(233, 233, 233);
    padding: 10px 10px;
    border-radius: 5px;
}

.flow {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.flowchart {
    width: 100%;
    max-width: 700px;
    height: auto;
}
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "sidebar"
            "main"
            "footer";
    }

    #desktop-nav {
        display: none;
    }

    #mobile-nav {
        display: block;
        text-align: center;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}