body {
    background-color: #24252B;
    /*top: 0; left: 0; width: 99%; height: 97%;
      position: absolute; display: table}*/
    margin: 0;
    padding: 0;
    color: #B9D9DC;
    font-size: 20px;
    font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
    line-height: 1.35;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

p {
    width: 100%;
    text-align: center;
    color: #B9D9DC;
    margin: 10px 0;
}

section {
    display: block;
    margin: 0 0 25px 0
}

a {
    text-decoration: none;
    color: #00ccff;
}

.navigation-bar {
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    background-color: #1e1e1e;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px; /* Rounded corners */
}

.navigation-bar a {
    font-size: 22px;
}

.navigation-bar a:hover {
    color: #fdff6c;
}

.navigation-bar a.active {
    color: #fafd39;
}

.about {
    display: block;
    margin: 20px auto;
    padding: 20px;
    text-align: justify;
    width: 60%;
    background: #1e1e1e;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.codeSection {
    display: block;
    margin: 0 auto;
    width: 75%;
    text-align: center;
    background: #222222;
}

header {
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    border-bottom: 2px solid #00FFFF;
    padding: 25px 0;
    margin: 0 0 5px 0
}

.list {
    display: flex;
    justify-content: space-evenly;
    align-items: center; /* Align items vertically */
    flex-wrap: wrap; /* Ensure it wraps on smaller screens */
}

div {
    display: flex;
    justify-content: center;
    align-items: center; /* Added for vertical alignment */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 2px 0 23px;
    text-align: center;
}

footer {
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    border-top: 2px solid #00FFFF;
    text-align: center;
    min-height: 125px;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
    color: #B9D9DC; /* Matches the body text color */
    text-align: center;
}

footer h4 {
    margin: 15px 0 10px;
    font-size: 18px;
    text-align: center;
    color: #00ccff; /* Social media header color */
}

.bottom-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.bottom-bar a {
    font-size: 16px;
    color: #00ccff;
    text-align: center;
}

a:hover,
.navigation-bar a:hover,
.bottom-bar a:hover {
    color: #fdff6c;
    transition: color 0.3s ease;
}

main {
    padding: 40px 0;
    background-color: #24252B;
    text-align: center;
}
/*
.container {
    width: 80%;
    margin: 0 auto;
}
*/
/* Content Section */
.content-section h1 {
    color: #B9D9DC;
    margin-bottom: 10px;
}

.content-section p {
    color: #B9D9DC;
    font-size: 18px;
    margin-bottom: 40px; /* Adds spacing between this and the posts */
}

h1 {
    text-align: center;
    color: #B9D9DC;
    margin-bottom: 20px;
}

#all-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 60px;
    justify-items: center;
}

.post-preview {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.post-preview:hover {
    transform: translateY(-10px);
}

.excerpt {
    color: #B9D9DC;
    font-size: 20px;
    line-height: 1.5;
    margin: 10px 0;
}

.read-more {
    color: #00ccff;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.read-more:hover {
    color: #fdff6c;
}

#recent-posts {
    display: table;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 00px auto;
}

.post-preview-index {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.post-preview-index:hover {
    transform: translateY(-10px);
}

.post-preview-index h2 {
    color: #B9D9DC;
}

.post-preview-index .excerpt {
    color: #B9D9DC;
    font-size: 18px;
}

.post-preview-index .read-more {
    color: #00ccff;
    text-decoration: none;
    font-weight: bold;
}

.post-preview-index .read-more:hover {
    color: #fdff6c;
}


@media (max-width: 768px) {
    .navigation-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #all-posts {
        grid-template-columns: 1fr;
    }

    .container {
        width: 90%;
    }
}