@font-face { 

    font-family: 'Agency FB'; 
    src: url('/pages/media/fonts/AGENCYR.TTF') 
    format('truetype');

}

html {
    scroll-behavior: smooth;
}

:root {

    --header-line-color: #a35b68;
    --left-rect-column-width: 210px;

    /* --background-color: #312127; */
    --background-color: #312023;
    --section-color: #1b1218;
    --text-color: #f2d8e2;

    --img-margin: 120px;

}

@font-face { 

    font-family: 'Lexend'; 
    src: url('/pages/media/fonts/Lexend.ttf') 
    format('truetype');

}

@font-face { 

    font-family: 'United'; 
    src: url('/pages/media/fonts/united-sans-9.otf') 
    format('opentype');

}

@font-face { 

    font-family: 'United-serif'; 
    src: url('/pages/media/fonts/united-serif-6.otf') 
    format('opentype');

}

@font-face { 

    font-family: 'Quantico-bold'; 
    src: url('/pages/media/fonts/Quantico-Bold.ttf') 
    format('truetype');

}

@font-face { 

    font-family: 'Quantico-regular'; 
    src: url('/pages/media/fonts/Quantico-Regular.ttf') 
    format('truetype');

}

header {

    width: auto;

}

a {

    text-decoration: none;
    color: inherit;

}

.linkText {

    width: 100%;
    height: 100%;

}

body {

    background-color: var(--background-color);
    color: var(--text-color);
    font-family : Quantico-bold, Lexend, Agency FB;
    font-size: 20pt;
    width: auto;
    z-index: 1;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;

}

body::before {

    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--left-rect-column-width);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    background-repeat: repeat-y;
    background-size: var(--left-rect-column-width) 352px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='352' viewBox='0 0 210 352'%3E%3Crect x='0' y='0' width='64' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='44' width='148' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='88' width='95' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='132' width='176' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='176' width='122' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='220' width='84' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='264' width='160' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='308' width='110' height='22' fill='%23a35b68'/%3E%3C/svg%3E");

}

body::after {

    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--left-rect-column-width);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    background-repeat: repeat-y;
    background-size: var(--left-rect-column-width) 352px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='352' viewBox='0 0 210 352'%3E%3Crect x='0' y='0' width='64' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='44' width='148' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='88' width='95' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='132' width='176' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='176' width='122' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='220' width='84' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='264' width='160' height='22' fill='%23a35b68'/%3E%3Crect x='0' y='308' width='110' height='22' fill='%23a35b68'/%3E%3C/svg%3E");
    transform: scaleX(-1);

}

body > * {

    position: relative;
    z-index: 1;

}

.hidden {

    display: none;

}

/* .lightMode {
    
        background-color: var(--text-color);
        color: #1f171b;

}


.darkMode {

    background-color: #1f171b;
    color: var(--text-color);

} */

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    filter: blur(.5px) brightness(2);
    pointer-events: none;
    z-index: -1;
    opacity: 40%;
    transition: opacity 0.1s ease-in-out;
    visibility: visible;
}

div {

    display:flex;
    width: 100%; 
    margin: 5px;
    white-space: nowrap;

}

.headerText {

    justify-content: flex-end; 
    /* margin-right: 30px; */
    margin-top: 10px;
    width: auto;
    

}

.lineHolder {

    width: 100%;
    height: 50px;
    margin-left: 15px;
    margin-right: 100px;
    font-family: Quantico-bold;

}

.textHolder {

    font-size: 18pt;
    width: 100%;
    margin-left: 30px;
    margin-right: 100px;
    margin-top: 15px;
    justify-content: space-between;
    font-family: lexend;

}

.textHolder > div {

    width: auto;

}

.titleText {

    width: 100%;
    margin: 0;
    white-space: inherit;
    text-align: left;
    justify-content: left;
    z-index: 1;
    font-size: 26pt;
    font-weight: bold;
    font-family: Quantico-Bold;

}

