
:root {
    --qapi-dark-purple: #2B245B;
    --qapi-medium-purple: #383381;
    --qapi-purple: #320877;
    --qapi-gold: #FFCC00;
    --qapi-bright-purple: rgb(61, 11, 141);
    --qapi-dark-blue: rgb(31, 26, 86);
    --qapi-bright-green: #42e695;
    --qapi-teal: #1bcedf;
    --qapi-light-teal: #ebf7ff;
    --qapi-light-grey: #dddddd;
    --qapi-transparent: tranparent;
}

* {
     box-sizing: border-box;
     font-family: Arial, Helvetica, sans-serif;
 }

html {
    margin: 0;
    padding: 0;
    font-size: 100%;
    max-width: 100%;
}
body {
    margin: 0;
    padding: 0;
    color: var(--qapi-dark-blue);
    background-color: white;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}


main button, main a.button {
    padding: .5rem 1rem .5rem 1rem;
    border-radius: .5rem;
    border: none;
    background: linear-gradient(to bottom, var(--qapi-dark-purple), var(--qapi-medium-purple));
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

main button:hover, main a.button:hover {
    background: var(--qapi-gold);
    color: var(--qapi-dark-purple);
}

main > section {
    display: flex;
    flex-direction: row;
    flex-basis: 100%;
    flex-wrap: wrap;
    margin: auto;
    justify-content: space-around;
    gap: normal;
    width: 100%;
}

section > div{
    flex: 3 3;
    padding: 0 6rem 0 2rem;
    flex-wrap: wrap;
    align-content: center;
}

section > img {
    flex: 1 1 50%;
    max-height: 40vh;
    object-fit: cover;
}

section.imageRight > div {
    padding: 0 2rem 0 6rem;
}

#contact-us {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--qapi-teal);
}

#contactForm {
    background-color: white;
    padding: 1rem 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 60%;
    border-radius: 2rem;
}

#contactForm input, #contactForm textarea{
    padding: .5rem;
    font-size: 1.2rem;
    margin: auto;
    margin-bottom: .3rem;
}

#contactForm input.half{
    flex: 1 1 35%;
    width: 35%;
}

#contactForm input.full, #contactForm textarea.full{
    flex: 1 1 100%;
    width: 100%;
}

#contactForm input.checkbox {
    height: 1.3rem;
    width: 1.3rem;
    margin-right: .5rem;
}

#graphical-method-overview {
    background-image: url("../images/QAPI-Admin-Dashboard-Graphic.avif");
}

#graphical-method-overview > img {
    display: none;
}

#QAPI-the-Right-Way {
    background-color: var(--qapi-dark-purple);
    color: white;
}

.copyright {
    color: var(--qapi-gold);
    font-size: .8rem;
    margin: 0 auto;
}


main > section.imageRight {
    flex-direction: row-reverse;
}

.centerGhosted {
    display: flex;
    align-items: center;
    align-content: center;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    justify-content: space-around;
    width: 100%;
    padding: 2rem;
    min-height: 40svh;
}

.centerGhosted > div {
    width: 75%;
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 40rem;
}

footer {
    display: flex;
    align-items: center;
    align-content: center;
    width:100%;
    padding: 2rem;
}

@media (max-width: 799px){

    section {
        padding: 0 0 1rem 0;
    }

    #graphical-method-overview {
        background-image: none;
    }

    #graphical-method-overview > img {
        display: initial;
        width: 100%;
        object-fit: cover;
    }

    .centerGhosted > div {
        width: 100%;
        border-radius: 0;
    }

    section div {
        padding: .5rem 1rem 1rem 1rem;
    }

    .imageRight, .imageLeft {
        flex-direction: column;
    }

    section img {
        max-width:100%;
    }

    .imageLeft > div, .imageRight > div, .imageLeft > img, .imageRight > img {
        flex-basis: 100%;
        max-width: 100%;
    }

    h1, h2, h3, h4, h5, h6 {
        margin: .5rem 0 .25rem 0;
        padding: 0;
    }


}