@font-face {
    font-family: Avenir;
    src: url("fonts/Metropolis-Medium.otf") format("opentype");
}

@font-face {
    font-family: Avenir;
    font-weight: 900;
    src: url("fonts/Metropolis-Bold.otf") format("opentype");
}

@font-face {
    font-family: Avenir;
    font-weight: 700;
    src: url("fonts/Metropolis-SemiBold.otf") format("opentype");
}

:root {
    --primary: #00735A;
    --primary-hover: #005845;
    --white: #EDEDED;
    --dark-grey: #4B4B4B;
    --accent: #66A266;
    --accent-hover: #4E7D4E;
    --accent-button-text: #EDEDED;
}

h1 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 900;
}

h2 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
}

h3 {
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Avenir;
}

img {
    max-width: 100%;
    height: auto;
}
html {
    scroll-behavior: smooth;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

body {
    overflow-x: hidden;
    background-image: url("img/background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.75em;
}

.loader {
    border: 16px solid var(--white);
    border-top: 16px solid var(--primary);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#main #left {
    height: 100vh;
    width: 40%;
    background-image: url("img/background-photo.png");
    background-position: center;
    background-size: cover;
    padding-left: 50px;
    padding-top: 50px;
    font-weight: 900;
    float: left;
    font-size: 50px;
    line-height: 55px;
}

#main #left img {
    height: 50px;
    float: left;
    border-radius: 20%;
    margin-right: 20px;
}

#main #left b {
    font-weight: 900;
    color: var(--primary);
}

#main #left #download {
    background-color: rgba(237, 237, 237, 0.7);
    border-radius: 20px;
    position: absolute;
    top: 75vh;
    left: 50px;
    padding: 20px;
}

#main #left #download div {
    width: 80px;
    float: left;
    text-align: center;
}

#main #left #download div img {
    clear: both;
    width: 80px;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    height: auto;
}

#main #right {
    padding-top: 20px;
    width: 60%;
    float: right;
}

#main #right #menu {
    position: absolute;
    right: 150px;
}

#main #right #menu ul li {
    list-style-type: none;
    float: left;
    margin-left: 50px;
}

#main #right #menu ul li a {
    text-decoration: none;
    color: var(--dark-grey);
    font-size: 16px;
    position: relative;
}

#main #right #menu ul li a::after {
    content: "";
    display: block;
    width: 120%;
    height: 4px;
    border-radius: 2px;
    background-color: var(--white);
    position: absolute;
    left: -10%;
    transition: all 0.3s;
}

#main #right #menu ul li a:hover::after {
    transition: all 0.3s;
    background-color: var(--primary);
}

#main #right #main-text {
    position: relative;
    top: 7vh;
    left: 25px;
    margin-right: 150px;
}

#main #right #main-text h1 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 10px;
}

#main #right #main-text h1 b {
    color: var(--primary);
    font-weight: 900;
}

    h2 {
        font-size: 24px;
        font-weight: 400;
        margin-bottom: 40px;
    }

        h2 b {
            color: var(--primary);
            font-weight: 900;
        }

#main #right #main-text h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
}
    
#main #right #main-text h2 b {
    color: var(--primary);
    font-weight: 900;
    }

#main #right #main-text h3 {
    font-size: 16px;
    color: var(--primary);
    font-weight: 900;
}

#main #right #main-text p {
    font-size: 16px;
    margin-bottom: 25px;
}

#main #right #main-text p a {
    text-decoration: none;
    color: var(--primary);
}

#main #right #main-text p b {
    font-weight: 900;
    color: var(--primary);
}

#main #right #main-text video {
    width: 100% !important;
    height: auto !important;
}

#main #right #main-text #successStoriesCarousel, #main #right #main-text #successStoriesCarousel .carousel-inner .carousel-item img {
    width: 100% !important;
    height: auto !important;
}

.retailers {
    clear: both;
    padding-top: 50px;
}

#header-r, #header-o, #header-c, #header-t {
    font-size: 36px;
    text-align: center;
    font-weight: 900;
    margin-bottom: 50px;
}

