@import url('https://fonts.cdnfonts.com/css/open-sans');
@font-face {
font-family: 'CiutadellaRoundedBold';
      src: url('../fonts/CiRo2002-Bd.eot'); /* IE9 Compat Modes */
      src: url('../fonts/CiRo2002-Bd.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
           url('../fonts/CiRo2002-Bd.woff2') format('woff2'), /* Modern Browsers */
           url('../fonts/CiRo2002-Bd.woff') format('woff'), /* Modern Browsers */
           url('../fonts/CiRo2002-Bd.ttf') format('truetype'), /* Safari, Android, iOS */
           url('../fonts/CiRo2002-Bd.svg#font') format('svg'); /* Legacy iOS */
      font-style: normal;
      font-weight: normal;
      text-rendering: optimizeLegibility;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #e6e6e6;
}
h1, h2, h3, h4, h5, h6 { 
    font-family: 'CiutadellaRoundedBold', sans-serif; 
    color: #522367; 
    line-height: 1em; 
    margin-bottom: 1em;
}
h1 {
    color: #65509C;
}
.orange { color: #FF6955;}
h1 { font-size: 2em; line-height: 1em; font-weight: 900;}
h2 { font-size: 1.6em; line-height: 1em; font-weight: 900;}
h3 { font-size: 1.5em; line-height: 1em; font-weight: 800;}
h4 { font-size: 1.4em; line-height: 1em; font-weight: 700;}
h5 { font-size: 1.3em; line-height: 1em; font-weight: 600;}
h6 { font-size: 1.2em; line-height: 1em; font-weight: 600; 
    color: #ffffff; 
    padding: 5px 0px 5px 0px; 
    text-align: left; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    height: 90px;
}
h6 span:nth-child(1) {
    color: white; 
    padding: 3px 8px 3px 8px; 
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 44.8px */
    letter-spacing: 0.96px; 
}
h6 span:nth-child(2) {
    background: white; 
    color: #EF7D0A;
    padding: 0.15rem 0.75em 0.10rem 0.75em;
    border-radius: 40px;
    margin-right: 25px;
    text-align: center;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 44.8px */
    letter-spacing: 0.96px;
    text-transform: uppercase; 
}
p { color: #522367; line-height: 1.4em;}
.question {
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
    letter-spacing: -0.72px;
    padding: 20px 0px 20px 0px;
    max-width: 690px;
    margin-left: auto;
    margin-right: auto;
}
#quiz-results-blurb p a:link,
#quiz-results-blurb p a:visited {
    color: #522367;
    text-decoration: underline;
    font-weight: 700;
}
#quiz-results-blurb p a:hover {
    color: #522367;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 992px) {
    h1 { font-size: 2.6em; line-height: 1em;}
    h2 { font-size: 1.7em; line-height: 1em;}
    h3 { font-size: 1.4em; line-height: 1em;}
    h4 { font-size: 1.2em; line-height: 1em;}
    h5 { font-size: 1.0em; line-height: 1em;}
    h6 { font-size: 0.9em; line-height: 1em; height: 70px;}
    p { font-size: 0.8em; line-height: 1.4em;}
    .question { font-size: 1.5em;
    padding: 20px 0px 20px 0px;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2.3em; line-height: 1em;}
    h2 { font-size: 1.5em; line-height: 1em;}
    h3 { font-size: 1.3em; line-height: 1em;}
    h4 { font-size: 1.1em; line-height: 1em;}
    h5 { font-size: 1.0em; line-height: 1em;}
    h6 { font-size: 0.9em; line-height: 1em; height: 60px;}
    p { font-size: 0.8em; line-height: 1.4em;}
    .question { font-size: 28px;
    padding: 20px 0px 20px 0px;
    }
}
@media (max-width: 576px) {
    h1 { font-size: 2em; line-height: 1em;}
    h2 { font-size: 1.4em; line-height: 1em;}
    h3 { font-size: 1.2em; line-height: 1em;}
    h4 { font-size: 1.1em; line-height: 1em;}
    h5 { font-size: 1.0em; line-height: 1em;}
    h6 { font-size: 0.9em; line-height: 1em; height: 50px;}
    p { font-size: 0.8em; line-height: 1.4em;}
    .question { font-size: 24px;
    padding: 20px 0px 20px 0px;
    }
}

/* Layout */
#quiz-header,
#quiz-header-q1,
#quiz-header-q2,
#quiz-header-q3,
#quiz-header-q4,
#quiz-header-q5,
#quiz-header-q6,
#quiz-start-screen,
#quiz-end-screen,
#quiz-results-screen,
#quiz-gameover-screen,
.question-container  {
    text-align: center;
    padding: 100px 20% 100px 20%;
}
#quiz-start-screen {
    padding: 20px 20% 20px 20%;
}
.question-container  {
    padding: 10px 30px 100px 30px;
}
#quiz-header {
    padding: 0px 0px 0px 0px;
}
#quiz-header-results {
    background-size: cover;
    border-radius: 25px;
    margin: 0px 20px 30px;
    margin-left: -12.5%;
    margin-right: -12.5%;
    min-height: 400px;
    display: none;
    margin-top: -100px;
}
#quiz-counter,
#quiz-wheel-header {
    padding: 0px 0px 0px 0px;
}
#quiz-results-screen {
    text-align: center;
    padding: 0px 10% 20px 10%;
}
#quiz-gameover-screen {
    text-align: center;
    padding: 60px 10% 20px 10%;
}
@media (max-width: 992px) {
    #quiz-header-q1,
    #quiz-header-q2,
    #quiz-header-q3,
    #quiz-header-q4,
    #quiz-header-q5,
    #quiz-header-q6,
    #quiz-start-screen,
    #quiz-end-screen,
    #quiz-results-screen,
    #quiz-gameover-screen,
    .question-container  {
        padding: 80px 20% 80px 20%;
    }
    #quiz-start-screen {
        padding: 20px 20% 20px 20%;
    }
    .question-container  {
        padding: 10px 30px 80px 30px;
    }
    #quiz-counter,
