html, body, .container {
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo img {
    margin-inline: auto;
    margin-block: 3rem;
    margin-top: 8vh;
    height: 3.5vh;
}

/***************  HEADER ************** */

/* mobile/tablet view --- start */

.header__image--full {
    margin-top: 2vh;
    margin-bottom: 10vh;
    margin-inline: -3.5%;
}

.header__image--left,
.header__image--right {
    display: none;
    width: 100%;
}

.header__image--left > img,
.header__image--right > img {
    width: 100%;
}

/* mobile/tablet view --- end */

.header__content {
    display: flex;
    flex-direction: column;
    gap: 5vh;
    text-align: center;
}

.header__title {
    font-weight: 900;
    font-size: clamp(2.2rem, 3.2vw, 5rem);
    line-height: calc(clamp(2.2rem, 3.2vw, 5rem) + 5px);
    
    color: var(--header-font-color);
}

.header__description, .main__description {
    font-size: clamp(1rem, 1.5vw, 2rem);
}

.header__cta {
    display: flex;
    justify-content: center;
}

/***************  BUTTON ************** */

button.button__primary, button.button__secondary {
    color: white;
    border-radius: 4rem;
    padding-block: .6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

button.button__primary {
    background: var(--primary-color);
}

button.button__secondary {
    background: var(--secondary-color);
}

.button___version-text {
    margin-left: .2rem;
}

button.button__primary > .version-text {
    color: var(--primary-color-2);
}

button.button__secondary > .version-text {
    color: var(--secondary-color-2);
}

/***************  BUTTON STATES ***************/

button.button__primary:hover {
    background: #71C0D4;
}

button.button__secondary:hover {
    background: #B18BDD;
}

button:focus-visible {
    outline: 0.4rem dashed var(--bg-color);
    outline-offset: -.6rem;
}


/***************  SPACER ***************/

.spacer {
    display: grid;
    grid-template-columns: 1fr;
}

.spacer__main {
    margin-top: 12vh;
    margin-bottom: 8vh;
}

.spacer__footer {
    margin-top: 5vh;
    /* Moves the spacer 4vh/24vh down. this is the ration of the spacer's svg */
    margin-bottom: -4vh;
}

.spacer__footer > * {
    z-index: 100;
}

.spacer > * {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.spacer > img {
    margin-inline: auto;
    height: 24vh;
}



/***************  MAIN ***************/

.main__image-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: clamp(1em, 3vw ,2em);    
}

.main__image-container > img {
    width: 20vw; 
    border-radius: 1rem;
    object-fit: contain;
}

.main__content-container  {
    display: flex;
    margin-bottom: 5vh;
    margin-top: 10vh;
}

.main__flex-margin {
    flex: 1 1 100%;
}

.main__content {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.5vw, 2rem);
    text-align: center;
    flex: 1 1 auto;
}

.main__subtitle {
    font-size: clamp(1.2rem, 2vw - 8px, 2.5rem);
    font-weight: 900;
    color: var(--primary-color);
}

.main__title {
    font-size: clamp(2.2rem, 3vw, 4rem);
    line-height: 1;
    font-weight: 900;
    color: var(--header-font-color);
}

.main__description {
    margin-top: 1rem;
}


/***************  FOOTER ***************/

.footer {
    width: 100%;
    position: relative;
    color: white;
    display: grid;
    grid-template-columns: 1fr;
}

.footer__overlay {
    position: absolute;
    inset: 0 0 0 0;
    background-color: rgb(6 170 192 / 70%);
}

.footer > img {
    background-size: contain;
    width: 100vw;
    background-repeat: no-repeat;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.footer__background--desktop {
    display: block;
}
.footer__background--tablet {
    display: none;
}
.footer__background--mobile {
    display: none;
}

.footer__content {
    z-index: 100;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer__content > * {
    display: flex;
    justify-content: center;
}

.footer__title {
    font-weight: 900;
}

/***************  RESPONSIVE DESIGN ***************/

@media screen and (min-width: 769px) {
    .header {
        display: grid;
        grid-template-columns: 1fr 40vw 1fr;
        grid-template-rows: 1fr;
    }

    .header__image--full {
        display: none;
    }

    .header__image--left,
    .header__image--right {
        display: block;
    }

    .header__image--left {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .header__image--left > img {
        margin-left: -8%;
    }

    .header__image--right {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }

    .header__image--right > img {
        margin-top: 13%;
        margin-left: 8%;
    }

    .header__content {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        width: 40vw;
        padding-inline: 2vw;
        margin-top: 12vh;
    }

    .footer__content {
        font-size: clamp(1rem, 1.5vw, 2rem);
        line-height: clamp(1rem, 1.5vw + 10px, 2rem);
    }

    .footer__title {
        font-size: clamp(1.75rem, 0.5692rem + 2.4567vw, 4.5rem);
        line-height: 1;
        flex: 1 1 40%;
    }

    .footer__description {
        flex: 1 1 30%;
    }

    .footer__cta {
        flex: 1 1 30%;
        overflow-x: visible;
    }

    .button__primary, .button__secondary {
        height: clamp(3rem, 4vw, 5.7rem);
        font-size: clamp(1rem, 1.25vw, 2rem);
        line-height: 1rem;
    }

     /* Smaller buttons  */
     .header__cta > .button__secondary {
        min-width: clamp(8rem, 10vw, 15rem);
        margin-left: 2vw;
    }

    /* Download button */
    .footer__cta > button, .header__cta > .button__primary {
        min-width: clamp(10rem, 14vw, 22rem);
    }  
}

@media screen and (max-width: 768px) {
    .header__description {
        padding-inline: 22vw;
    }

    .header__cta {
        justify-content: center;
        gap: 1.5rem;
    }

    .main__flex-margin {
        flex: 1 1 50%;
    }

    .footer__background--desktop {
        display: none;
    }

    .footer__background--tablet {
        display: block;
    }

    .footer__background--mobile {
        display: none;
    }

    .footer__content {
        flex-direction: column;
        justify-content: space-evenly;
        text-align: center;
        margin: unset;
        margin-top: 1vh;
    }

    .footer__title {
        font-size: clamp(1.5rem, 0.2544rem + 4.6784vw, 2.5rem);
        line-height: 1;
    }

    .footer__description {
        width: 60vw;
        font-size: clamp(.75rem, 2.5vw, 1rem)
    }

    .button__primary, .button__secondary {
        height: 3rem;
        font-size: clamp(.75rem, 2vw, .85rem);
        line-height: 1rem;
    }

    /* Smaller button */
    .header__cta > .button__secondary {
        width: 7rem;
    }

    /* Download buttons only */
    .header__cta > .button__primary, .footer__cta > button {
        width: 11rem;
    }
}

@media screen and (max-width: 425px) {
    .header__description {
        padding-inline: 15vw;
    }

    .header__cta {
        flex-direction: column;
        align-self: center;
        gap: 3vh;
    }

    .header__cta > .button__secondary {
        margin-inline: auto;
    }

    .main__image-container {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 0;
    }

    .main__image-container > img {
        width: 38vw;
        margin-bottom: 7vw;
    }

    .main__flex-margin {
        flex: 1 1 20%;
    }

    .footer__background--desktop {
        display: none;
    }

    .footer__background--tablet {
        display: none;
    }

    .footer__background--mobile {
        display: block;
    }

    .footer__title {
        font-size: clamp(1.5rem, 0.6111rem + 7.1111vw, 2.5rem);
        line-height: 1;
    }

    .footer__description {
        width: 60vw;
        font-size: clamp(.5rem, 5vw ,1.3rem)
    }
}