#header-r b, #header-o b, #header-c b, #header-t b {
    font-weight: 900;
    color: var(--primary)
}


.retailers .retailers-section:nth-child(even) {
    clear: both;
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 100px;
}

.retailers .retailers-section:nth-child(even) img {
    float: left;
    max-height: 300px;
    margin-right: 50px;
    height: auto;
    max-width: 50%;
 }

.retailers .retailers-section:nth-child(even) div {
    text-align: left;
}

.retailers .retailers-section:nth-child(even) div h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
}

.retailers .retailers-section:nth-child(even) div a {
    text-decoration: none;
}

.retailers .retailers-section:nth-child(even) div p {
    font-size: 16px;
    margin-bottom: 15px;
 }

.retailers .retailers-section:nth-child(odd) {
    clear: both;
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 100px;
}

.retailers .retailers-section:nth-child(odd) img {
    float: right;
    max-height: 300px;
    margin-left: 50px;
    height: auto;
    max-width: 50%;
}

.retailers .retailers-section:nth-child(odd) div {
    text-align: right;
}

.retailers .retailers-section:nth-child(odd) div h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
 }

.retailers .retailers-section:nth-child(odd) div a {
    text-decoration: none;
}

.retailers .retailers-section:nth-child(odd) div p {
    font-size: 16px;
    margin-bottom: 15px
}

.retailers .retailers-section:nth-child(odd) div ul {
    list-style-position: inside;
}

.retailers .retailers-section:nth-child(odd) div ol {
    list-style-position: inside;
}


.retailers sub {
    font-size: 10px;
}


.retailers h2 {
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 20px;
}

.retailers p {
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 50px;
    text-align: left;
}

.retailers b {
    color: var(--primary);
}

#our-app {
    padding-top: 50px;
}

#our-app .our-app-section {
    width: 33%;
    text-align: center;
    padding-left: 50px;
    padding-right: 50px;
    float: left;
}

#our-app .our-app-section img {
    max-height: 300px;
    margin-bottom: 20px;
    width:auto;
    height:auto;
}

#our-app .our-app-section p {
    margin-top: 15px;
}

#our-app .our-app-section ul {
    list-style-position: inside;
}


#role-of-technology {
    padding-top: 50px;
}

#role-of-technology h2 {
    text-align:center;
}

#role-of-technology p {
    padding-left: 25px;
}

#role-of-technology .technology-section {
    text-align: center;
    padding-left: 50px;
    padding-right: 50px;
    float: left;
    width: 25%;
}

    #role-of-technology .technology-section-ordered {
        text-align: center;
        padding-left: 50px;
        padding-right: 50px;
        float: left;
    }
    
#role-of-technology .technology-section img {
    height: 300px;
    margin-bottom: 20px;
    width: 100% !important;
    height: auto !important;
}

    #role-of-technology .technology-section-ordered img {
        height: 300px;
        margin-bottom: 20px;
        width: 100% !important;
        height: auto !important;
    }

#role-of-technology .technology-section p {
    margin-top: 5px;
    text-align: left;
}

    #role-of-technology .technology-section ul li {
        list-style-type: disc;
        text-align:left;
        padding-left:15px;
        font-size:16px;
    }

    #role-of-technology .technology-section h3 {
        text-align:left;
    }

    #role-of-technology .technology-section-ordered p {
        margin-top: 5px;
        text-align: left;
    }

    #role-of-technology .technology-section-ordered ul li {
        list-style-type: disc;
        text-align: left;
        padding-left: 15px;
        font-size: 16px;
    }

    #role-of-technology .technology-section-ordered h3 {
        text-align: left;
    }

    #role-of-technology ol {
        display:flex;
        padding: 0px;
        padding: 20px 0 10px 50px;
    }

    #role-of-technology .technology-section-ordered ol li {
        font-size: 24px;
        width: 25%;
    }


