/**************************
 *
 *     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: 1.2em;
    margin: 0;
    padding: 0;
    line-height: 1.3em;
}

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

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

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

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

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

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

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

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


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


.game #content,
.answer-page #content{
  margin-left: auto;
  margin-right: auto;
  /*width: 80%;*/
  /*max-width: 1300px;*/
  width: 1300px;
}

.button{
    line-height: 2em;
    border-radius: 10px;
    padding: 15px 30px 15px 30px;
    margin-top: 50px;
    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 .question-label,
.answer-page .question-label{
    font-size: 2.5em;
    font-family: 'Lilita One', cursive;
    padding-top: 50px;
    line-height: 1.5em;
    display: block;
    color: #62c6cf;
    text-align: center;
}

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

#targets{
    z-index: -200;
}

#origin{
    margin-top: 50px;
    margin-bottom: 30px;
}

#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: 130px;
    margin-top: 20px;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

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

.virus{
    background-image: url('../images/icon_virus.png');
}

.patient{
    background-image: url('../images/icon_patient.png');
}

.accident{
    background-image: url('../images/icon_accident.png');
}

.crab{
    background-image: url('../images/icon_crab.png');
}

.heart{
    background-image: url('../images/icon_heart.png');
}

.fall{
    background-image: url('../images/icon_fall.png');
}

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

.droppable{
    display: inline-block;
    /* size and margins are set with php in main file */
}


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

.draggable-label{
    margin-top: 190px;
    position: absolute;
    text-align: center;
    font-family: 'Lilita One', cursive;
    font-size: 1.6em;
}

.target-container{
    background-image: url('../images/circle.png');
    background-repeat: no-repeat;
    background-position: top;
    background-size: contain;
    height: 280px;
    text-align: center;
    vertical-align: bottom;
    padding-top: 220px;
    font-size: 2em;
    font-family: 'Lilita One', cursive;
    /* border: 1px solid #777;*/
}

.target-container.full{
    background-image: url('../images/circle_full.png');
}

.target-container.over {
    background-image: url('../images/circle_full.png');
}

/* 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: #fff;
    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 10px center;
    background-size: 12%;
    background-repeat: no-repeat;
}

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

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

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

.answer-page .question-label{
    margin-bottom: -30px;
}

.answer-container{
    height: 550px;
    display: inline-block;
    /*border:1px solid #fff;*/
    vertical-align: top;
}

.answer{
    width: 100%;
    background-image: url('../images/circle_origin.png');
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    border:1px solid #fff;
}

.answer-rank{
    margin-top: 5px;
    font-family: 'Lilita One', cursive;
    font-size: 2.5em;
    text-align: center;
    line-height: 1.4em;
}

.answer-label{
    font-family: 'Lilita One', cursive;
    font-size: 1.65em;
    line-height: 1.4em;
    text-align: center;
}

.answer-icon{
    display: block;
    margin: 0 auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#answer1{
    height: 200px;
    margin-top: 0px;
}
#answer1 .answer-icon{
    height: 150px;
    margin-top: 15px;
}

#answer2{
    height: 180px;
    margin-top: 70px;
}
#answer2 .answer-icon{
    height: 150px;
    margin-top: 15px;
}


#answer3{
    height: 160px;
    margin-top: 140px;
}
#answer3 .answer-icon{
    height: 130px;
    margin-top: 15px;
}


#answer4{
    height: 140px;
    margin-top: 210px;
}
#answer4 .answer-icon{
    height: 110px;
    margin-top: 15px;
}

#answer5{
    height: 120px;
    margin-top: 280px;
}
#answer5 .answer-icon{
    height: 90px;
    margin-top: 15px;
}


#answer6{
    height: 100px;
    margin-top: 350px;
}
#answer6 .answer-icon{
    height: 70px;
    margin-top: 15px;
}

.button.center{
    display:inline-block;
    margin: 0 12.45% 0 12.45%;
    width: 25%;
    text-align: center;
}

.source{
    display: inline-block;
    width: 300px;
    vertical-align: bottom;
    background-color: #eedfc1;
    padding: 20px;
    font-size: 0.75em;
    border-radius: 10px;
}

/**************************
 *
 *        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: 350px;
    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;
}