#quiz-wheel-header {
    padding: 0px 0px 0px 0px;
    }
    #quiz-results-screen {
        padding: 0px 9% 80px 9%;
    }
    #quiz-gameover-screen {
        padding: 80px 9% 80px 9%;
    }
}
@media (max-width: 768px) {
    #quiz-header-q1,
    #quiz-header-q2,
    #quiz-header-q3,
    #quiz-header-q4,
    #quiz-header-q5,
    #quiz-header-q6,
    #quiz-start-screen,
    #quiz-end-screen,
    #quiz-results-screen,
    #quiz-gameover-screen,
    .question-container  {
        padding: 65px 15% 65px 15%;
    }
    #quiz-start-screen {
        padding: 20px 15% 20px 15%;
    }
    .question-container  {
        padding: 10px 15% 65px 15%;
    }
    #quiz-counter {
    padding: 0px 0px 0px 0px;
    }
    #quiz-results-screen {
        padding: 0px 8% 65px 8%;
    }
    #quiz-gameover-screen {
        padding: 65px 8% 65px 8%;
    }
}
@media (max-width: 576px) {
    #quiz-header-q1,
    #quiz-header-q2,
    #quiz-header-q3,
    #quiz-header-q4,
    #quiz-header-q5,
    #quiz-header-q6,
    #quiz-start-screen,
    #quiz-end-screen,
    #quiz-results-screen,
    #quiz-gameover-screen,
    .question-container  {
        padding: 50px 10% 50px 10%;
    }
    #quiz-start-screen {
        padding: 20px 10% 20px 10%;
    }
    .question-container  {
        padding: 10px 10% 50px 10%;
    }
    #quiz-counter {
        padding: 0px 0px 0px 0px;
    }
    #quiz-results-screen {
        padding: 0px 7% 50px 7%;
    }
    #quiz-gameover-screen {
        padding: 50px 7% 50px 7%;
    }
}
#quiz {
    background-color: #ffffff;
    padding-top: 0px;
}
#quiz-header {
    background-color: #ffffff;
    background:url(../img/header-1a.jpg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    margin: 0px 0px 12px 0px;
    min-height: unset;
}
#quiz-header.minh,
#quiz-header-results  {
    min-height: 400px;
}
#quiz-header-results  {
}
@media (max-width: 992px) {
    #quiz-header {
        background:url(../img/header-1a.jpg);
        background-size: cover;
        background-position: bottom center;
        background-repeat: no-repeat;
        min-height: unset;
    }
    #quiz-header.minh,
    #quiz-header-results {
        min-height: 350px;
    }
    #quiz-header-results {
        margin-left: -11%;
        margin-right: -11%;
    }
}
@media (max-width: 768px) {
    #quiz-header {
        background:url(../img/header-1a.jpg);
        background-size: cover;
        background-position: bottom center;
        background-repeat: no-repeat;
        min-height: unset;
    }
    #quiz-header.minh,
    #quiz-header-results  {
        min-height: 300px;
    }
    #quiz-header-results  {
        margin-left: -10%;
        margin-right: -10%;
    }
}
@media (max-width: 576px) {
    #quiz-header {
        background:url(../img/header-1a.jpg);
        background-size: cover;
        background-position: bottom center;
        background-repeat: no-repeat;
        min-height: unset;
    }
    #quiz-header.minh,
    #quiz-header-results  {
        min-height: 250px;
    }
    #quiz-header-results  {
        margin-left: -9%;
        margin-right: -9%;
    }
}

