html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.viewport-section,
#texture,
#buttons-viewport {
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--blue);
    overflow-x: hidden;
    margin: 0;
}

body.at-bottom {
    background-color: var(--back);
}

/* Full viewport section */
.viewport-section {
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--blue);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

#buttons-viewport {
    position: fixed;
    top: 0;
    background: none;
}

/* Global texture overrides */
#texture {
    background-image: url("/assets/textures/texture_fabrik_cyan_textures_03.png") !important;
    mix-blend-mode: color-burn;
    position: absolute;
    z-index: 11;
}

.button-texture {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* Header container */
#header-background {
    width: 100vw;
    height: 120px;
    position: fixed;
    background-color: var(--blue);
    z-index: 5;
}
.header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    position: fixed;
    height: 120px;
    /*! background-color: var(--blue); */
    z-index: 20;
}

#hidden-header {
    opacity: 0;
    z-index: 20;
}

#page-title {
    position: fixed;
    top: -0.0px;
    right: 2.3px;
}

/* Main header text */
.header h1 {
    font-size: 6em;
    margin: 0;
    color: var(--white);
    position: relative;
    z-index: 10;
}

#erikA {
    position: fixed;
    z-index: 20;
    left: 2.5px;
    top: 3.5px;
}

/* 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: fixed;
    top: 120px;
    left: 0;
    width: 100vw;
    height: 60px;
    display: flex;
    flex-direction: column;
    z-index: 4;
    margin: 0;
}

#bar1 {
    height: 20%;
    background-color: var(--highlight);
}

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

/* Contact form section */
#text-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    height: 100vh;
    width: 100%;
    position: relative;
}

#scroll-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 2vw 2vw 2vw 2vw;
    overflow-y: auto;
    margin-top: 180px;
}

#main-text {
    width: 100%;
    max-width: 600px;
    background-color: rgba(14, 28, 54, 0.8);
    padding: 10px 40px 10px 40px;
    border-radius: 30px;
    box-shadow: -.3vh .3vh 0px rgba(148, 132, 155, 1);
    color: var(--white);
    font-family: "Titillium Web", sans-serif;
    position: relative;
    z-index: 3;
}

/* Contact form */
#contact-form {
    display: flex;
    flex-direction: column;
    /*! gap: 1.1rem; */
    width: 100%;
}

#contact-form label {
    font-family: "Oswald", sans-serif;
    font-size: 1.3em;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-top: 10px;
    position: relative;
    left: 22px;
    top: 2px;
}

#contact-form input,
#contact-form textarea {
    background-color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 0.8em 1em;
    font-family: "Titillium Web", sans-serif;
    font-size: 1em;
    outline: none;
    color: var(--back);
    transition: all 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px var(--highlight);
}

#contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

#contact-form button {
    align-self: center;
    background-color: var(--highlight);
    color: var(--white);
    border: none;
    border-radius: 40px;
    padding: 0.8em 3em;
    font-size: 1.2em;
    font-family: "Oswald", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#contact-form button:hover {
    background-color: var(--white);
    color: var(--highlight);
    box-shadow: -.3vh .3vh 0px rgba(148, 132, 155, 1);
}

#response {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1em;
    color: var(--white);
}

/* Image section */
#image-div {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /*! z-index: 1; */
}

#main-image {
    position: absolute;
    bottom: 0;
    left: 10%;
    height: 80%;
    transform: translateX(15%);
    z-index: 20;
}

/* Footer */
footer {
    color: var(--white);
    background-color: var(--back);
    text-align: center;
    padding: 10px;
    height: 50px;
    line-height: 1.5;
    position: relative;
    z-index: 10;
}

footer p {
    margin: 0px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    #text-section {
        flex-direction: column;
        align-items: center;
    }
    #scroll-container {
        width: 90%;
        /*! margin-top: 160px; */
        padding: 16px;
    }
    #main-text {
        max-width: 90%;
        /*! margin-top: 160px; */
        padding: 25px;
    }

    #image-div {
        display: none;
    }

    #contact-form button {
        width: 100%;
    }
}

@media (max-width: 564px) {
    h1 {
        display: none;
    }
}

@media (max-width: 400px) {
    body {
        font-size: .7em
    }

    #page-title {
        top: 42.3px;
    }
}
