@font-face {
    font-family: 'BureauHeronSans';
    font-style: normal;
    font-weight: 300;
    src:url('../fonts/BureauHeronSans_Light.woff2') format('woff2'),
        url('../fonts/BureauHeronSans_Light.otf') format('otf');
}
@font-face {
    font-family: 'BureauHeronSans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/BureauHeronSans_Regular.woff2') format('woff2'),
        url('../fonts/BureauHeronSans_Regular.otf') format('otf');
}
@font-face {
    font-family: 'BureauHeronSans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/BureauHeronSans_Bold.otf') format('otf');
}
:root{
    --blue: #0083cb;
    --clr-text: #0D1922;
    --clr-accent: #F37021;
}
html, body{
    padding:0;
    margin:0;
}

/*LOADING SCREEN*/
.js-loading *,
.js-loading *:before,
.js-loading *:after {
    animation-play-state: paused !important;
}

.animated-header {
    background: #000;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.animated-header:before {
    animation: show-background 60s .5s cubic-bezier(0,1,.5,1) forwards;
    background: url(https://cssanimation.rocks/images/random/space2.jpg) repeat center;
    background-size: cover;
    content: "";
    opacity: 0;
    height: 125vh;
    position: absolute;
    left: -10%;
    top: -10%;
    width: 125vw;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 48px;
    display: none;
}

.js-loading .loading {
    display: block;
}

.earth {
    width: 200px;
    height: 200px;
    position: absolute;
    top: calc(50% - 100px);
    left: calc(50% - 100px);
}

.moon {
    animation: spin 30s linear infinite;
    width: 50px;
    height: 50px;
    position: absolute;
    top: calc(50% - 200px);
    left: calc(50% - 200px);
    transform-origin: 200px 200px;
}

.earth img, .moon img {
    animation: show-on-load 1s .5s cubic-bezier(0,1.6,.6,1) forwards;
    opacity: 0;
    width: 100%;
    box-shadow: 0 0 12em 1em rgba(110, 140, 200, .6);
}

.moon img {
    animation: fade-in 2s 1s cubic-bezier(0,1.5,1,1) forwards, spin 30s linear reverse infinite;
}

@keyframes spin {
    to {
        transform: rotateZ(360deg);
    }
}

@keyframes show-background {
    0% {
        opacity: 0;
        transform: none;
    }
    30% {
        opacity: .5;
    }
    100% {
        opacity: .5;
        transform: scale(.8)
    }
}

@keyframes show-on-load {
    0% {
        opacity: 0;
        transform: scale(.5);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/*END LOADING SCREEN*/

#result_card {
    border-radius: 32px;
}

.result-card {
    box-shadow: 0px 0px 32px 0px rgba(35, 151, 211, 0.55);
}

.result-grid,
.buy-section {
    display: grid;
    grid-template-areas:
        'a b'
        'a c'
    ;
    grid-auto-rows: auto;
}

.result-grid #result_card,
.buy-section .image {
    grid-area: a;
    align-self: center;
}

.buy-section .title {
    width: 100%;
}

.result-grid .result,
.buy-section .title {
    grid-area: b;
    align-self: center;
}

.result-grid .buttons,
.buy-section .buttons {
    grid-area: c;
}

/*RESULT STYLE*/
#start_over {
    position: absolute;
    background-color: #7F8C8D;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    cursor: pointer;
}

#start_over span {
    position: absolute;
    font-size: 20px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    display: block;
    height: 20px;
    margin: auto;
    text-align: center;
}

#myProgress {
    width: 50%;
    background-color: gray;
}

#myBar {
    width: 1%;
    height: 30px;
    background-color: green;
}



/*arousal*/
.all-emotions{
    position:relative;
    min-height: 700px;
}
.grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 800px;
    height: 686px;
}

.pin_wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 800px;
    height: 686px;
}

.pin {
    width: 10.3%;
    height: 12%;
    border-radius: 50%;
    color: rgb(255, 255, 255);
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px 10px;
    opacity: 0.7;
    position: absolute;
    bottom: 44%;
    left: 44.5%;
}
/*end arousal*/
/*END RESULT STYLE*/

