@font-face {
    font-family: 'SegoeUI_semilight';
    src: url('../font/segoeuisl.ttf') format('truetype'); /* Safari, Android, iOS */
}

/**
 * apply a natural box layout model to all elements,
 * but allowing components to change
 */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* helper */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 100;
}
/* clear floats */
.clearfix:after {
    content: " ";
    display: table;
    clear: both;
}

/* text-center helper */
.text-center {
    text-align: center;
}

/* for responsive images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'SegoeUI_semilight', sans-serif;
    line-height: 1.2;
    background-color: #85b459;
    color: #fff;
}

.body-blue {
    background: #41a3c1;
}

.body-green {
    background-color: #85b459;
}

.body-red {
    background-color: #ce5c33;
}

.body-yellow {
    background-color: #e1ad38;
}

/**
 * Cada pagina tem uma cor e um background diferente
 */
.quiz--orange {
    background: #e1ad38 url('../imgs/top-green.png') no-repeat;
    background-size: cover;
}

.quiz--red {
    background: #ce5c33 url('../imgs/top-orange.png') no-repeat;
    background-size: cover;
}

.quiz--blue {
    background: #41a3c1 url('../imgs/top-red.png') no-repeat;
    background-size: cover;
}

.quiz--green {
    background: #85b459 url('../imgs/top-blue.png') no-repeat;
    background-size: cover;
}

/**
 * main container of all elements
 * should center vertically and horizontally
 */
main {
    width: 1375px;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

fieldset {
    border: none;
    padding: 0;
}

header {
    width: 1375px;
    margin: 35px auto 0;
}

.header-home a {
    display: inline-block;
}

/* ==========================================================================
   home section styles
   ========================================================================== */

.home {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.home__left,
.home__right {
    width: 50%;
}

.home__left h1 {
    font-size: 3.375rem; /* 54px / 16px */
    font-weight: normal;
    margin-bottom: 7.878787878788%; /* 65px / 825px */
}

.home__left input {
    width: 357px;
    border: none;
    padding: 0 10px;
    height: 36px;
    border-radius: 0;
}

.home__left input[type="submit"] {
    border: none;
    width: auto;
    background: none;
    padding: 0;
    display: inline-block;
    font-size: 1.5rem; /* 24px / 16px */
    text-decoration: none;
    color: #fff;
    margin-top: 20px;
    cursor: pointer;
}

.home__left input:focus {
    outline: 0;
}

.home__left label {
    display: block;
    font-size: 1.3rem;
}

.home__left label:not(.home__label-low) {
    margin-bottom: 7px;
}

.home__left .home__label-low {
    font-size: 0.75rem; /* 12px / 16px */
}

.home__right img {
    margin: 0 auto;
}


/* ==========================================================================
   Quiz pages
   ========================================================================== */

.quiz header {
    padding: 0;
    margin: 0;
}

@media screen and (max-width: 769px) {
    /*.quiz header {*/
        /*padding: 10px;*/
    /*}*/

    main {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 40px auto;
    }

    body {
        background-image: none !important;
    }

    .quiz--orange main {
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        margin: auto;
    }

    .quiz--orange header {
        background-color: #85b459;
    }

    .quiz--red header {
        background-color: #e1ad38;
    }

    .quiz--blue header {
        background-color: #ce5c33;
    }

    .quiz--green header {
        background-color: #41a3c1;
    }

    header a:nth-child(1) {
        float: left;
        margin-right: 0;
    }

    header a:nth-child(2) {
        float: right;
        margin-left: 0;
    }
}

.office_logo {
    margin-left: 40px;
    margin-bottom: 21px;
    width: 110px;
}

.quiz_creative__logo,
.quiz__logo {
    display: inline-block;
    float: left;
    margin: 2.822916666667% 0 1.822916666667% 1.822916666667%;
}


.quiz_creative__logo {
    margin-left: 1.822916666667%;
}

.quiz__logo .office_logo {
    margin-bottom: 0;
}

.create_logo {
    width: 160px;
}

.office_logo.fix {
    margin-left: 0;
}

@media screen and (max-width: 1060px) {
    .create_logo {
        width: 120px;
    }

    .office_logo.fix {
        width: 90px;
    }
}

@media screen and (max-width: 769px) {
    .create_logo {
        width: 140px;
    }

    .office_logo.fix {
        width: 120px;
    }
    .quiz_creative__logo {
        margin-left: 30px;
    }
    .quiz_creative__logo, .quiz__logo {
        margin: 35px 20px;
    }
}


.quiz h1 {
    font-size: 2.875rem; /* 46px / 16px */
}

.quiz--orange h1 {
    text-align: left;
    position: absolute;
    left: 50%;
    top: 0;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.quiz__arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    opacity: 0.5;
    -webkit-transition: 0.2s opacity ease;
    transition: 0.2s opacity ease;
}

.quiz__arrow:hover {
    opacity: 1;
}

.quiz main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.range-slider__container {
    width: 100%;
}

.quiz--red main {
    width: 800px;
}

.quiz--red main h1 {
    margin-bottom: 60px;
}

.quiz--blue h1 {
    font-size: 2.375rem;
}

.form__container {
    text-align: left;
    margin: 70px auto 0;
}

.form__container label {
    display: block;
    cursor: pointer;
    position: relative;
    padding-left: 50px;
    margin-right: 15px;
    font-size: 1.5rem; /* 24px / 16px */
    font-weight: 100;
    margin-bottom: 35px;
}

.form__container label:last-child {
    margin-bottom: 0;
}

/**
 * Remove Gray Highlight When Tapping Links in Mobile Safari and Android
 */
.form__container label,
#range-slider.ui-slider .ui-slider-pip,
#range-slider.ui-slider {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.form__container input[type=radio] {
    display: none;
}

.form__container label:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    position: absolute;
    left: 0;
    background-color: #fff;
    border-radius: 50%;
}

