@font-face {
    font-family: 'Lora';
    src: url('font/Lora-VariableFont_wght.ttf') format("truetype-variations");
    font-weight: 400 700;
}
@font-face {
    font-family: 'Poppins';
    src: url('font/Poppins-VariableFont_wght.otf');
    font-weight: 400 700;
}

:root {
    --yellow: #FEA94C;
}

html { font-size: 18px; }
body { background-color: #000000; font-family: "Poppins", sans-serif; }
html, body { margin: 0; }
h1, h2, h3, h4, h5, p, div {
    margin: 0;
    padding: 0;
    border: 0;
    text-shadow: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: auto;
}
h1, h2, h3 {
    color: white;
}
h4, h5, p, li, div, span, input, select {
    color: #939393;
    font-weight: 400;
}
h1, h2, h3 {
    font-family: "Poppins", sans-serif;
}
h2, h4 {
    text-align: center;
}
.pgCourse {
    margin: auto;
}
.center {
    text-align: center;
}
.flex {
    display: flex;
}
.yellow {
    color: #FEA94C;
}
.dontShow {
    display: none !important;
}
.pgOuter {
    width: 100%;
    margin: 0;
}
.pgInternal { 
    box-shadow: 0 0 0 1px #0000000d, 0 11px 20px #6c5e4117; 
    background-color: white;
    border-radius: 5px;
}
.subTitle {
    color: var(--yellow);
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}
.bringInWhenScroll {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
}
.bringInSidewaysWhenScroll {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
}
.scrollIntoView {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.6s;
    opacity: 1;
}

@media only screen and (max-width: 639px) {
    h1 { font-size: 2rem; line-height: 125%; margin-bottom: 0.6em; }
    h2 { font-size: 1.9rem; line-height: 140%; margin-bottom: 0.6em; padding-top: 0.8em; }
    h3, .h3size { font-size: 1rem; line-height: 160%; margin-bottom: 0.6em; padding-top: 0.8em; }
    h4 { font-size: 1.125rem; line-height: 1.6; margin-bottom: 0.6em; }
    .subTitle {
        margin-top: -10px !important;
    }
    p, li, div, span, a, button, input, select { font-size: 0.8rem; line-height: 1.7; margin-bottom: 1em; }
    div { margin-bottom: 0; }
    .pgOuter { padding-block: 60px; }
    .pgCourse { max-width: 100vw; padding-left: 1rem; padding-right: 1rem; }
    .pgInternal { padding: 20px; width: calc(90vw - 40px); margin-inline: auto; }
    .flexContent { flex-direction: column; align-items: center; margin-top: 0; }
    .flexSection { padding: 25px 0; margin: 0 auto;}
    .mobFirst { order: 1; }
    .mobSecond { order: 2; }
    .onlyDesk { display: none; }
}


@media only screen and (min-width: 640px) {
    h1 { font-size: 3rem; line-height: 125%; margin-bottom: 0.6em; }
    h2 { font-size: 2.5rem; line-height: 150%; margin-bottom: 0.6em; padding-top: 0.8em; }
    h3, .h3size { font-size: 1.3rem; line-height: 160%; margin-bottom: 0.6em; padding-top: 0.8em; }
    h4 { font-size: 1.125rem; line-height: 1.6; margin-bottom: 0.6em; }
    .subTitle {
        margin-top: -20px !important;
    }
    p, li, div, span, a, button, input, select { font-size: 1rem; line-height: 1.6; margin-bottom: 1em; }
    div { margin-bottom: 0; }
    .pgOuter { padding-block: 60px 80px; }
    .pgExtraSize { padding-top: 120px !important; padding-bottom: 120px !important; }
    .pgCourse { max-width: 640px; padding-left: 2rem; padding-right: 2rem; }
    .pgNarrow, .pgInternal { max-width: 940px; }
    .pgInternal { padding: 50px; }
    .equalWidth { max-width: 48%; }
    .flexContent {align-items: center; height:100%; justify-content: space-between; margin-top: 50px;}
    .moreWidth { max-width: 60%; }
    .onlyMob { display: none; }
}

div > img {
    width: 100%;
    height: 100%;
}

.bringInWhenScroll {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
}
.bringInSidewaysWhenScroll {
    opacity: 0; transform: translate3d(-50px, 0, 0);
}
.scrollIntoView {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.6s; opacity: 1;
}

.traditionalProbsDiv {
    margin-top: 75px !important;
    margin-bottom: 25px !important;
}
.traditionalProbsDiv div {
    margin-bottom: 0;
}


/*=== HEADER ===*/
.headerNewsletter {

}


/*=== BUTTONS ===*/
.joinBtn {
    background-color: #32a852;
    color: white;
    border-radius: 4px;
    border: 0;
    padding: 12px 16px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(254, 169, 76, 0.6);
    margin-block: 50px 75px;
    font-family: 'Lora', 'sans-serif';
    width: 400px;
    margin-inline: auto;
    text-align: center;
}
.noBottomMargin {
    margin: 0 !important;
}
#waitingBtn {
    opacity: 0.5;
    position: relative;
}
#waitingBtn:before {
    content: "";
    position: absolute;
    border-radius: 100%;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: calc(-1.5rem + -20px);
    margin-top: 5px;
    border: 2px solid rgba(255,255,255,0.5);
    border-left-color: #FFF;
    border-top-color: #FFF;
    animation: spin .6s infinite linear;
}
@keyframes spin {
    to {
        transform: rotate(359deg);
    }
}
@media only screen and (max-width: 639px) {
    .joinBtn {
        font-size: 25px;
        line-height: 30px;
        width: calc(80vw - 32px); /*32px cause the padding is 16px either side*/
    }
}
.joinBtn:hover {
    filter: contrast(115%);
}