/*PAGE STYLE*/

#noFace{
    display: block;
    /* height: 50px; */
    font-size: 22px;
    color: #000;
}
#userVideoCamera{
    width:80%;
    height: auto;
    display: none;
}
#userCamera{
   text-align: center;
    display: none;
}
#userResults{
    display: none;
    margin-top: -12px;
}

#facecanvas {
    width: 100%;

    --b: 3px;
    --c: #000;
    --w: 40px;

    padding: 12px;
    border: var(--b) solid #0000; /* space for the border */
    --_g: #0000 90deg,var(--c) 0;
    --_p: var(--w) var(--w) border-box no-repeat;
    background:
            conic-gradient(from 90deg  at top    var(--b) left  var(--b),var(--_g)) 0    0    / var(--_p),
            conic-gradient(from 180deg at top    var(--b) right var(--b),var(--_g)) 100% 0    / var(--_p),
            conic-gradient(from 0deg   at bottom var(--b) left  var(--b),var(--_g)) 0    100% / var(--_p),
            conic-gradient(from -90deg at bottom var(--b) right var(--b),var(--_g)) 100% 100% / var(--_p);

}

@media (max-width: 768px) {
    #facecanvas {
        --w: 20px;
        padding: 8px;
    }
}

#qrcode{
    position: relative;
}

#loadingWrapper {
    display: none;
    height: 100%;
}

#errorWrapper {
    display: none;
}
#loadingAnimation {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.pulse-container {
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: 91%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.pulse-container span {
    color: white;
    text-align: center;
    font-family: Avenir;
}
.pulse {
    height: 30px;
    width: 30px;
    border: 15px solid #eeecae;
    border-radius: 70px;
    animation: pulse 1s ease-out infinite;
    opacity: 0;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 37%;
    top: -33px;
}
@-moz-keyframes pulse {
    0% {
        transform: scale(0.1, 0.1);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1, 1.1);
        opacity: 0;
    }
}
@-webkit-keyframes pulse {
    0% {
        transform: scale(0.1, 0.1);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1, 1.1);
        opacity: 0;
    }
}
@-o-keyframes pulse {
    0% {
        transform: scale(0.1, 0.1);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1, 1.1);
        opacity: 0;
    }
}
@keyframes pulse {
    0% {
        transform: scale(0.1, 0.1);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1, 1.1);
        opacity: 0;
    }
}

#userCamera{
    background: radial-gradient(57.05% 56.94% at 50.00% 50.00%, #E0F5FD 0%, rgba(238, 245, 255, 0.00) 100%);
    background-position: 350px -100px;
    overflow: hidden;
}
.custom-heading-bold{
    font-size: 20px;
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
    font-weight: 700;
    color: #fff;
}
.custom-logo{
    display: block;
    max-width: 588px;
    margin: 0 auto;
    padding: 10px 0 10px 0;
}
#userResults .custom-logo{
    margin-bottom:0;
    padding: 30px 0 10px 0;
}
.custom-heading-normal{
    font-size: 20px;
    font-weight: normal;
    max-width: 700px;
    text-align: center;
    margin: 0 auto 30px auto;
    color:#fff;
}

#userCamera .custom-heading-normal{
    margin: 25px auto 30px auto;
}

.custom-heading-normal #customEmotionBodyImage{
    margin-bottom: 0;
    padding-bottom:30px;
}
.custom-counter-camera{
    font-size: 50px;
    color:#fff;
    border:2px solid #fff;
    display: block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin:15px auto;
}
.custom-camera-loading{
    max-width: 150px;
    display: block;
    margin: 0 auto;
}
#userCamera .custom-heading-bold{
    margin-top: 100px;
}
#userCamera .custom-counter-camera{
    position: absolute;
    top: 8px;
    right: 24px;
    font-weight: bold;
    color: #fff;
    border: 3px solid #fff;
    width: 40px;
    height: 40px;
    line-height: 35px;
    border-radius: 8px;
    margin: 15px auto;
    font-size: 24px;
    text-shadow: 0 0 2px #000;
    box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
}
#userResults .custom-heading-bold.first-heading{
    padding-top: 20px;
    margin-bottom: 40px;
}
#userResults .custom-heading-normal.age-heading,
#userResults .custom-heading-bold.age-heading{
    font-size:50px;
    margin-top:0;
    margin-bottom:0;
}
#userResults .custom-heading-bold.age-heading{
    font-weight: 700;
}