input[type=radio]:checked + label:before {
    background-color: #ce5c33;
    border: 2px solid #fff;
}

.quiz--green input[type=radio]:checked + label:before {
    background-color: #41a3c1;
    border: 2px solid #fff;
}

.form__container small {
    display: block;
}

.quiz>form>div {
    display: none;
}

/* ==========================================================================
   Range slider edits
   ========================================================================== */


#range-slider.ui-slider {
    margin-top: 24px;
    height: 6px;
    background: #e1ad38;
    border: none;
    border-radius: 0;
}

#range-slider.ui-slider .ui-slider-handle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 28px solid #fff;
    background: none;
    border-top: none;
}

#range-slider.ui-slider .ui-slider-handle:focus {
    outline: 0;
}

#range-slider.ui-slider .ui-slider-pip {
    top: -3px;
}

#range-slider.ui-slider .ui-slider-pip .ui-slider-line {
    background: white;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    box-shadow: 0 0 0 2px #25daa5;
    border-radius: 100%;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease; }

#range-slider.ui-slider .ui-slider-pip .ui-slider-label,
#range-slider.ui-slider .ui-slider-pip .ui-slider-label i,
#range-slider.ui-slider .ui-slider-pip .ui-slider-label span {
    width: 100px;
    margin-left: -50px;
    text-align: center; }

#range-slider.ui-slider :not(.ui-slider-pip-selected) .ui-slider-label {
    color: #e1ad38;
}

#range-slider.ui-slider .ui-slider-pip .ui-slider-label i {
    font-style: normal;
    font-size: 1.8rem;
    position: absolute;
    top: 30px;
}

#range-slider.ui-slider :not(.ui-slider-pip-selected) .ui-slider-label i {
    top: 15px;
}

@media screen and (max-width: 500px) {
    #range-slider.ui-slider .ui-slider-pip .ui-slider-label i {
        font-size: 1.4rem; }
}

#range-slider.ui-slider .ui-slider-pip .ui-slider-label span {
    opacity: 0.6;
    font-size: 1.2rem;
    line-height: 1.3;
    position: absolute;
    top: 18px;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease; }

@media screen and (max-width: 500px) {
    #range-slider.ui-slider .ui-slider-pip .ui-slider-label span {
        font-size: 1.1rem; }
}

