:root {
    /*--highlight: #DE8F6E;*/
    --highlight: #7D7C84; /*gray*/
    
}
body {
    background-color: var(--blue);
    overflow-x: hidden;
    margin: 0;
    position: relative;
    height: fit-content;
}


/* Global texture overrides */
#texture {
    background-image: url("/assets/textures/paint_relief-51.png") !important;
    background-repeat: repeat;
    mix-blend-mode: color-burn;
    position: absolute;
    z-index: 24;
    max-width: 100%;
    opacity:   .3;
    background-size: 1920px 1080px;
    height: 100%;
    position: fixed;
}

/* Header container */
.header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    position: absolute;
    z-index: 24;
    height: 121px;
    overflow: visible;
    isolation: isolate;
}
/* Main header text */
.header h1 {
    font-size: 6em;
    margin: 0;
    color: var(--white);
    position: relative;
    top: -4px;
    right: 20px;
    z-index: 10;
}

#erikA {
    top: -2.8px;
    left: 4.2px;
    position: relative;
}
#page-title {
    position: relative;
    top:
14.2px;
    right: -11.3px;
}
/* Secondary header text */
.header h2 {
    font-size: 4em;
    margin: 0;
    color: var(--white);
    text-wrap: wrap;
    line-height: 0.85;
    padding-right: 30px;
    z-index: 10;
    position: relative;
}

.header h2:hover {
    cursor: pointer;
}

.Erik {
    position: relative;
    left: 0.7px;
}

/* Horizontal bars section */
#bars {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100vw;
    height: 60px;
    display: flex;
    flex-direction: column;
    z-index: 19;
    margin: 0;
}
#bar1 {
    height: 20%;
    background-color: var(--highlight);
}

#bar2 {
    height: 80%;
    background-color: var(--back);
}

.viewport-section {
    min-height: 100vh;
    background-color: var(--blue);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
#text-section{
    position: relative;
    margin-top: 180px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    overflow: visible;
    height: calc(100vh - 180px);
}
#scroll-container {
    max-height: calc(100vh - 180px);
    overflow-y: scroll;
    width: 60vw;
    overflow-x: hidden;
}

#main-text {
    /*! width:50%; */
    /*! backdrop-filter: blur(5px); */
    background-color: var(--highlight); 
    z-index: 20;
    position: relative;
    padding: 10px;
    border-radius: 10px;
    margin: 1vw;
    box-sizing: border-box;
    height: fit-content;
    font-size: 1.5em;
}
#text {
    position: relative;
    /*! z-index: 21; */
    font-family: oswald;
    color: white;
    font-size: 1.4em;
    margin: .5vw;
    margin-top: 0;
}
h3 {
    margin: 0;
}
#image-div {
    position: absolute;
    align-self: end;
    justify-self: center;
    display: flex;
    flex-direction: column;
    height: calc(100vh);
    width: 50vw;
    /*! z-index: 20; */
    justify-content: end;
    overflow-y: clip;
    right: -131px;
    overflow-x: visible;
}
#main-image {
    position: relative;
    /*! top: -42px; */
    z-index: 24;
    max-height: 114%;
    margin-top: auto;
    object-fit: contain;
    top: 312px;
}
footer {
    position: relative;
    padding-bottom: 15px
}
@media (max-width: 1580px) {
    #scroll-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 60vw;
        height: 100vh;
        background: url("/assets/textures/paint_relief-51.png") center/cover repeat fixed;
        mix-blend-mode: color-burn;
        opacity: 0.2 !important;;
        pointer-events: none;
        transform: none;
        z-index: 31;
    }
    #main-text {
        z-index: 30;
    }
}
@media (max-width: 605px) {
    h1 {
        display: none;
    }
    #text {
        font-size: .88em;
        font-weight: 340;
        line-height: 1.3;
    }
    #main-image {
    width: 116vw;
    left: 66px;
    top: 119px;
    transform: translateX(-55%);
    }
    #main-text {
        z-index: 30;
        margin-right: 0;
    }
}