@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

/* Base styles */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #262626;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: #000;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 60px; /* Increased logo size */
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

header .main-page-link {
    color: #2b2a2a;
    text-decoration: none;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

header .main-page-link:hover {
    background-color: #e0e0e0;
}

/* Hamburger menu */
header .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

header .hamburger div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 3px 0;
}

/* Layout */
.container {
    display: flex;
    flex-direction: row;
    margin: 20px;
}

pre {
    background-color: #f4f6f8;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #ddd;
}

.sidebar {
    width: 550px;
    flex-grow: 1;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-right: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
    transition: transform 0.3s ease-in-out;
}

.sidebar.collapsed {
    transform: translateX(-250px);
}

.sidebar h2 {
    font-size: 18px;
    color: #000;
    margin-bottom: 15px;
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 12px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #1f1f1f;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    background-color: #f8f9fa;
    color: #000;
    font-weight: 500;
}

/* Main content */
.content {
    flex-grow: 1;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content h2 {
    font-size: 20px;
    color: #000;
    margin-bottom: 15px;
    font-weight: 600;
}

.content p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
    color: #2b2a2a;
}

.content ul {
    list-style: disc inside;
    margin-left: 20px;
    font-size: 15px;
    color: #2b2a2a;
}

.content ul li {
    line-height: 1.7em;
    font-size: 15px;

}

.model-section {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* Mermaid diagrams */
.mermaid {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mermaid:hover {
    transform: scale(1.05); /* Slightly enlarges the element */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Enhances shadow for a floating effect */
}
/* Footer */
footer {
    background-color: #fff;
    color: #121212;
    text-align: center;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 40;
        left: 0;
        height: 100%;
        z-index: 1000;
        transform: translateX(-250px);
        display: none;
    }
    .content ul {
        list-style: disc inside;
        margin-left: -20px;
        font-size: 14px;
        color: #2b2a2a;
    }
    
    .sidebar.collapsed {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .content {
        margin-top: 60px;
    }
}
