:root {
    --header-image: url("Assets/modifiedBanner.svg");
    --body-bg-image: url("Assets/pinkBackground.gif");
    --content: #c9a2e2;
}

/* @font-face {
    font-family: AtkinsenHyperlegible;
    src: url("/public/fonts/AtkinsonHyperlegible-Regular.ttf");
}

@font-face {
    font-family: AtkinsenHyperlegible;
    src: url("/public/fonts/AtkinsonHyperlegible-Bold.ttf");
    font-weight: bold;
}

@font-face {
    font-family: AtkinsenHyperlegible;
    src: url("/public/fonts/AtkinsonHyperlegible-Italic.ttf");
    font-style: italic;
}

@font-face {
    font-family: AtkinsenHyperlegible;
    src: url("/public/fonts/AtkinsonHyperlegible-BoldItalic.ttf");
    font-style: italic;
    font-weight: bold;
} */

body {
    font-family: "AtkinsenHyperlegible", sans-serif;
    margin: 0;
    background-color: #08031a;
    background-size: 65px;
    color: #4c4f69;
    background-image: var(--body-bg-image);
}

main {
    flex: 3 1 60%;
    width: 100%; /* Ensure main section takes up available space */
}

* {
    box-sizing: border-box;
}

#container {
    max-width: 900px;
    margin: 0 auto;
}

#container a {
    color: #8839eed64f5    font-weight: bold;
}

.code-block {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1em;
    margin: 1em 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
}

#header {
    width: 100%;
    background-color: #dc8a78;
    height: 150px;
    background-image: var(--header-image);
    background-size: 100%;
    border-radius: 20px;
    padding: 10px;
}

#navbar {
    height: auto; /* Remove fixed height */
    min-height: 40px; /* Set a minimum height */
    background-color: #dce0e8;
    border: 5px #8839ef dotted;
    border-radius: 20px;
    width: 100%;
    padding-bottom: 5px;
    margin-top: 10px;
}

#navbar ul {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
    padding-bottom: 10px;
}

#navbar li a {
    color: #8839ef;
    background-color: #e6e9ef;
    border: 1px solid #8839ef;
    border-radius: 10px;
    padding: 5px;
    font-weight: 800;
    text-decoration: none;
}

#navbar li a:hover {
    color: #8839ef;
    text-decoration: underline;
}

#flex {
    display: flex;
}

aside {
    background-color: #e6e9ef;
    border: 5px #8839ef dotted;
    border-radius: 20px;
    width: 200px;
    padding: 20px;
    font-size: smaller;
    margin: 10px;
}

main {
    background-color: #eff1f5;
    border: 5px #8839ef dotted;
    border-radius: 20px;
    flex: 1;
    padding: 20px;
    order: 2;
    margin: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

#leftSidebar {
    order: 1;

}

#rightSidebar {
    order: 3;
}

footer {
    background-color: #eff1f5;
    width: 100%;
    padding: 10px;
    text-align: center;
    border: 5px #dc8a78 dotted;
    border-radius: 20px;
    padding-bottom: 30px;
    margin: 5px;
}

h1 {
    color: #ea76cb;
}
h2 {
    color: #8839ef;
}
h3 {
    color: #d20f39;
}

h1 {
    font-size: 25px;
}

strong {
    color: #8839ef;
}

.box {
    background-color: #eff1f5;
    border: 1px solid #ed64f5;
    padding: 10px;
}

.blog-posts-container {
    background-color: #eff1f5;
    border: 3px dotted #ea76cb;  /* Pink border to match your h1 color */
    border-radius: 15px;         /* Rounded corners */
    padding: 15px;
    max-height: 300px;           /* Fixed height to enable scrolling */
    overflow-y: auto;            /* Vertical scrollbar when needed */
    margin: 15px 0;
}

.blog-posts-container ul {
    margin: 0;
    padding-left: 20px;
}

.blog-posts-container li {
    margin-bottom: 8px;
}

#topBar {
    width: 100%;
    height: 30px;
    padding: 5px;
    font-size: smaller;
    background-color: #939ab7;
}

.webring {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #000;
    padding: 10px;
}

.webring a {
    color: #00f;
    text-decoration: none;
    font-weight: bold;
}

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

.webring_center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.webring_previous,
.webring_next {
    flex: 1;
    text-align: center;
}

@media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }
    #navbar {
        padding: 5px; /* Reduce padding on mobile */
    }
    #navbar ul {
        flex-wrap: wrap;
    }
    #navbar li a {
        display: block; /* Make links full width */
        padding: 10px; /* Increase touch target size */
}
}
