/**************************
 *
 *     G E N E R A L
 *
 **************************/

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body{
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    margin: 0;
    padding: 0;
    line-height: 1.3em;
}

body.home-page,
body.game-page,
body.answer-page,
body.form-page,
body.final-page{
    background-color: #62c6cf;
    color: #fff;
}

body.home-page,
body.final-page{
    background-image: url('../images/logo_hygee.png');
    background-repeat: no-repeat;
    background-size: 180px;
    background-position: right 50px top 50px;
    text-align: center;
}

h1, h2, h3{
  text-align: center;
  display: block;
}

h1{
    font-size: 4.5em;
    font-family: 'Lilita One', cursive;
    text-transform: uppercase;
    line-height: 1.2em;
    display: block;
}

h2{
    font-size: 2.9em;
    margin-top: 20px;
    display: block;
    font-weight: 300;
    line-height: 1.2em;
}

h3{
    margin-top: 50px;
    font-size: 2em;
    font-weight: 300;
    display: block;
    line-height: 1.3em;
}

body.home-page #content,
body.game-page #content,
body.answer-page #content,
body.form-page #content,
body.final-page #content{
}

body.home-page #content,
body.final-page #content{
    /*padding-top: 20vh;*/
}

body.form-page #content{
    padding-top: 13vh;
}

body.game-page #content{
    padding-top: 3vh;
}

body.answer-page #content{
    padding-top: 3vh;
}


.button{
    line-height: 2em;
    border-radius: 10px;
    padding: 15px 30px 15px 30px;
    margin-top: 10px;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.2em;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 300;
    background-color: #d33a65;
    border: none;
    cursor: pointer;
}

/*
#content:after{
   content: " ";
   display: block;
   height: 0;
   clear: both;
   *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML += '<div class="ie7-clear"></div>' );
}
*/


/**************************
 *
 *  D R A G   &   D R O P
 *
 **************************/

 /* Question
 --------------------- */

.game-page .question-label,
.answer-page .question-label{
    font-size: 3.0em;
    font-family: 'Lilita One', cursive;
    line-height: 1.2em;
    display: block;
    color: #fff;
    text-align: center;
}

/* Margins
--------------------- */

#targets{
    z-index: -200;
    margin: 25px 0;
}

#origin{
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#origin img, target img {
  margin-top: 3px;
  margin-left: 5px;
}

/* Elements to drag
--------------------- */

.draggable,
.droppable{
    /*border: 1px solid #777;*/
}

.draggable{
    /* width is set with js */
    height: 80px;
    width: 100% !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.draggable.hidden{
    display: none;
}

/* for debug
.wrong{
    background-color: #e77665 !important;
}
*/

.apples{
    background-image: url('../images/pic_apples.png');
}

.candies{
    background-image: url('../images/pic_candies.png');
}

.carots{
    background-image: url('../images/pic_carots.png');
}

.cheese{
    background-image: url('../images/pic_cheese.png');
}

.chips{
    background-image: url('../images/pic_chips.png');
}

.fish{
    background-image: url('../images/pic_fish.png');
}

.olive-oil{
    background-image: url('../images/pic_oliveoil.png');
}

.rice{
    background-image: url('../images/pic_rice.png');
}

.soda{
    background-image: url('../images/pic_soda.png');
}

.steak{
    background-image: url('../images/pic_steak.png');
}

.water{
    background-image: url('../images/pic_water.png');
}

.fast-food{
    background-image: url('../images/pic_fastfood.png');
}

.draggable-label{
    width: 100% !important;
    text-align: center;
    font-family: 'Lilita One', cursive;
    font-size: 1.2em;
    text-transform: uppercase;
    color: #000;
}




/* Targets
--------------------- */

.droppable-circle{
    width: 13vw !important;
    height: 11vw!important;
    margin: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    font-size: 1vw;
}

.droppable-basket{
    display: inline-block;
    width: 22%;
}

.droppable-basket-left{
    margin: 0 0 0 8.5%;
    background-image: url('../images/pic_facteurs-protecteurs.png');
    color: #22b573;

}

.droppable-basket-middle{
    margin: 0 8.5% 0 8.5%;
    background-image: url('../images/pic_facteurs-neutres.png');
    color: #009245;
}

.droppable-basket-right{
    margin: 0 8.5% 0 0;
    background-image: url('../images/pic_facteurs-de-risque.png');
    color: #006837;
}


.origin-container{
    background-image: url('../images/circle_origin.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 210px;
}

.target-container{
    background-repeat: no-repeat;
    background-position: top;
    background-size: 180px;
    height: 120px;
    text-align: center;
    vertical-align: bottom;
    padding-top: 180px;
    font-size: 1.6em;
    font-family: 'Lilita One', cursive;
    text-transform: uppercase;
    border-radius: 20px;
    /* border: 1px solid #777;*/
}

.target-container.full{
    background-color:#1bbdab;
}

.target-container.over {
    background-color:#1fb7ef;
}

/* Controls
--------------------- */

#controls{
    margin: 50px auto 0 auto;
    display: block;
    width: 100%;
}

.control{
    display: inline-block;
    width: 25%;
    padding: 10px;
    text-align: center;
}

.control.middle{
    margin: 0 12.45% 0 12.45%;
}

.control.disabled{
    background-color: #d33a65;
    color: #fff !important;
    cursor: default;
}

#reset:hover,
#see_answers:hover{
    cursor: pointer;
}