#contact {
    clear: both;
    padding-top: 100px;
    text-align: center;
    padding-bottom: 100px;
}

    #contact p {
        width: 40vw;
        font-size: 14px;
    }

    #contact #form-terms  {
        display: flex;
        justify-content: center;
        padding-bottom: 15px;
    }

    #contact p b {
        color: var(--primary);
    }

    #contact input, #contact #text {
        border: none;
        background-color: var(--white);
        border-radius: 20px;
        box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 10px;
        width: 40vw;
        height: 28px;
        text-align: center;
        font-size: 16px;
    }

    #contact .name-part {
        width: 20vw;
        float: left;
    }

    #contact .name-labels {
        display: flex;
        justify-content: center;
    }

    #contact .half-text {
        width: 20vw;
    }

    #contact #text {
        height: 80px;
    }

    #contact #submit, #main #right #main-text .primary-button, #set-up-referral .set-up-referral-section .primary-button, .retailers .retailers-section div .primary-button, .conclusion .primary-button, #businessSubmitForm .primary-button, #usersContainer .primary-button {
        display: inline-block;
        border: none;
        background-color: var(--primary);
        color: var(--white);
        font-size: 12px;
        padding: 12px 20px;
        border-radius: 20px;
        box-shadow: rgba(0,0,0,0.3) 1px 1px 10px;
        text-decoration: none;
        transition: background-color 0.2s ease;
        min-width: 100px;
        min-height: 28px;
        text-align: center;
    }

#set-up-referral .set-up-referral-section:nth-child(even) .primary-button {
    float:left;
}

#contact #submit:hover, #main #right #main-text .primary-button:hover, #set-up-referral .set-up-referral-section:nth-child(even) .primary-button:hover, #businessSubmitForm .primary-button:hover, #usersContainer .primary-button:hover {
    background-color: var(--primary-hover);
}

#main #right #main-text .accent-button, #set-up-referral .set-up-referral-section .accent-button, .retailers .retailers-section div .accent-button, .conclusion .accent-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--accent-button-text);
    font-size: 12px;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: rgba(0,0,0,0.3) 1px 1px 10px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    min-width: 100px;
    min-height: 28px;
    text-align: center;
}

#set-up-referral .set-up-referral-section:nth-child(even) .accent-button {
    float: left;
}

#main #right #main-text .accent-button:hover, #set-up-referral .set-up-referral-section:nth-child(even) .accent-button:hover {
    background-color: var(--accent-hover);
}
.outline-button {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 120px;
    min-height: 44px;
    text-align: center;
}

    .outline-button:hover {
        background-color: var(--primary);
        color: var(--white);
    }


#terms-link {
    background-color: var(--primary);
    text-align: right;
    padding-right: 50px;
    font-size: 16px;
}

#terms-link a {
    color: var(--white)
}

#terms-link {
    background-color: var(--primary);
    text-align: right;
    padding-right: 50px;
    font-size: 16px;
}

#terms-link a {
    color: var(--white)
}

.simple-text {
    padding-top: 30px;
    padding-left: 100px;
    padding-right: 100px;
    counter-reset: section;
}

.simple-text .numbered-headers h2::before {
    counter-increment: section;
    content: counter(section) ". ";
    font-weight: 900;
    margin-right: 6px;
}

#set-up-referral {
    clear: both;
    padding-top: 50px;
}

#set-up-referral .set-up-referral-section:nth-child(even) #explainer-diagram {
    float: left;
}

#set-up-referral .set-up-referral-section:nth-child(even) {
    clear: both;
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 100px;
}

    #set-up-referral .set-up-referral-section:nth-child(even) img {
        float: left;
        /*height: 400px;*/
        margin-right: 50px;
    }

    #set-up-referral .set-up-referral-section:nth-child(even) div {
        position: relative;
        float: left;
    }

        #set-up-referral .set-up-referral-section:nth-child(even) div h1 {
            font-size: 24px;
            color: var(--primary);
            margin-bottom: 25px;
        }

        #set-up-referral .set-up-referral-section:nth-child(even) div p {
            font-size: 16px;
            margin-bottom: 15px;
        }

#set-up-referral .set-up-referral-section-right {
    clear: both;
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 100px;
}

#set-up-referral .set-up-referral-section-right img {
    float: right;
    height: 300px;
    margin-left: 50px;
}