/* Sections */
#quiz-controls {
    display: none;
}
#quiz-header-q1 {
    display: none;
    background-color: #eeeecc;
}
#quiz-header-q2 {
    display: none;
    background-color: #eeccee;
}
#quiz-header-q3 {
    display: none;
    background-color: #cceeee;
}
#quiz-header-q4 {
    display: none;
    background-color: #eeeecc;
}
#quiz-header-q5 {
    display: none;
    background-color: #eaacae;
}
#quiz-header-q6 {
    display: none;
    background-color: #ccffcc;
}

#quiz-start-screen {
    background-color: #ffffff;
}
#quiz-end-screen {
    background-color: #ffffff;
}
#questions {
    background-color: #ffffff;
    font-family: 'CiutadellaRoundedBold', sans-serif; 
}
#question p {
    font-family: 'CiutadellaRoundedBold', sans-serif; 
    color: #522367;
    text-align: center;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%; /* 41.4px */
    letter-spacing: -0.72px; 
    margin-top: 60px;
}
#quiz-counter,
#quiz-wheel-header {
    background-color: #65509C;
}
#quiz-wheel-header {
    /* margin-left: -20px;
    margin-right: -20px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 40px;
    padding-right: 40px;
    z-index: 2;
    position: relative;
}
#quiz-wheel-header h6 {
    font-size: 1.5em;
    margin-bottom: 0px;
    text-transform: uppercase;
}
#quiz-results-screen {
    background-color: #ffffff;
}
#quiz-gameover-screen {
    background-color: #ffffff;
}
.question-container {
    background-color: #ffffff;
}

/* Quiz questions */
.quiz-container {
    padding: 0em;
    max-width: 100%;
    margin: 0em auto;
    max-width: 900px;
    max-height: 800px;
}
#quiz-header p {
    margin-bottom: 0px;
}
.answers a {
    display: block;
    padding: 0.5em 1em;
    margin-bottom: 0.5em;
    border-radius: 10px;
    background: transparent;
    padding-right: 2.5em;
    height: 100%;
}
.answers li {
    text-align: left;
    background:url(../img/circle-blue.png), #f1eef2;
    background-size: contain;
    background-position: center right 10px;
    background-repeat: no-repeat;
    background-size: 25px;
    border-radius: 10px;
}
.answers li:hover {
    text-align: left;
    background:url(../img/circle-white.png), #e6d9eb;
    background-size: contain;
    background-position: center right 10px;
    background-repeat: no-repeat;
    background-size: 25px;
    border-radius: 10px;
}
.answers li:hover a {
    /* color: white; */
}
.answers li:active {
    text-align: left;
    background:url(../img/circle-white-filled.png), #dfbeec;
    background-size: contain;
    background-position: center right 10px;
    background-repeat: no-repeat;
    background-size: 25px;
    border-radius: 10px;
}
@media (max-width: 421px) {
    .answers {
        grid-template-columns: 100%;
        width: 100%;
    }
}