#range-slider.ui-slider .ui-slider-pip:hover .ui-slider-label span,
#range-slider.ui-slider .ui-slider-pip:focus .ui-slider-label span,
#range-slider.ui-slider .ui-slider-pip.ui-slider-pip-selected .ui-slider-label span {
    opacity: 1; }

#range-slider.ui-slider .ui-slider-pip.ui-slider-pip-selected .ui-slider-label {
    color: #fff;
}

.ui-slider-line {
    display: none;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -.9rem;
    margin-left: -1.1rem;
}

.ui-slider-pips:not(.ui-slider-disabled) .ui-slider-pip:hover .ui-slider-label {
    font-weight: 100 !important;
}

#range-slider.ui-slider .ui-slider-pip .ui-slider-label i {
    font-weight: 100;
}

.ui-slider-horizontal .ui-slider-range,
.rect-behind {
    top: -43px;
    background: #6f311b;
    height: 40px;
}

.rect-behind {
    position: absolute;
    background-color: #974325;
    width: 100%;
}






/* ==========================================================================
   Media queries
   ========================================================================== */

@media screen and (max-width: 1440px) {
    main {
        width: 100%;
        padding: 0 50px;
    }

    .quiz--red main {
        padding: 0;
    }

    header {
        width: 100%;
        padding-left: 50px;
    }

    .home__left h1 {
        font-size: 4vw;
    }

}

@media screen and (max-width: 1100px) {
    .quiz--red main {
        width: 75%;
    }
}

@media screen and (max-width: 950px) {
    .quiz h1 {
        font-size: 5vw;
    }
    .quiz--blue h1,
    .quiz--green h1 {
        font-size: 4vw;
    }
    .quiz__arrow img {
        width: 60%;
    }
}

/**
 * Se a altura for menor que 720 a imagem fica demasiado grande.
 */
@media screen and (min-width: 769px) and (max-height: 720px) {
    .home__right img {
        width: 445px;
    }
}

@media screen and (max-width: 970px) {

}

/* ipad res */
@media screen and (max-width: 768px) {
    .home br {
        display: none;
    }
    .home__left input {
        width: 100%;
    }
}

/* below ipad */
@media screen and (max-width: 767px) {
    .quiz__arrow {
        right: 0;
    }
    .quiz__arrow img {
        width: 40%;
        margin: 0 auto;
        display: block;
    }
    .form__container label {
        font-size: 3vw;
    }

    .quiz--blue main,
    .quiz--green main {
        width: 100%;
        padding: 0 50px;
    }

    /* homepage styles */

    .main-home {
        position: relative;
        top: auto;
        left: auto;
        -webkit-transform: none;
        transform: none;
        margin: 50px 0;
    }

    .home {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .home > div {
        width: 100%;
        float: left;
    }

    .home__right {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
    }

    .home__right img {
        width: 80%;
    }

    .home__left h1 {
        font-size: 6vw;
    }

    .home__left {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        margin-top: 30px;
    }

}

@media screen and (max-width: 480px) {
    .quiz__logo img {
        width: 120px;
    }

    .quiz--orange h1 {
        width: 70%;
    }

    .quiz h1 {
        font-size: 1.4rem; /* 24px / 16px */
        text-align: left;
    }
    .form__container {
        margin-top: 45px;
    }
    .form__container label {
        padding-left: 40px;
        font-size: 1rem;
    }
    .form__container label:before {
        width: 25px;
        height: 25px;
    }
    .range-slider__container {
        padding-right: 20px;
    }
    .quiz__arrow img {
        width: 30%;
    }

    /* helper para remover o elemento em mobile */
    .hide-mobile {
        display: none;
    }

    .main-home {
        padding: 0 25px;
    }

    .header-home {
        padding: 0 20px;
    }

    .header-home a:nth-child(1) {
        float: left;
    }

    .header-home a:nth-child(2) {
        float: right;
    }

}

@media screen and (max-width: 375px) {
    .form__container {
        margin-top: 35px;
    }
    .form__container label {
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 360px) {

    .header-home a:nth-child(1) img {
        width: 120px;
    }

    .office_logo {
        margin: 0;
    }
}