/* === NEWSLETTER SIGNUP === */
#newsletterSignupPg {
    margin-inline: auto;
}
#newsletterH1 {
    font-weight: 500;
}
#welcomeHeroImgDiv {
    margin-inline: auto;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
#welcomeHeroImgDiv img {
    width: 100%;
    height: 100%;
}
#subheadlines h3 {
    max-width: 750px;
    font-weight: 400;
}
#subheadlines div {
    display: flex;
}
#subheadlines div div:first-child {
    color: #32a852;
}
#subheadlines div div:nth-child(2) {
    margin-left: 15px;
    color: white;
}
#writtenBy {
    display: flex;
    align-items: center;
    padding-block: 10px;
}
#writtenBy p {
    margin: 0;
    font-style: italic;
}
#subscribeFormDiv {
    background-color: #0e1b3b;
    border-radius: 10px;
    margin-inline: auto;
}
#subscribeFormTitle {
    font-style: italic;
    text-align: center;
    color: rgb(239, 191, 4);
    margin-top: 10px;
}
#questions {
    margin-block: 50px;
}
#questions div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#questions div select {
    height: 50px;
    color: black;
    margin-left: 15px;
}
#questions p {
    color: white;
}
.questionNotAnswered {
    color: var(--yellow) !important;
    animation: color-pulse 1.5s ease-in-out infinite;
}
@keyframes color-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
.formDiv {
    width: 90vw;
    max-width: 550px;
    margin-inline: auto;
}
.formDiv div, .formDiv p {
    margin-inline: auto;
}
.inputDiv {
    margin-inline: auto;
    width: 80%;
}
.inputDiv input {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    box-sizing: border-box;
    color: black;
    font-size: 17px;
}
input {
    border-radius: 10px !important;
    border: 2px solid grey;
    outline: none;
}
input:focus {
    border: 2px solid rgb(255, 189, 0);
    outline: none;
}
.msgsUnderBtn {
    margin-inline: auto;
}
#error {
    text-align: center;
}
#subscribeBtn, #waitingBtn {
    margin-block: 10px 20px;
}
#noSpam {
    font-size: 15px;
    font-style: italic;
    text-align: center;
}
.errorMsg {
    color: red !important;
}
@media only screen and (max-width: 639px) {
    #newsletterSignupPg {
        padding: 0 20px 50px;
    }
    #newsletterH1 {
        margin: -25px auto 25px;
        font-size: 26px;
        line-height: 36px;
    }
    #welcomeHeroImgDiv {
        width: 85vw;
        margin: 25px auto 30px;
        aspect-ratio: 320/350;
    }
    #newsletterSignupPg .flexSection {
        padding: 0;
    }
    #subheadlines h3 {
        text-align: center;
    }
    #subheadlines > div {
        padding-inline: 10px;
        margin-bottom: 10px;
    }
    #writtenBy {
        margin: 20px auto;
    }
    #writtenBy img {
        width: 75px;
        height: 75px;
        margin-right: 15px;
    }
    #subscribeFormDiv {
        width: 90%;
        padding: 20px;
    }
    #questions {
        padding-inline: 0;
    }
    .formDiv {
        width: 90%;
        margin-top: 25px;
    }
    .inputDiv {
        width: 100%;
    }
    #subscribeBtn, #waitingBtn {
        width: 90%;
    }
    #waitingBtn:before {
        width: 25px;
        height: 25px;
        margin-top: 0;
    }
    .errorMsg {
        font-size: 14px;
    }
    #noSpam {
        font-size: 14px;
    }
}
@media only screen and (min-width: 640px) {
    #newsletterSignupPg {
        padding: 0 100px 75px;
        max-width: 1600px;
    }
    #newsletterH1 {
        text-align: left;
        max-width: 750px;
        margin: 0 auto 35px;
    }
    #subheadlines h3 {
        margin-bottom: 25px;
    }
    #subheadlines div {
        margin-bottom: 10px;
    }
    #writtenBy {
        margin-top: 30px;
    }
    #writtenBy img {
        width: 100px;
        height: 100px;
        margin-right: 15px;
    }
    #newsletterSignupPg .flexSection:nth-of-type(1) {
        margin-right: 25px;
    }
    #newsletterSignupPg .flexSection:nth-of-type(2) {
        margin-left: 25px;
    }
    #subscribeFormDiv {
        width: 100%;
        max-width: 640px;
        padding: 30px 20px;
        margin-top: 100px;
    }
    #questions {
        padding-inline: 25px;
    }
    .formDiv {
        margin-top: 50px;
        width: 100%;
        margin-inline: auto;
    }
    .inputDiv {
        width: 80%;
    }
    #subscribeBtn, #waitingBtn {
        width: calc(80% - 32px);
    }
    .msgsUnderBtn {
        width: 442px;
    }
    #noSpam {
        margin-top: -10px;
        line-height: 24px;
    }
    .errorMsg {
        font-size: 16px;
    }
}
@media only screen and (min-width: 640px) and (max-width: 899px) {
    #newsletterH1 {
        font-size: 24px;
    }
    #subheadlines h3, #subheadlines div {
        font-size: 18px;
    }
    #writtenBy p {
        font-size: 15px;
    }
}
@media only screen and (min-width: 900px) and (max-width: 1299px) {
    #newsletterH1 {
        font-size: 30px;
    }
    #subheadlines h3, #subheadlines div {
        font-size: 20px;
    }
    #writtenBy p {
        font-size: 16px;
    }
}
@media only screen and (min-width: 1300px) and (max-width: 1499px) {
    #newsletterH1 {
        font-size: 36px;
    }
    #subheadlines h3, #subheadlines div {
        font-size: 22px;
    }
}
@media only screen and (min-width: 1500px) {
    #newsletterH1 {
        font-size: 46px;
    }
    #subheadlines h3 {
        margin-bottom: 25px;
    }
    #subheadlines div {
        font-size: 1.25rem;
    }
}
@media only screen and (min-width: 640px) and (max-width: 1499px) {
    #newsletterSignupPg .flexSection:last-child {
        flex: 1;
    }
}
@media only screen and (min-width: 640px) and (max-width: 719px) {
    #newsletterSignupPg .flexSection:first-child {
        flex: 0 0 50%;
    }
    #welcomeHeroImgDiv {
        aspect-ratio: 200/475;
    }
}
@media only screen and (min-width: 720px) and (max-width: 799px) {
    #newsletterSignupPg .flexSection:first-child {
        flex: 0 0 50%;
    }
    #welcomeHeroImgDiv {
        aspect-ratio: 200/375;
    }
}
@media only screen and (min-width: 800px) and (max-width: 899px) {
    #newsletterSignupPg .flexSection:first-child {
        flex: 0 0 50%;
    }
    #welcomeHeroImgDiv {
        aspect-ratio: 200/285;
    }
}
@media only screen and (min-width: 900px) and (max-width: 999px) {
    #newsletterSignupPg .flexSection:first-child {
        flex: 0 0 45%;
    }
    #welcomeHeroImgDiv {
        aspect-ratio: 100/150;
    }
}
@media only screen and (min-width: 1000px) and (max-width: 1099px) {
    #newsletterSignupPg .flexSection:first-child {
        flex: 0 0 45%;
    }
    #welcomeHeroImgDiv {
        aspect-ratio: 100/125;
    }
}
@media only screen and (min-width: 1100px) and (max-width: 1249px) {
    #newsletterSignupPg .flexSection:first-child {
        flex: 0 0 50%;
    }
    #welcomeHeroImgDiv {
        aspect-ratio: 100/100;
    }
}
@media only screen and (min-width: 1250px) and (max-width: 1499px) {
    #newsletterSignupPg .flexSection:first-child {
        flex: 0 0 50%;
    }
    #welcomeHeroImgDiv {
        aspect-ratio: 100/90;
    }
}
@media only screen and (min-width: 1500px) {
    #newsletterSignupPg .flexSection:first-child {
        max-width: 1000px;
        flex: 0 0 55%;
    }
    #welcomeHeroImgDiv {
        width: 100%;
        aspect-ratio: 100/70;
    }
}