.sectionText {

    width: 100%;
    margin: 0;
    padding: 5px 0px 30px 30px;
    white-space: inherit;
    text-align: left;
    justify-content: left;
    z-index: 1;
    font-size: 26pt;
    font-weight: bold;

}

section {
    background: var(--section-color);
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
    display: flex;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 10px auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* border-radius: 4px; */
    padding: 30px 40px;
}

section.hero-section {
    /* min-height: 150px; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 40px;
    font-family: Quantico-bold;
}

section.content-section {
    background: var(--section-color);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* padding: 30px 20px 40px 20px; */
    min-height: auto;
    font-family: Lexend;
}

.section-text {

    margin-bottom: 10px;
    margin-top: 10px;


}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    margin: 0;
    padding: 0 20px;
}

.toc-link {
    font-size: 18pt;
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid rgba(163, 91, 104, 0.3);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.toc-link:hover {
    color: #a35b68;
}

section.padding {
    height: 30px;
    background: transparent;
    box-shadow: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

section.header-section {
    background: var(--section-color);
    padding: 2px 0px;
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
}

section.header-section .topHeader {
    width: 100%;
    padding: 0px 50px 0px 50px;
    box-sizing: border-box;
}



section.header-section .lineHolder {
    width: calc(100% - 35px);
}

section.header-section .textHolder {
    width: calc(100% - 50px);
}

section.footer-section {
    background: var(--section-color);
    padding: 20px 40px;
    margin: 0;
    margin-top: 30px;
    width: 100%;
    max-width: none;
    border-radius: 0;
}

.bodyText {

    width: auto;
    font-size: 18pt;
    margin: 0;
    white-space: inherit;
    text-align: left;
    justify-content: left;
    z-index: 1;
    line-height: 2;
    padding-left: 20px;

}

.padding {

    height: 50px;

}

.imgHolder {

    flex-direction: column;
    height: auto;
    width: 100%;
    margin: 0;

}

.imgLine {

    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    width: 100%;
    height: auto;

}

.imgLeft {

    margin-left: 20px;
    width: 50%;
    display: flex;

}


.imgRight {

    margin-right: 20px;
    width: 50%;
    display: flex;

}

.imgCenter {

    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    justify-content: center;

}



.portfolioimg {

    display: block;
    object-fit: cover;
    justify-content: center;
    width: 100%;
    height: auto;
    max-width: 100%;

}

.processing {

    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0px;
    margin-left: 100px;
    margin-right: 100px;
    aspect-ratio: 1 / 1;

}

.processingColor {

    border: 5px solid var(--text-color);
    margin: 0px 100px 0px 100px;
    /* aspect-ratio: 1 / 1; */

}

.line {

    color: var(--header-line-color);
    height: 10px; /* Thickness of the line */
    border: transparent;
    border-top: 5px solid;
    border-bottom: 5px solid;
    width: 100%;
    margin: 20px 20px 20px 20px; /* Spacing around the line */

}

.horline {

    color: var(--header-line-color);
    width: 10px;
    border: transparent;
    border-right: 5px solid;
    height: 80px;
    padding: 5px 0px 5px 0px

}


.footer {

    display: flex;
    justify-content: center;
    font-size: 15pt;
    margin-top: 20px;
    width: 100%;

}

.footerText {

    font-size: 18pt;
    flex-direction: column;
    align-items: center;
    width: 20%;

}


.logo-top {

    display: flex;
    height: 90%;
    max-width: 150px;
    max-height:130px;
    margin-left: 10px;
    padding-right: 140px;
    padding-top: 5px;;

}

.logo-bottom {

    display: flex;
    height: 90%;
    max-width: 140px;
    max-height:130px;
    margin-left: 0px;

}

.sketch-section {
    padding: 0;
}

#sketch-container {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    white-space: normal;
}

#sketch-container canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
}