#userResults .custom-heading-normal.emotion-heading{
    margin-top:40px;
    margin-bottom:0px;
    font-size: 50px;
}
#userResults #customEmotionHeading{
    margin-bottom:40px;
    font-size: 42px;
}
#customEmotionBody{
    font-size: 30px;
    margin-bottom: 60px;
}
#userResults .custom-heading-bold.emotion-heading{
    margin-top:0;
    margin-bottom:0;
    font-size: 40px;
    font-weight: 700;
}
#customEmotionImage{
    max-width: 150px;
    width: 100%;
    margin: 40px auto 40px auto;
    display: block;
    height: fit-content;
}
#downloadBtn,
#restartBtn,
#getResultBtn {
    border: 2px solid #F27415;
}
.custom-para-full-results{
    font-size: 35px;
    text-align: center;
    margin-top: 20px;
    color: #fff;
}
#qrcode{
    text-align: center;
}
#qrcode img{
    margin:0 auto;
}
#userResults .custom-counter-camera{
    position: relative;
    bottom: 150px;
    text-align: center;
}
#finalUserResults{
    background: url('../images/background-blue.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 100%;
    width:800px;
}

#finalUserResults .custom-heading-bold{
    margin-top: 100px;
}
#finalUserResults .custom-counter-camera{
    position: absolute;
    right: 70px;
}
#finalUserResults .custom-heading-bold.first-heading{
    margin-top: 100px;
    margin-bottom: 100px;
}
#finalUserResults .custom-heading-normal.age-heading,
#finalUserResults .custom-heading-bold.age-heading{
    font-size:50px;
    margin-top:0;
    margin-bottom:0;
}
#finalUserResults.custom-heading-bold.age-heading{
    font-weight: 700;
}
#finalUserResults.custom-heading-normal.emotion-heading{
    margin-top:40px;
    margin-bottom:0px;
    font-size: 50px;
}

#finalUserResults .custom-heading-bold.emotion-heading{
    margin-top:0;
    margin-bottom:0;
    font-size: 40px;
    font-weight: 700;
}
#customEmotionImageImage{
    width: 150px;
    height: 150px;
    margin:10px auto 40px auto;
    display: block;
}
.grid{
    width: 100%;
    height: auto;
    display: block;
}
.custom-bg-image{
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}
#loadingWrapper .custom-heading-bold{
    font-size: 70px;
    max-width: 700px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}


#loadingWrapper .custom-heading-normal{
    font-size: 59px;
}

#finalUserResults .final-results-heading-bold{
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    max-width: 650px;
    margin:0px auto 20px auto;
    color:#fff;
    padding-top:60px;
}
#finalUserResults .final-results-heading-normal{
    font-size: 40px;
    font-weight: 400;
    text-align: center;
    max-width: 650px;
    margin:0 auto 50px auto;
    color:#fff;
}
.footer-results{
    max-width: 800px;
    width: 100%;
    display: block;
    margin-top: -23px;
}

#status {
    font-weight: bold;
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 30px;
    height: 30px;
    background: transparent;
}

#systemMessage {
    display: none;
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    color: white;
    padding: 50px 20px 50px 20px;
    width: 80%;
    max-width: 400px;
    background: #0083cb;
    position: fixed;
    top: 59%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
    z-index: 999;
    height: auto;
    line-height: 32px;
    border-radius: 32px;
}


/*FAILSAFE - Preloading the images so that they are available if internet goes down */

body::after {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content: url('../images/background-orange.png') url('../images/background-blue.png');
}

