body {
    background-color: #2c2c2e; /* soft charcoal background */
    color: #f1f1f1; /* light text */
}

.container {
    margin-left: auto; 
    margin-right: auto;
    margin-top: 20px; 
    width: 80%; 
    text-align: left;
}

#menu-image {
    margin-left: 20px;
    width: 40px;
    height: auto;
}

div.Algomap-menu {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 60px;
    gap: 10px;
    background-color: #3a3a3c; /* lighter than full black */
}

.Algomap-menu .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #f4f4f4;
}

div.toolbar {
    background-color: #3a3a3c;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.post-board-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff; /* a slightly softer green */
}

.container p {
    line-height: 1.6;
    font-size: 17px;
    margin-bottom: 18px;
    color: #dddddd;
    max-width: 900px;
}

/* Blog Post Container */
.blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #1d1d1e; /* card contrast, slightly lighter */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.75;
    font-size: 18px;
    color: #f1f1f1;
}

/* Post Title */
.post-title {
    color: #ffffff;
    font-size: 32px;
    margin-top: 0px;
    margin-bottom: 10px;
    font-weight: bold;
}

.post-auth {
    margin-top: 0px;
    margin-right: 20px;
    font-weight: bold;
}


.post-author {
  margin-right: 20px;
  font-weight: bold;
}

.post-date {
  color: #888;
}

.subheader {
    margin-top: 0px;
}
/* Post Content */
.post-body {
    font-family: "Roboto", "Arial", "sans-serif";
    font-size: 17px;
}

.post-body p {
    margin-bottom: 22px;
    line-height: 1.8;
    margin-top: 0px;
    color: #e2e2e2;
}

/* Headings */
.post-body h2,
.post-body h3 {
    color: #ffffff;
    margin-top: 36px;
    margin-bottom: 5px;
}

/* Links */
.post-body a {
    color: #79d2ff;
    text-decoration: underline;
    transition: color 0.3s;
}

.post-body a:hover {
    color: #7cff6c;
}

/* Inline code */
.post-body code {
    background: #4a4a4c;
    color: #00d8ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 15px;
}

/* Code blocks */
.post-body pre {
    background: #4a4a4c;
    color: #00d8ff;
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.6;
}

.bubble {
    background-color: #3d3d3f;
    border-radius: 14px;
    margin: 40px auto;
    padding: 0;
    max-width: 800px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.bubble:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    background-color: #474749;
}

.bubble-link {
    display: block;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

.post_container{
    margin-right: 30px;
}

figure{
    display: flex; 
    justify-content: center;
}
figure img {
    display: flex;
    margin: auto;
}


figure > pre.mermaid {
  width: 100%;
  height: auto;
}

.mermaid svg{
  width: 100%;
  display: flex;
  margin: auto;
}

.edgeLabel p{
    color: black;
}

.mermaid .edgeLabel {
    font-size: 16px;
    fill: white;
    width: 120%;
    letter-spacing: 0.5px;
}


@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .post-title {
        font-size: 26px;
    }

    .Algomap-menu .menu-title {
        display: none;
    }
    
    .bubble{
        margin: 20px auto;
    }
}

