:root {
    --color1: #1c1c1c;
    --color2: #2c2c2c;
    --color3: #4c4c4c;
    --color4: #5d5d5d;
    --color5: #aaaaaa;
    --color6: #daddd8;
    --color7: #ecebe4;
    --color8: #eef0f2;
    --color9: #fafaff;
}

.content-container {
    width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 1.225rem;
    background-color: var(--color7);
    color: var(--color2);
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    padding: 10px;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1.3px solid var(--color4);
    color: var(--color4); /* Light text for contrast */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

/* Styles for the name and title section */
.nav-name {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
}

.nav-name h1 {
    margin: 0;
}

.nav-name p {
    margin: 0;
}

h1 {
    font-weight: 700;
    font-size: 2rem;
    color: var(--color2);
}

h2 {
    font-weight: 400;
    text-decoration: underline;
    font-size: 1.4rem;
    color: var(--color3);
}

h3 {
    font-weight: 370;
    text-decoration: underline dotted;
    font-size: 1.2rem;
    color: var(--color4);
}

a {
    transition: color 0.3s ease;
}

a:link {
    color: var(--color2);
}

a:visited {
    color: var(--color2);
}

a:hover {
    color: var(--color3);
}

p {
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--color4);
}

i {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--color4);
}

b {
    font-weight: 400;
}

strong {
    font-weight: 460;
}

code:not([class^="language-"]) {
    font-family: Consolas, Monaco, "Andale Mono", monospace;
    border-radius: 5px;
    padding: 4.5px;
    margin: 3px;
    display: inline-block;
    background-color: var(--color6);
}

table {
    border-collapse: collapse; /* removes space between cells */
    margin: 0 auto;
}

td {
    padding: 10px 20px;
}

th {
    text-align: left;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tbody tr:first-of-type {
    border-top: 2px solid var(--color4);
}

tbody tr:last-of-type {
    border-bottom: 2px solid var(--color4);
}

/* Styles for the navigation links section */
.nav-elements {
    display: flex;
    gap: 1rem; /* Space between the navigation items */
}

.nav-item {
    text-decoration: none;
    color: var(--color2); /* A muted color for the links */
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--color3); /* Hover color for interactivity */
}

.footer-elements {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 0;
}

.footer-elements svg {
  width: 32px;
  height: 32px;
  fill: var(--color2);
}

.footer-elements a {
  text-decoration: none;
}

img {
    display: block;
    margin: 0 auto;
}

/* Container for all posts */
.box {
  width: 70%; /* 30% total margin (15% on each side) */
  margin: -1px auto; /* Centers the box horizontally */
  border-top: 1px solid var(--color2); /* Thin top border */
  border-bottom: 1px solid var(--color2); /* Thin bottom border */
  padding: 20px; /* Add some padding so content isn't right against the borders */
}

/* General styling for the text within the box */
.box > * {
  text-align: left; /* Aligns all text to the left */
}

@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-name {
        margin-bottom: 1rem;
    }

    .nav-elements {
        flex-direction: column;
        gap: 0.5rem;
    }
}