.previous{
    background-image: url('../images/icon_previous.png');
    background-position: 20px;
    background-size: 12%;
    background-repeat: no-repeat;
}

.next{
    background-image: url('../images/icon_next.png');
    background-position: right 20px center;
    background-size: 12%;
    background-repeat: no-repeat;
}

/* Validate
--------------------- */

#validate.active:hover{
    cursor: pointer;
}

/**************************
 *
 *     A N S W E R S
 *
 **************************/

.answer-page .basket{
    height: 170px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0px center;
    width: 50%;
    margin: 0 auto;
    vertical-align: bottom;
    padding: 55px 0 0 160px;
    font-family: 'Lilita One', cursive;
    font-size: 2.0em;
    text-transform: uppercase;
}

.answer-page .basket-protection{
    background-image: url('../images/pic_facteurs-protecteurs.png');
    color: #22b573;
}

.answer-page .basket-neutral{
    background-image: url('../images/pic_facteurs-neutres.png');
    color: #009245;
}

.answer-page .basket-risk{
    background-image: url('../images/pic_facteurs-de-risque.png');
    color: #006837;
}

.answer-page .warning{
    display: inline-block;
    width: 100%;
    font-size: 1.3em;
    line-height: 1.3em;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-image: url('../images/pic_warning.png');
    background-position: 20px;
    background-repeat: no-repeat;
    padding: 20px 20px 20px 20px;
    background-size: contain;
    margin-bottom: 20px;
}

.risk-details{
    display: inline-block;
    width: 100%;
    vertical-align: top;
}

.risk-combination{
    right: 0;
    position: absolute;
    text-align: center;
    margin-top: 60px;
    margin-right: 10%;
    color: #ff004f;
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    width: 500px;
    background-color: #d33a65;
    padding: 30px 20px;
    border-radius: 20px;
    line-height: 1.4em;
}

.risk-item .text-middle{
    display: inline-block;
    vertical-align: middle;
    font-size: 1.2em;
    padding-left: 30px;

}

.risk-item .risk-picto{
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 85px;
    width: 90px;
    vertical-align: middle;
    margin: 20px;
}

.risk-details .risk-item{
    display: table;
    width: 100%;
    height: 100px;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    background-color:#1794b0;
    border-radius: 20px;
    line-height: 1.4em;
}

.risk-item.high{
    height: 250px !important;
}

.high .risk-picto{
    margin: 75px 20px !important
}

.button-right{
    float: right;
    width: 160px;
    margin-top: 0px;
}

/**************************
 *
 *        F O R M
 *
 **************************/

.form-page .question-label{
    font-size: 2.5em;
    font-family: 'Lilita One', cursive;
    line-height: 1.2em;
    display: block;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.form-page{
    text-align: center;
}

.age-bloc{
    margin-bottom: 30px;
}

.gender-bloc{
    margin-bottom: 70px;
}

.form-page label{
    display: inline-block;
    width: 160px;
    height: 200px;
    padding-top: 180px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    margin-top: 30px;
}

.form-page input[type="radio"]{
    display: none;
}

.woman-icon{
    background-image: url('../images/icon_woman.png');
    margin-right: 20px;
    text-transform: uppercase;
}

.woman-icon.selected{
    background-image: url('../images/icon_woman_selected.png');
}

.man-icon{
    background-image: url('../images/icon_man.png');
    margin-left: 20px;
    text-transform: uppercase;
}

.man-icon.selected{
    background-image: url('../images/icon_man_selected.png');
}

#age-input{
    width: 500px;
    margin-bottom: 20px;
    margin-top: 20px;
}

input[type=range] {
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
  width: 100%; /* Specific width is required for Firefox. */
  background: transparent; /* Otherwise white in Chrome */
}

/* FIREFOX */

input[type=range]::-moz-range-track {
    background: #152042;
    height: 5px;
    border-radius: 5px;
}

input[type=range]::-moz-range-thumb {
    border: none !important;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    outline: none;
    background-color: white;
}

input[type=range]::-moz-focus-outer {
    border: 0;
}

/* WEBKIT */

input[type=range]::-webkit-slider-runnable-track {
    background: #152042;
    height: 5px;
    border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb{
    -webkit-appearance: none;
    border: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    margin-top: -12px;
    background: white;
    cursor: pointer;
}

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

#age-output{
    text-transform: uppercase;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 15px;
    color: #000;
    display: inline-block;
    padding: 10px;
}

/**************************
 *
 *   F I N A L   P A G E
 *
 **************************/

.home-icon{
    background-image: url('../images/icon_home.png');
    padding-left: 60px !important;
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 12%;
}

.lien-retour {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    margin-top: 6.4rem;
}

.lien-retour:before {
    background: url(../images/icn-arrow-left.svg) no-repeat;
    width: 3.7rem;
    height: 3.6rem;
    margin-right: 1.8rem;
    content: '';
    background-size: contain;
}

a.lien-retour {
    font-family: 'Gilroy', sans-serif;
    color: #fff !important;
    margin-left: 4.6rem;
    text-decoration: none;
}

@media (max-width: 980px) {

    .droppable-circle {
        width: 20vw !important;
        height: 20vw!important;
        margin: 1vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        font-size: 2vw;
    }
}