:root {
    --bg-color: #4f4949;
    --text-color: #d9d9d9;
    --sidebar-bg: #627964;
    --sidebar-text: #ecf0f1;
    --sidebar-active-bg: #505f42;
    --accent-color: #758d6d;
    --border-color: #443a3a;
    --header-height: 55px;
    --sidebar-width: 260px;
    --font-family: 'Ubuntu-Title'}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.site-header {
    background-color: #4a524a;
    border-bottom: 10px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 100;
}

.header-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.search-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: 2rem;
}

#search-input {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.container {
    display: flex;
    padding-top: var(--header-height);
}

.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    position: fixed;
    top: var(--header-height);
    left: 0;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul ul {
    margin-left: 1rem;
    padding: 0.5rem;
    border-left: 1px solid #526050;
    background-color: #5b6d5b;
}

.sidebar nav li {
    margin: 0.5rem 0;
}

.sidebar nav a {
    color: var(--sidebar-text);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.sidebar nav a:hover {
    background-color: #5b6d5b;
}

.sidebar nav a.active {
    background-color: var(--accent-color);
    font-weight: 600;
}

.sidebar .nav-category {
    font-weight: 700;
    color: #ccc;
    margin-top: 1.5rem;
    padding: 0 0.8rem;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content {
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    width: calc(100% - var(--sidebar-width));
}

.content-section {
    display: block;
    padding-top: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-of-type {
    border-bottom: none;
}

.content h2, .content h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.content h2 { font-size: 2rem; }
.content h3 { font-size: 1.5rem; margin-top: 2.5rem; }

.content p, .content ul, .content ol, .content dl {
    margin-bottom: 1rem;
}

.content ul, .content ol {
    padding-left: 1.5rem;
}
.content ul{
    list-style-image: url(pot.gif);
    list-style-position: inside;
}
.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.content a:hover {
    text-decoration: underline;
}

.content code {
    background-color: #3a3333;
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.content pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.content dt {
    font-weight: bold;
    margin-top: 1rem;
}

.content dd {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.content .two-columns {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 20px;
}
.content .two-columns-equal {
    display: grid;
    grid-template-columns: 29% 42%;
}
.content img {
    border-radius: 10px;
    max-width: -webkit-fill-available;
    align-self: flex-start;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.button:hover {
    background-color: #f1fff0;
}

.button.button-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.button.button-primary:hover {
    background-color: #415138;
    border-color: #2e3729;
}

.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-left: var(--sidebar-width);
    border-top: 1px solid var(--border-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
}
.menu-toggle svg {
    stroke: var(--text-color);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 200;
        background-color: #627964;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
    
    .site-footer {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-title {
        flex-grow: 1;
        text-align: center;
    }
    .content .two-columns, .two-columns-equal {
        flex-direction: column; 
        grid-template-columns: 1fr; 
        display: flex;
    }
    .content img {
    width: auto;
    align-self: center;
    }
    .search-container {
        flex-grow: 2;
        margin-left: 0;
    }
    
}