/* === VISIT SKOOL PAGE === */
#hero h4 {
    color: #32a852;
    font-style: italic;
}
#hero h3 {
    text-align: center;
    font-weight: 400;
}
.hideHero {
    /* Same as bringInWhenScroll */
    opacity: 0;
    transform: translate3d(0, 30px, 0);
}
.hideHeroSeparator {
    /* Same as bringInSidewaysWhenScroll */
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
}
.scrollIntoView {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.6s;
    opacity: 1;
}
.highlightYellow {
    color: var(--yellow);
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
}
#signature {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block: 30px;
}
#signature p {
    margin: 0;
    color: white;
}
@media only screen and (min-width: 640px) {
    #signature img {
        width: 100px;
        height: 100px;
        margin-right: 15px;
    }
}
@media only screen and (max-width: 639px) {
    .appImgDiv {
        margin-inline: auto;
    }
    #signature {
        margin: 20px auto;
        width: 52vw;
    }
    #signature img {
        width: 75px;
        height: 75px;
        margin-right: 15px;
    }
}

/* === VSL === */
:root {
    --vslDivWidth: 660px;
    --vslDivHeight: 372px;
    --innerVslDivWidth: 545px;
    --innerVslDivHeight: 285px;
}

#vslVidDiv {
    width: var(--vslDivWidth);
    height: var(--vslDivHeight);
    margin: 50px auto;
}

