
@font-face {
    font-family: Syne;
    src: url(/fonts/Syne/Syne-VariableFont_wght.ttf);
}
@font-face {
    font-family: Space_mono;
    src: url(/fonts/Space_Mono/SpaceMono-Bold.ttf);
    src: url(/fonts/Space_Mono/SpaceMono-BoldItalic.ttf);
    src: url(/fonts/Space_Mono/SpaceMono-Italic.ttf);
    src: url(/fonts/Space_Mono/SpaceMono-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Prevents content-box sizing issues */
}

:root{
    --sand: #CCC3B1;
    --brown: #595244;
    --white: #FEFDFC;
}

body {
    background-color: var(--sand);
    color: var(--brown);
    font-family: Space_mono, monospace;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

h1, h1, h3 {
    font-family: Syne, sans-serif;
    font-weight: bolder;
}

h1 {
    text-transform: uppercase;
    padding: 1rem;
    width: fit-content
}

a {
    text-decoration: none;
    color: inherit
}

p {
    margin: 0;
}

.title {
    font-family: Syne, sans-serif !important;
    font-weight: bolder;
    font-size: 32px;
}

fieldset, legend {
    padding: 0; /* Remove browser-specific padding */
}

legend {
    font-weight: bolder;
    font-size: 3em;
    border-right: 20px solid var(--sand);
    border-left: 20px solid var(--sand);
    text-align: center;
    background-color: white;
    color: var(--brown);
    font-family: Syne;
    display: block;
    text-align: center;
    margin: 0 auto;
}

fieldset {
    color: white;
    text-align: left;
    width: 40vw;
    font-size: 1em;
    border: .25em solid var(--brown);
    padding: 1rem;
    margin-bottom: 1rem;
    line-height: 5vh;
    font-family: Space_mono;
}

.post-box-text {
    margin-top: 5rem;
    width: 40vw;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns content to the right */
    justify-content: flex-start; /* Positions it at the bottom */
    position: fixed; /* Fixes the position to the viewport */
    top: 1rem; /* Places the navbar at the bottom */
    left: 1rem; /* Positions it on the right side */
    padding: 1rem;
    background-color: var(--brown);
    padding: 15px;
    gap: 10px; /* Adds spacing between items */
    color: white;
    margin: auto;
}


.nav-container {
    flex-direction: column; /* Stacks links vertically */
    font-family: var(--body);
    font-size: 1.5rem;
}

nav a:hover {
    background-color: white;
    color: var(--brown);
}

.about {
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vh;
    margin: auto;
    gap: 0rem;
    font-family: var(--body);
    background-size: 60vw 60vh;
    background-repeat: no-repeat;
    background-position: 50%;
    font-weight: 500;
    font-size: 1.5vw; /* Based on root font size */
    padding: 2rem; /* Use fixed spacing for consistent appearance */
}

ul {
    list-style-type: none;
}

li {
    margin: 1vh 0;
}

/* Ensure the kente section stays contained */
.kente-container {
    display: flex;
    flex-direction: column;
    background-color: white; /* White box background */
    width: 100%; /* Ensure it spans the full width */
    padding: 2rem; /* Add padding inside the box */
    box-sizing: border-box; /* Include padding in width/height calculations */
    overflow: hidden; /* Prevent content from spilling out */
}

.portfolio-text {
    margin-top: 2rem; /* Add spacing below the iframe */
    max-width: 800px; /* Limit the width of the text for readability */
    line-height: 1.6; /* Improve readability with better spacing */
    word-wrap: break-word; /* Ensure long text doesn't overflow */
}


.hero-sections {
    font-size: 1vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 2rem;
    min-height: calc(100vh - 5rem); /* Subtract fixed elements if necessary */
}

.vl {
    border-left: 3px solid #595244;
    height: 500px;
}

@media (max-width: 1024px) {
    .hero-sections {
        flex-direction: column;
        margin: auto;
        justify-content: center;
        font-size: 1vh;
    }

    .nav-container {
        font-size: 1.2rem;
    }

    fieldset {
        width: 60vw;
        font-size: 1.5vh;
        line-height: 3.5vh;
        padding: 5vw;
    }

    .about {
        font-size: 2vh;
        padding: 1vh;
    }

    .vl{
        height: 0px;
    }
}