* {
    box-sizing: border-box;
    outline: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

@keyframes rangeScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@font-face {
    font-family: FontAwesome;
    src: url(FontAwesome.otf);
}

body {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-bottom: 80px;
    /* for mobile, to leave some space at the bottom */
    background-color: white;
    font-family: "proxima-nova", sans-serif;
    color: white;
    background: #fff;
}


/****************
***********

------------------   C U S T O M    R A N G E    U I

***********
*****************/

div.start-tooltip {
    display: block;
    background-color: #09728A;
    width: 150px;
    padding: 20px;
    border-radius: 5px;
    position: absolute;
    top: 55px;
    left: -30px;
    box-shadow: 0px 0px 10px #CCC;
}

div.start-tooltip:before {
    content: "▲";
    position: absolute;
    top: -12px;
    left: 68px;
    color: #09728A;
}

.tooltip-alert {
    display: none;
    background-color: #09728A;
    width: 200px;
    padding: 20px;
    padding-bottom: 10px;
    border-radius: 5px;
    margin-top: -120px;
    position: absolute;
    transform: translateX(169%);
    box-shadow: 0px 0px 5px #888;
}

.tooltip-alert:after {
    content: "▼";
    position: absolute;
    bottom: -13px;
    left: 68px;
    color: #09728A;
}

.tooltip-alert p {
    color: white;
}

@media screen and (min-width:1080px) {
    main {
        position: absolute;
        bottom: 50%;
        right: 50%;
        -webkit-transform: translate(50%, 50%);
        -moz-transform: translate(50%, 50%);
        -ms-transform: translate(50%, 50%);
        transform: translate(50%, 50%);
        width: 100%;
    }
}

main h1 {
    font-size: 18px;
    font-weight: 300;
    color: #80dfbf;
    display: inline-block;
    margin-right: 20px;
    padding: 0;
}

main h2 {
    font-size: 38px;
    color: #80dfbf;
    font-weight: 300;
    margin-top: 10px;
    padding: 0;
    line-height: 1.2;
}

.image img {
    border-radius: 50%;
}

.question {
    display: none;
    /* hidden, but displayed with js */
    height: 400px;
    /* not glitched on second */
}

.question:first-child {
    display: block;
    /* first question is displayed */
}


/*  input range styling  */

.liActive {
    font-weight: 600;
    color: #09728A !important;
    transition: ease-in-out all 0.2s;
    animation: rangeScale 0.2s linear;
}

.range-nav {
    position: relative;
    top: 0;
    left: -32px;
    bottom: 0;
    font-family: "proxima-nova", sans-serif;
}

.range-nav li {
    display: inline-block;
    width: 95px;
    color: #AAA;
    margin-top: -30px;
    font-size: 18px;
    vertical-align: top;
    transition: ease-in-out all 0.2s;
    padding-top: 40px;
    max-height: 40px;
}

.range-nav li:hover {
    cursor: pointer;
}

.next {
    font-size: 18px;
    margin-top: -50px;
    margin-right: 0px;
    vertical-align: middle;
    font-weight: 500;
    color: #80dfbf;
    position: absolute;
    left: 45%;
    width: 200px;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: -135px;
}

.next:hover {
    cursor: pointer;
}

.next a {
    display: inline-block;
    margin-right: 20px;
    margin-top: -20px;
}

.next i {
    margin-left: -45px;
    vertical-align: middle;
    background-color: #80dfbf;
    color: white;
    font-size: 38px;
    border-radius: 50%;
    padding: 8px 20px;
    padding-bottom: 10px;
    padding-left: 23px;
    transition: ease-in-out all 0.2s;
}

.next i:hover {
    transform: translateX(10px);
    transition: ease-in-out all 0.2s;
}

.box {
    width: 350px;
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 5px;
    margin-top: 30px;
    margin-left: -80px;
    background-color: #fff;
    color: #AAA;
    opacity: 0;
    font-weight: 400;
    transition: ease-in-out all 0.15s;
    position: relative;
    transform: translateY(20px);
    box-shadow: 0px 0px 20px #DDD;
}

.box:before {
    content: "▲";
    position: absolute;
    top: -15px;
    left: 90px;
    color: #fff;
}

.box:after {
    content: url(../images/close1.svg);
    position: absolute;
    bottom: -25px;
    right: -25px;
    color: white;
    font-size: 21px;
    width: 50px;
    display: inline-block;
}

.box-correct:after {
    content: url(../images/check1.svg);
    color: white;
    font-size: 21px;
    width: 50px;
    display: inline-block;
}

.box-correct:before {
    content: "▲";
    position: absolute;
    top: -15px;
    left: 90px;
    color: #09728A;
}

.box-correct {
    background-color: #09728A;
    color: white;
    box-shadow: 0px 0px 20px #AAA;
    margin-top: 30px;
}

.active-box {
    display: block;
    opacity: 1;
    transform: translateY(0px);
    transition: ease-in-out all 0.3s;
}


/* input range styling  */

input[type=range] {
    -webkit-appearance: none;
    width: 450px;
    margin: 11.1px 0;
    position: relative;
    z-index: 20;
    margin-top: 70px;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2.8px;
    cursor: pointer;
    box-shadow: 0.9px 0.9px 1.7px rgba(0, 34, 0, 0), 0px 0px 0.9px rgba(0, 60, 0, 0);
    background: #DDD;
    border-radius: 9.3px;
    border: 0px solid rgba(24, 213, 1, 0);
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 0.9px 0.9px 8.4px #aaaaaa, 0px 0px 0.9px #b7b7b7;
    border: 0px solid rgba(131, 229, 132, 0);
    height: 25px;
    width: 25px;
    border-radius: 50px;
    background: #09728a;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -11.1px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: rgba(79, 186, 210, 0.4);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 2.8px;
    cursor: pointer;
    box-shadow: 0.9px 0.9px 1.7px rgba(0, 34, 0, 0), 0px 0px 0.9px rgba(0, 60, 0, 0);
    background: rgba(48, 164, 190, 0.4);
    border-radius: 9.3px;
    border: 0px solid rgba(24, 213, 1, 0);
}

input[type=range]::-moz-range-thumb {
    box-shadow: 0.9px 0.9px 8.4px #aaaaaa, 0px 0px 0.9px #b7b7b7;
    border: 0px solid rgba(131, 229, 132, 0);
    height: 25px;
    width: 25px;
    border-radius: 50px;
    background: #09728a;
    cursor: pointer;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 2.8px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 40px 0;
    /*remove default tick marks*/
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: rgba(38, 129, 149, 0.4);
    border: 0px solid rgba(24, 213, 1, 0);
    border-radius: 18.6px;
    box-shadow: 0.9px 0.9px 1.7px rgba(0, 34, 0, 0), 0px 0px 0.9px rgba(0, 60, 0, 0);
}

input[type=range]::-ms-fill-upper {
    background: rgba(48, 164, 190, 0.4);
    border: 0px solid rgba(24, 213, 1, 0);
    border-radius: 18.6px;
    box-shadow: 0.9px 0.9px 1.7px rgba(0, 34, 0, 0), 0px 0px 0.9px rgba(0, 60, 0, 0);
}

input[type=range]::-ms-thumb {
    box-shadow: 0.9px 0.9px 8.4px #aaaaaa, 0px 0px 0.9px #b7b7b7;
    border: 0px solid rgba(131, 229, 132, 0);
    height: 25px;
    width: 25px;
    border-radius: 80px;
    background: #09728a;
    cursor: pointer;
    height: 25px;
}

input[type=range]:focus::-ms-tooltip {
    display: none;
}

input[type=range]:focus::-ms-fill-lower {
    background: rgba(48, 164, 190, 0.4);
}

input[type=range]:focus::-ms-fill-upper {
    background: rgba(79, 186, 210, 0.4);
}

.selectric {
    display: none;
}

.alert {
    opacity: 0;
    transition: ease-in-out all 0.2s;
}

.correct-alert {
    display: none;
}

p {
    color: #91969b;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.6;
}

.active-alert {
    display: none;
}

.top-image {
    border-radius: 50%;
}

.top-image {
    display: none;
}

.back {
    position: absolute;
    left: 5%;
    bottom: -38%;
    color: #CCC;
    display: block;
}

.back:hover {
    cursor: pointer;
}

.back i {
    margin-left: -40px;
    vertical-align: middle;
    background-color: #DDD;
    color: white;
    font-size: 28px;
    border-radius: 50%;
    padding: 2px 13px;
    padding-bottom: 5px;
    padding-left: 12px;
    margin-right: 10px;
    transition: ease-in-out all 0.2s;
}


/****************
***********

------------------   B O T T O M    N A V

***********
*****************/

.bottom-nav {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    text-align: center;
}

.bottom-nav span {
    color: #80dfbf;
    font-size: 18px;
}

.bottom-nav a {
    margin: 0 20px;
    background-color: #80dfbf;
    color: white;
    font-size: 28px;
    padding: 9px 21px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-top: -4px;
}

.next {
    display: none;
}

.bottom-nav span:nth-child(2) {
    color: #DDD;
}

.next-bottom a,
.back-to-page a{
    background-color: #80dfbf;
    color: white;
}

.back-bottom a,
.begin a {
    background-color: #DDD;
    color: white;
}

.fa-angle-left {
    position: absolute;
    top: 50%;
    left: 48%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.fa-angle-right {
    position: absolute;
    top: 50%;
    left: 53%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}


/*  select open arrow  */

.selectric .button {
    margin-top: 10px;
}


/****************
***********

------------------   M E D I A  Q U E R I E S

***********
*****************/

@media screen and (min-width:1200px) {
    .answer {}
    .image-last {
        margin-top: 80px;
    }
    .next i {
        margin-left: -20px;
    }
}

@media screen and (min-width:980px) {
    .bottom-nav {
        bottom: -25%;
    }
}

@media screen and (max-width:1170px) {
    .next i {
        margin-left: -20px;
    }
    .question:nth-child(2) .back {
        position: absolute;
        bottom: -50%;
    }
    .back {
        position: absolute;
        bottom: -50%;
    }
}

@media screen and (max-width:1024px) {
    .tooltip-alert {
        display: none !important;
    }
    .back {
        display: none;
    }
    .next {
        display: none;
    }
    .bottom-nav {
        display: inline-block;
        width: 60%;
        margin-top: 50px;
        position: absolute;
        left: 50%;
        margin: 50px auto !important;
    }
}

@media screen and ( max-width:1000px) {
    body {
        min-height: 110%;
        height: auto;
    }
    .active-alert {
        display: block;
        opacity: 1;
        transition: ease-in-out all 0.2s;
    }
    .active-alert p {
        color: white;
    }
    .image img {
        display: none;
    }
    input[type=range] {
        display: none;
    }
    main {
        text-align: center;
        margin-top: 20px;
    }
    main h2 {
        font-size: 24px;
        font-weight: 400;
        margin-bottom: 20px;
    }
    .range-nav {
        display: none;
    }
    .selectric {
        display: block;
        background-color: #09728A;
        position: relative;
        margin-top: 50px;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    .selectric li {
        width: 100%;
    }
    .alert {
        background-color: #09728A;
        padding: 10px;
        color: white;
        margin-top: 5%;
        display: none;
    }
    .correct-alert {
        background-color: #09728A;
        padding: 10px;
        color: white;
        margin-top: 10%;
    }
    .next {
        margin-top: 0px;
        width: 100%;
    }
    .top-image {
        display: block;
        position: relative;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    .next-bottom,
    .next-to-page {
        float: none !important;
    }
    .back-bottom,
    .begin {
        display: none;
    }
    .question {
        margin-top: 10%;
    }

    div.bottom-nav.col-md-6 { display:block !important; }
}

@media screen and (max-width:720px) {
    body {
        min-height: 120%;
        height: auto;
    }
    .selectric-above .selectric-items {
        top: auto;
        bottom: 50%;
    }
    .tooltip-alert {
        display: none !important;
    }
    .bottom-nav {
        display: inline-block;
        width: 90%;
        margin-top: 50px;
        position: absolute;
        left: 50%;
        margin: 50px auto !important;
    }
    main {
        position: relative;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }

        div.bottom-nav.col-md-6 { display:block !important; }

}

@media screen and (max-width:500px) {
    body {
        min-height: 120%;
        height: auto;
    }
    .selectric-above .selectric-items {
        top: auto;
        bottom: 50%;
    }
    .tooltip-alert {
        display: none !important;
    }
    .bottom-nav {
        display: inline-block;
        width: 100%;
        margin-top: 50px;
        margin: 50px auto !important;
    }
    main {
        position: relative;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }

        div.bottom-nav.col-md-6 { display:block !important; }


    /*  selectric displayed above input  */
    .selectric-above .selectric-items { bottom:80%; }

}

@media screen and (max-width:425px) {
    .bottom-nav span {
        width: 100%;
        margin-bottom: 20px;
        display: block;
    }
    .bottom-nav span:nth-child(2) {
        display: none;
    }
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    /* IE10+ CSS styles go here */
    .range-nav {
        margin-top: -50px;
    }
    body {
        overflow-x: hidden;
    }
    input[type=range] {
        margin-top: 0px;
    }
    .bottom-nav {
        bottom: -25%;
    }
    img[src*=".svg"] {
        width: 20px;
        height: 20px;
    }
}


/* target edge */

@supports (-ms-accelerator:true) {
    .range-nav {
        margin-top: -50px;
    }
    body {
        overflow-x: hidden;
    }
    input[type=range] {
        margin-top: 0px;
    }
    .bottom-nav {
        bottom: -25%;
    }
}