@media only screen and (max-width: 1024px) {
    .result-grid {
        grid-template-areas:
            'b'
            'a'
            'c'
        ;
    }

    .buy-section {
        grid-template-areas:
            'a b'
            'c c'
        ;
    }
}

@media only screen and (max-width: 768px){
    .buy-section .title {
        width: 120px;
    }

    #userResults .custom-heading-normal.age-heading, #userResults .custom-heading-bold.age-heading{
        font-size: 30px;
    }
    #userResults #customEmotionHeading,
    .custom-heading-normal,
    .custom-heading-bold,
    #customEmotionBody{
        font-size: 22px;
    }
    #userResults #customEmotionHeading{
        margin-bottom: 10px;
    }
    #customEmotionImage{
        margin: 20px auto 20px auto;
    }
    #userCamera.custom-heading-bold,
    #userCamera.custom-heading-normal{
        font-size:22px;
    }
    #userResults .custom-counter-camera{
        bottom: 130px;
    }
    #userResults .custom-heading-bold.first-heading{
        margin-bottom: 20px;
    }
    #loadingWrapper .custom-heading-bold,
    #loadingWrapper .custom-heading-normal{
        font-size: 30px;
    }
    .error-message{
        font-size: 22px;
    }
}

svg {
    height: 100vh;
    width: 100vw;
}
path {
    fill: none;
    stroke-width: 2px;
    vector-effect: non-scaling-stroke;
    transform:rotate(-45deg);
    transform-origin: center;
}

#getResultBtn,
#restartBtn {
    font-size: 13px !important;
}

#result_card {
    background: linear-gradient(to right, #A96A47, #007F99);
    border-radius: 32px !important;
    max-width: 500px;
    margin: 0 auto;
}

#result_card .result-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 32px;
}

#result_card_hidden {
    display: none;
    border-radius: 40px;
    background: linear-gradient(to right, #A96A47, #007F99);
    width: 600px;
    height: 613px;
}

#result_card_hidden .result-card {
    box-shadow: none;
    margin: 0 auto;
    width: 600px !important;
    height: 613px !important;
}

#result_card_hidden .cta {
    background: #fff;
    border-radius: 8px;
    padding: 8px 24px;
    width: max-content;
    margin: 8px auto 0 auto;
    color: #000;
}

#result_card .result-card-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 40px;
}

#result_card_hidden .result-card-bg {
    position: absolute;
    border-radius: 32px;
}

.result-card-content {
    position: relative;
    z-index: 2;
}

.stress-bar-text {
    text-shadow: 0px 1px 2px #000;
}

@media (min-width: 768px) {
    #getResultBtn,
    #restartBtn {
        font-size: 17px !important;
    }

    .result-card {
        margin: 0;
    }
}

@media only screen and (max-width: 768px) {
    .custom-card-headline {
        font-size: 14px !important;
    }
    .custom-card-body {
        font-size: 10px !important;
        line-height: 12px !important;
        margin-bottom: 0 !important;
    }

    .result {
        margin-bottom: 1rem !important;
    }

    .buttons {
        padding-top: 1rem !important;
    }

    #getResultBtn,
    #restartBtn {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .magnevie-product {
        margin-top: 1rem !important;
    }

    .mobile-buy-btn {
        display: block !important;
        text-align: left !important;
    }

    .desktop-buy-btn {
        display: none !important;
    }

    .mobile-benefits-btn {
        display: block !important;
    }

    .desktop-benefits-btn {
        display: none !important;
    }

    .user-result-bg {
        padding-top: 1rem !important;
    }

    .mobile-buy-btn span {
        text-align: left !important;
    }

    .card-stress-detector-img {
        margin-bottom: 0.5rem !important;
    }
}

@media only screen and (min-width: 768px) {
    .mobile-buy-btn {
        display: none !important;
    }

    .desktop-buy-btn {
        display: block !important;
    }

    .mobile-benefits-btn {
        display: none !important;
    }

    .desktop-benefits-btn {
        display: block !important;
    }
}