/* Form page */
#quiz-results-form-container {
}
#quiz-results-form-container-left {
    background: #244ba8;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    z-index: 2;
}
#quiz-results-form-container-left > img {
    /* width: 326px; */
    /* height: 381px; */
    width: 360px;
    margin-left: -70px;
    margin-top: -30px;
}
#quiz-results-form-container-right {
    z-index: 1;
}
@media (max-width: 576px) {
    #quiz-results-form-container-left {
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }
    #quiz-results-form-container-right {
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }
}
#quiz-results-form {
    text-align: left;
    padding: 30px;
}
input {
    background-color: #F2F7FC;
    border: 0px;
    padding: 0.7em 0.7em 0.7em 0.7em;
    font-size: 1em;
    border-radius: 5px;
}
::placeholder {
    color: #a4b6dc;
    font-size: 0.8em;
}
input#firstname{
    width: 100%;
    margin: 0px;
}
input#lastname {
    width: 100%;
    margin: 0px;
}
input#email {
    width: 100%;
}
.form-check {
    margin-bottom: 2em;
}
.form-check-label {
    font-size: 0.6em;
    color: #a4b6dc;
    padding-top: 8px;
    padding-left: 5px;
}
.form-check-input {
    background-color: #f2f7fc;
    border: 0px;
}

/* End page */
.social-shares {
}
.social-icons {
}
.quiz-gameover-screen-window {
    background-color: #ffffff;
    padding: 3em 2em 3em 2em;
    margin-bottom: 4em; 
    border-radius: 25px;
    margin-top: -200px;
}

@media (max-width: 576px) { 
    .quiz-gameover-screen-window {
        background-color: #f2f7fc;
        margin-top: 0px;
        border-top-right-radius: 25px;
        border-top-left-radius: 25px;
    }
    #quiz-gameover-screen {
        border-top-right-radius: 25px;
        border-top-left-radius: 25px;
    }
}

/* Buttons */
#quiz-buttons a,
#quiz-home-btn,
.quiz-container .quiz-button,
#quiz-retry-btn,
#quiz-respin-btn,
#quiz-end-btn {
    font-family: 'CiutadellaRoundedBold', sans-serif; 
    display: inline-block;
    border-radius: 10px;
    background: #EA580C; 
    color: #F5F5F5;
    text-align: center;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 36.4px */ 
    -webkit-touch-callout: none; /* iOS Safari */
        -webkit-user-select: none; /* Safari */
        -khtml-user-select: none; /* Konqueror HTML */
        -moz-user-select: none; /* Old versions of Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}
#quiz-retry-btn {
    margin-top: 50px;
}
#quiz-buttons a:hover,
#quiz-home-btn:hover,
.quiz-container .quiz-button:hover,
#quiz-retry-btn:hover, 
#quiz-respin-btn:hover,
#quiz-end-btn:hover {
    background: #FF6600; 
    color: #fff;
    cursor: pointer;
}

/* Misc */
.quiz-results-state #quiz-controls {
    display: none !important;
}
#quiz-start-screen p,
#quiz-results-blurb {
    color: #000;
}
#quiz-start-btn {
    margin-top: 1rem;
}
#quiz-start-screen,
#quiz-counter {
}
.active-question {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}


/* wheel */
#chart-holder {
    /* height: 680px; */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