#set-up-referral .set-up-referral-section-right div {
    text-align: right;
}

#set-up-referral .set-up-referral-section-right div h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
}

#set-up-referral .set-up-referral-section-right div p {
    font-size: 16px;
    margin-bottom: 15px;
}

#set-up-referral sub {
    font-size: 10px;
}

#set-up-referral h2 {
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 20px;
}

#set-up-referral p {
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 50px;
}

.retailers {
    counter-reset: heading;
}
    
.retailers .retailers-section div h1:before {
        content: counter(heading)". ";
        counter-increment: heading;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.retailers .retailers-section:nth-child(2n+1) div .cta-group {
    display: block;
    gap: 15px;
    margin: 20px 0;
}

.main {
    padding-left: 50px;
    padding-right: 50px;
}

    .main h2 {
    }

    .main ul li {
    }

.conclusion {
    clear: both;
    padding-left: 100px;
    padding-right: 100px;
    margin-bottom: 100px;
}

    .conclusion div {
        position: relative;
    }

    .conclusion h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }

        .conclusion h1 b {
            color: var(--primary);
        }

    .conclusion p {
        font-size: 16px;
        margin-bottom: 15px;
    }

.form-input {
    padding-left: 20px;
    padding-right: 20px;
}

.form-input-label {
    height: 24px;
    width: 260px;
    color: #333333;
    font-size: 14px;
    line-height: 24px;
}

.form-input-button {
    border: none;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 10px;
    min-width: 100px;
    height: 28px;
    font-size: 12px;
    margin-top: 10px;
    cursor: pointer;
}

    .form-input-button:disabled {
        background: #494949;
        color: #9fa3a9;
        cursor: not-allowed;
    }

.form-input-text {
    display: block;
    border: none;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 10px;
    width: 100%;
    height: 28px;
    text-align: left;
    font-size: 16px;
}

.form-input-number {
    display: block;
    border: none;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 10px;
    width: 95vw;
    height: 28px;
    text-align: right;
    font-size: 16px;
}

.form-input-dropdown {
    display: block;
    width: 40vw;
    font-family: Avenir;
    position: relative;
}

    .form-input-dropdown select {
        display: block;
        border: none;
        background-color: var(--white);
        border-radius: 20px;
        box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 10px;
        width: 100%;
        height: 28px;
        text-align: left;
        font-size: 16px;
    }

.form-input-file {
    display: block;
}

.form-check-box {
    display: inline-block;
    border: none;
    background-color: var(--white);
    border-radius: 20px;
    text-align: left;
    font-size: 16px;
    margin: 5px 5px 5px 0px;
    vertical-align: middle;
    box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 10px;
    accent-color: #00735A;
}

.form-input-hidden {
    display: none;
    background-color: blue
}

.form-inline {
    display: flex;
    padding: 1px 0 1px 0;
}

nav.breadcrumb {
    background-color: rgba(237, 237, 237, 0.8);
    padding: 15px 100px;
    font-size: 14px;
    color: var(--dark-grey);
}

    nav.breadcrumb a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 700;
    }

    nav.breadcrumb span {
        color: var(--dark-grey);
        margin: 0 5px;
    }

/* Table of contents and section spacing */
.simple-text ol, .simple-text ul {
    margin: 15px 0 25px 25px;
}

.simple-text section {
    margin-bottom: 50px;
}

.simple-text h2 {
    margin-top: 40px;
}