#vslVidDiv video {
    width: 100%;
    height: 100%;
}

#vslVidDiv > div {
    position: relative;
}

#vslOverlay {
    position: absolute;
    width: var(--innerVslDivWidth);
    height: var(--innerVslDivHeight);
    top: calc((var(--vslDivHeight) - var(--innerVslDivHeight))/2);  /* Vid height - innerVid height */
    left: calc((var(--vslDivWidth) - var(--innerVslDivWidth))/2);
    background-color: rgba(254, 168, 76, 0.5);
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 0 50px var(--yellow);
    text-align: center;
}

#innerVslImg {
    width: var(--innerVslDivWidth);
    font-size: 50px;
    margin-top: 50px;
    animation: speakerBlink 2s ease-in-out infinite;
}

@keyframes speakerBlink {
    50% {
        opacity: 0;
    }
}

#innerVslTxt {
    width: var(--innerVslDivWidth);
    margin-top: 20px;
    font-size: 30px;
    line-height: 40px;
}

#innerVslTxt div {
    font-size: 30px;
    line-height: 40px;
    color: #0e1b3b;;
}

@media only screen and (max-width: 639px) {
    :root {
        --vslDivWidth: 90vw;
        --vslDivHeight: calc((372 / 660) * var(--vslDivWidth));
        --innerVslDivWidth: 80vw;
        --innerVslDivHeight: calc((285 / 545) * var(--innerVslDivWidth));
    }

    #vslVidDiv {
        margin: 50px auto;
    }

    #innerVslImg {
        font-size: 40px;
        margin-top: 10px;
    }

    #innerVslTxt {
        margin-top: 10px;
    }

    #innerVslTxt div {
        font-size: 20px;
        line-height: 30px;
    }
}

#heroSeparator {
    position: relative;
    margin-block: 75px;
}

#heroSeparator img, #heroSeparator div {
    position: absolute;
    width: 100%;
    height: 180px;
}

#heroSeparator div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 1px 1px black;
    font-weight: 600;
    font-size: 30px;
}

@media only screen and (max-width: 639px) {
    #heroSeparator {
        margin-block: 100px 275px;
    }

    #heroSeparator img, #heroSeparator div {
        height: 260px;
    }

    #heroSeparator div {
        font-size: 30px;
    }
}

@media only screen and (min-width: 640px) {
    #heroSeparator {
        margin-block: 200px 300px;
    }
}