#chart-holder img {
    position: relative;
    width: 100%;
}
#chart {
    font-family: 'CiutadellaRoundedBold', sans-serif; 
    overflow: visible;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(-100% - 3px);
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    transform: translate3d(0,0,0);
    text-align: center;
    position: relative;
    z-index: 9;
    opacity: 1;
    font-size: 150%;
}
svg {
    width: 100%;
    height: 100%;
    transform: translate3d(0px, 0px, 0px);
}
g.chartholder {
    width: 100%;
    height: 100%;
}
g.slice:nth-child(2n) path {
    fill: #EDECF0;
}
g.slice:nth-child(2n) text {
    font-family: 'CiutadellaRoundedBold', sans-serif; 
    fill: #65509C;
}
g.slice:nth-child(2n+1) path {
    fill: #65509C;
}
g.slice:nth-child(2n+1) text {
    font-family: 'CiutadellaRoundedBold', sans-serif; 
    fill: #EDECF0;
}
@media (max-width: 561px) {
    /* #chart-holder {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    #chart {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: -100%;
        aspect-ratio: 1 / 1;
    }
    svg {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: visible;
    }

    svg g.chartholder {
        width: 100%;
        scale: calc(320 / 500);
    } */
}
@media (max-width: 421px) {
    /* #chart-holder {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    #chart {
        /* scale: 0.5;
        margin-left: -20%;
        margin-top: -30%;
        margin-bottom: -100px; */
    } */
}
@media (max-width: 320px) {
}

/* SVG scaling */
/* 
@media (max-width: 560px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (465 / 500));} 
}
@media (max-width: 540px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (445 / 500));} 
}
@media (max-width: 520px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (425 / 500));} 
}
@media (max-width: 500px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (405 / 500));} 
}
@media (max-width: 480px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (385 / 500));} 
}
@media (max-width: 440px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (365 / 500));} 
}
@media (max-width: 420px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (345 / 500));} 
}
@media (max-width: 400px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (325 / 500));} 
}
@media (max-width: 380px) { 
    svg {padding: 5.3571428571429%;} 
    svg g.chartholder {scale: calc(0.946428571428571 * (305 / 500));} 
} */

/* outer circle */

#lottie {
    background-color: transparent;
    width:100%;
    height:100%;
    display:block;
    overflow: hidden;
    transform: translate3d(0,0,0);
    text-align: center;
    position: relative;
    z-index: 10;
    opacity: 1;
}


/* results display */
#results-display {
    background: #ffffff;
    /* z-index: 10; */
    position: relative;
    /* margin-top: -500px; */
    -webkit-transition: 1s ease-in-out;
    -moz-transition: 1s ease-in-out;
    -o-transition: 1s ease-in-out;
    transition: 1s ease-in-out;
    display: none;
}


/* logo */
.staysure {
    background-image: url(../img/staysure-logo.png);
    background-size: 158px 41px;
    width: 158px;
    height: 41px;
    margin-top: 100px;
}
.staysure.header {
    background-image: url(../img/staysure-logo-white.png);
    margin-top: 0px;
}

@media (max-width: 421px) {
    #quiz-wheel-header {
        margin-left: 0px;
        margin-right: 0px;
        padding-left: 40px;
        padding-right: 40px;
    }
    #quiz-wheel-header h6 {
        font-size: 1em;
        width: calc(100% - 80px);
    }
    .staysure.header {
        background-size: 79px 20px;
        width: 79px;
        height: 20px;
    }
}

.staysure a {
    display: block;
    height: 100%;
}
/* Matts CSS tweak*/
/* make header consistent throughout, fix issue where logo is obstructed by h6 element */
h6{
	height:70px!important;
}
#quiz-wheel-header h6{
	width: calc(100% - 158px);
	padding-right: 12px;
	min-height: 70px;
	height:auto;
}

#quiz-wheel-header {
    min-height: 70px;
}

@media(max-width: 768px){
	#quiz-wheel-header h6,#quiz-wheel-header{
		min-height: 60px;
	}
}
@media(max-width: 576px){
#quiz-wheel-header h6{
	min-height:50px!important;
}
#quiz-wheel-header{
	min-height:50px!important;
}
	#quiz-wheel-header h6{
	width: calc(100% - 158px)!important;
}
}
@media (max-width: 421px){
	#quiz-wheel-header h6{
	width: calc(100% - 80px)!important;
}
}
	
/* less padding on end screen */

@media(max-width: 576px){
	.px-5{
	padding: 20px 10% 20px 10%!important;
	}
}
/* less margin on end retry btn */
@media (max-width: 992px){
#quiz-retry-btn{
	margin-top: 20px;
	}
}

#quiz-header{
	background-position-y:0px!important;
}
	