@media (max-width: 768px) and (min-width: 481px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    #main #left,
    #main #right {
        width: 100%;
        padding: 20px;
    }

        #main #right #main-text {
            width: 90%;
            margin: 0 auto;
        }

    .retailers .retailers-section {
        flex-direction: row;
        gap: 1rem;
    }

        .retailers .retailers-section img, .retailers .retailers-section div h1 {
            flex: 1 1 50%;
        }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

        .cta-group a {
            width: 100%;
        }

    #contact #submit, #main #right #main-text .primary-button, #set-up-referral .set-up-referral-section .primary-button, .retailers .retailers-section div .primary-button, .conclusion .primary-button {
        display: inline-block;
        background-color: var(--primary);
        color: var(--white);
        font-weight: 600;
        padding: 12px 20px;
        border-radius: 20px;
        box-shadow: rgba(0,0,0,0.3) 1px 1px 10px;
        text-decoration: none;
        transition: background-color 0.2s ease;
        min-width: 120px;
        min-height: 44px;
        text-align: center;
    }

    #main #right #main-text .accent-button, #set-up-referral .set-up-referral-section .accent-button, .retailers .retailers-section div .accent-button, .conclusion .accent-button {
        display: inline-block;
        background-color: var(--accent);
        color: var(--accent-button-text);
        font-weight: 600;
        padding: 12px 20px;
        border-radius: 20px;
        box-shadow: rgba(0,0,0,0.3) 1px 1px 10px;
        text-decoration: none;
        transition: background-color 0.2s ease;
        min-width: 120px;
        min-height: 44px;
        text-align: center;
    }

    .retailers p {
        padding-left: 0;
        padding-right: 0;
    }

    input, #contact input, #contact #message, #contact #text {
        width: 80vw;
    }

    #contact .half-text {
        width: 40vw;
    }

    #contact p {
        width: 80vw;
    }


    .form-check-box {
        width: 21px;
        height: 21px;
    }
}


@media (max-width: 480px) {

    body {
        background-position: left;
    }

    #main #left {
        width: 100vw;
        padding-left: 25px;
        padding-top: 25px;
        height: 100vh;
    }

    #main #left #download {
        display: none;
    }

    #main #right #menu {
        position: absolute;
        top: 40vh;
        left: 25px;
    }

    #main #right #menu ul li {
        background-color: rgba(237, 237, 237, 0.7);
        border-radius: 20px;
        width: 40vw;
        text-align: center;
        margin: 0;
        margin-bottom: 10px;
        clear: both;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #main #right #menu ul li a::after {
        display: none;
    }

    #main #right {
        width: 100vw;
    }

    #main #right #main-text {
        top: 20px;
        margin-bottom: 50px;
        width: 85vw;
    }

    #header-r, #header-o, #header-c {
        font-size: 28px;
        text-align: left;
        margin-left: 25px;
    }

    .retailers .retailers-section {
        padding: 0;
        display:flex;
        flex-direction: column;
        text-align: center;
    }

    .retailers .retailers-section div {
        width: 100%;
    }

    .retailers .retailers-section:nth-child(even) img,
    .retailers .retailers-section:nth-child(odd) img {
        display: block;
        max-width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }

    

    .retailers .retailers-section div h1 {
        display: block;
        text-align: left;
    }


    .retailers .retailers-section ul li {
        text-align: left;
        padding-left: 15px;
        padding-right: 10px;
        font-size: 16px;
        list-style-position: inside;
    }

    .retailers .retailers-section ol li {
        text-align: left;
        padding-left: 15px;
        padding-right: 10px;
        font-size: 16px;
    }

    .retailers .retailers-section:nth-child(even), .retailers .retailers-section:nth-child(odd) {
        flex-direction: column;
        clear: both;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 10px;
    }

    .retailers p {
        padding-left: 10px;
        padding-right: 10px;
    }

    #our-app .our-app-section {
        clear: both;
        width: 100vw;
        margin-bottom: 50px;
    }

    #our-app .our-app-section img {
        height: 300px;
    }

    #our-app .our-app-section p {
        margin-top: 0;
    }

    #header-c {
        text-align: center;
    }

    input, #contact input, #contact #message, #contact #text {
        width: 80vw;
    }

    #contact .half-text {
        width: 40vw;
    }
    
    #contact p {
        width: 80vw;
    }
    
    .retailers .retailers-section img {
        max-width: 80%;
        margin: 10px auto;
    }

    .conclusion {
        clear: both;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 10px;
    }

    select {
        border: 0;
        background: transparent;
        height: 32px;
        border: 1px solid #d8d8d8;
        width: 350px;
        -webkit-appearance: none;
    }

    .form-check-box {
        width: 21px;
        height: 21px;
    }

}