.fullscreen-img {

    width: 100%;
    height: 100%;
    object-fit: contain;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #1c1720;
    z-index: 9999;

}

.fullscreen-caption-bar {

    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.45);
    color: var(--text-color);
    font-size: 14pt;
    padding: 12px 20px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin: 0;
    box-sizing: border-box;
    white-space: normal;

}

.fullscreen-caption-bar.visible {

    opacity: 1;

}

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
}

@media (min-width: 1050px) {

    .imgLeft {

        margin-left: var(--img-margin);
    
    }
    
    
    .imgRight {
    
        margin-right: var(--img-margin);
    
    }
    
    .imgCenter {

        margin-left: var(--img-margin);
        margin-right: var(--img-margin);

    }

    .processing {

        margin-left: var(--img-margin);
        margin-right: var(--img-margin);

    }

    .processingColor {

        margin: 0px 190px 0px 190px;
        margin-top: 0px;

    }

    .footerText {

        width: 10%;
    
    }

}
  

@media (max-width: 700px) {

    body::before {
        opacity: 0.0;
    }

    body::after {
        opacity: 0.0;
    }

    /* Hamburger menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 100;
        position: absolute;
        right: 15px;
        top: 18px;
    }

    .hamburger-line {
        display: block;
        width: 28px;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .textHolder {
        display: none !important;
        flex-direction: column !important;
        align-items: flex-start;
        background: var(--section-color);
        width: calc(100% + 10px) !important;
        margin: 0 !important;
        padding: 10px 20px;
        box-sizing: border-box;
        gap: 4px;
    }

    .textHolder.nav-open {
        display: flex !important;
    }

    .textHolder.nav-open > div {
        width: 100%;
        margin: 0;
        padding: 6px 0;
        justify-content: end;
    }

    .textHolder.nav-open > div a {
        font-size: 16pt;
        display: block;
        margin-right: 95px;
        }

    /* Keep empty div from adding space */
    .textHolder.nav-open > div:empty {
        display: none;
    }


    section.header-section {
        position: relative;
        background: var(--section-color);
        padding: 2px 10px;
        margin: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    section.header-section .topHeader {
        position: relative;
        width: 100%;
        margin: 0;
        padding: 5px;
        box-sizing: border-box;
    }

    .headerText {
        font-size: 18pt;
        justify-content: flex-start;
        /* margin-left: auto; */
        margin-right: 60px;
        /* margin-top: 10px; */
    }

    section.header-section .lineHolder {
        width: calc(100% - 10px - 10px);
        margin-right: 0px;
    }

    .bodyText {

        margin-left: 0;
        margin-right: 0;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14pt;
        max-width: 100%;
    
    }

    .sectionText {

        margin-left: -10px;

    }

    .sectionText.has-hint {
        flex-direction: column !important;
    }

    .sectionText.has-hint > .headerText {

        white-space: collapse;

    }

    .line {

        width: 0%;
        height: 15px;
        margin: 0;

    }

    .imgLine {

        display: flex;
        flex-direction: column;
        margin-bottom: 30px;
        width: auto;
        height: auto;
        align-items: center;

    }

    .imgLeft {

        margin: 10px;
        width: 100%;
        justify-content: center;
    
    }
    
    
    .imgRight {
    
        margin: 10px;
        width: 100%;
    
    }

    .imgCenter {
    
        margin-left: 10px;
        margin-right: 10px;
        width: 100%;
    
    }

    .processing {

        margin-left: 10px;
        margin-right: 10px;
        
    }

    .processingColor {

        margin: 0px 10px 0px 10px;

    }

    .toc-list {

        width: 80%;

    }

    .toc-link {

        font-size: 16pt;

    }

    .fullscreen-caption-bar { 

        font-size: 10pt;

    }

    .logo-top {

        height:50px;
        max-width: 110px;
        padding-right: 0px;
    
    }

    .footerText {

        font-size: 15pt;
        width: auto;
    
    }
}