/* === APP === */
#appBenefit > div > div {
    display: flex;
    align-items: center;
    justify-content: center;
}
#appBenefit > div {
    margin: 50px 0;
}
#appBenefit .emphasis {
    color: var(--yellow) !important;
    font-style: italic !important;
}
#vidAppDemo {
    pointer-events: none;
    aspect-ratio: 520 / 1080;
}
@media only screen and (min-width: 640px) {
    #appBenefit {
        display: flex;
    }
    #appBenefit > div {
        width: calc(100% / 3);
        margin: 0 15px;
    }
    #vidAppDemo {
        width: 320px;
        margin-block: 50px;
    }
    #appBenefit > div > div {
        flex-direction: column;
    }
    #appBenefit > div > div > img {
        width: 75px;
        height: 75px;
    }
    #appBenefit p, #appBenefit h3 {
        text-align: center;
    }
}
@media only screen and (max-width: 639px) {
    #vidAppDemo {
        width: 65vw;
        max-width: 420px;
        margin-block: 50px 0;
    }
    #appBenefit > div > div > img {
        width: 50px;
        height: 50px;
    }
    #appBenefit h3 {
        margin-left: 15px;
    }
}

/*=== EVERLEAN ===*/
#everlean p {
    margin-block: -5px 30px;
}
@media only screen and (min-width: 640px) {
    #everlean p {
        margin-block: -5px 25px;
    }
    #everleanText {
        margin-left: 50px;
    }
    #suppsTextDiv {
        margin-left: 20px;
    }
    #suppsTextDiv p {
        margin-bottom: 40px;
    }
}
@media only screen and (max-width: 639px) {
    #everlean .appImgDiv, #supplements .appImgDiv {
        margin-block: -25px;
    }
}


/*=== SUPPORT ===*/
#support p {
    text-align: center;
}
.wreath.inverted {
    transform: scale(-1, 1);
}
#guarantee .appImgDiv {
    aspect-ratio: 525/702;
}
@media only screen and (min-width: 640px) {
    #guarantee .appImgDiv {
        height: 350px;
    }
}
@media only screen and (max-width: 639px) {
    #guarantee .appImgDiv {
        margin-block: -50px -25px;
        width: 70vw;
    }
}


/*=== LAST ===*/
.lastPoint {
    display: flex;
    align-items: center;
}
.lastPoint > div {
    color: white;
    background-color: #32a852;
    border-radius: 50%;
    padding: 0 8px;
    font-size: 20px;
    margin-right: 10px;
}
#last p {
    margin-block: -5px 30px;
}
@media only screen and (max-width: 639px) {
    #last .appImgDiv {
        height: 450px;
        aspect-ratio: 554/1036;
        margin-block: -50px -25px;
    }
}

@media only screen and (min-width: 640px) {
    .lastPoint > div {
        font-size: 24px;
    }
    #last p {
        margin-block: -5px 40px;
    }
    #last .moreWidth {
        margin-left: 50px;
    }
}


/*=== WELCOME PAGE ===*/
#welcomePg h4, #createPwTitle, #welcomePgCurrentDetails p {
    color: var(--yellow);
}
#createPwTitle {
    text-align: center;
    margin-top: 10px;
}
#welcomePgCurrentDetails {
    margin: -25px 25px 50px;
}
#welcomePgCurrentDetails div {
    color: white;
    margin-block: 10px;
}
.fadeOut {
    animation: fadeOutAnime 0.5s ease-in-out forwards;
}
.fadeIn {
    animation: fadeInAnime 0.5s ease-in-out forwards;
}
@keyframes fadeOutAnime {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes fadeInAnime {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
#part2 h4 {
    margin-bottom: 75px;
    color: #32a852;
}
#part2 .separatorDiv {
    height: 3px;
    border-radius: 10px;
    background-color: var(--yellow);
}
#part2 .downloadDiv {
    margin-bottom: 50px;
}
#part2 .downloadDiv img, #recipeBookLink, #samplePlanLink {
    cursor: pointer;
}
#part2 .downloadDiv img:first-of-type {
    margin-right: 20px;
}
#part2 .downloadDiv div {
    display: flex;
    align-items: center;
    justify-content: center;
}
#part2 p {
    color: white;
}
#seeYouInSkool {
    color: #32a852 !important;
    text-align: center;
    font-style: italic;
}

@media only screen and (max-width: 639px) {
    #welcomePgCurrentDetails {
        margin: -15px 0 50px;
    }
    #part1 h1 {
        margin-top: -25px;
    }
    #part1 h4 {
        margin-bottom: 50px;
    }
    #part2 {
        padding-inline: 25px;
        margin-top: -25px;
    }
    #part2 .downloadDiv img {
        width: 150px;
        height: 55px;
    }
    #part2 .separatorDiv {
        width: 80vw;
        margin: 25px auto;
    }
}
@media only screen and (min-width: 640px) {
    #part2 {
        width: 720px;
        margin-inline: auto;
    }
    #part2 .downloadDiv img {
        width: 200px;
        height: 65px;
    }
    #part2 .separatorDiv {
        width: 400px;
        margin-bottom: 50px;
    }
}
