/* -- Design général -- */

@import url('https://fonts.googleapis.com/css?family=Raleway');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.css');
@font-face {
  font-family: 'icomoon';
  src: url('../bootstrap/fonts/icomoon.eot?uf0u8z');
  src: url('../bootstrap/fonts/icomoon.eot?uf0u8z#iefix') format('embedded-opentype'), url('../bootstrap/fonts/icomoon.ttf?uf0u8z') format('truetype'), url('../bootstrap/fonts/icomoon.woff?uf0u8z') format('woff'), url('../bootstrap/fonts/icomoon.svg?uf0u8z#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-users {
  float: right;
}

.icon-users:before {
  content: "\e972";
}

.icon-man:before {
  content: "\e9dc";
}

.icon-woman:before {
  content: "\e9dd";
}

*[draggable=true] {
  cursor: move;
}

body {
  /*background-color: #CCE2E2;*/
  background-color: #f7fbfb;
  /*background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='charlie-brown' fill='%23b2cfff' fill-opacity='0.26'%3E%3Cpath d='M9.8 12L0 2.2V.8l10 10 10-10v1.4L10.2 12h-.4zm-4 0L0 6.2V4.8L7.2 12H5.8zm8.4 0L20 6.2V4.8L12.8 12h1.4zM9.8 0l.2.2.2-.2h-.4zm-4 0L10 4.2 14.2 0h-1.4L10 2.8 7.2 0H5.8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  */
  font-family: 'Raleway', sans-serif;
  height: 100%;
  position: relative;
  margin: 0;
}

html {
  height: 100%;
  min-height: 100%;
  margin: 0;
}


.navbar {
  /*background-color: #7A7E87;*/
  background-color: #9AAEAE;
  border: 0px white;
}

.dropdown-toggle:active, .open .dropdown-toggle {
  background: #FFF !important;
  color: black !important;
}

footer {
  width: 100%;
  height: 20px;
  /*height: 4%;*/
  font-size: 12px;
  bottom: 0;
  /*background-color: #FFF7E6;*/
  position: absolute;
}

#logo {
  width: 35%;
}

.h1-title {
  text-align: center;
}

label {
  font-size: 18px;
}

input, input::-webkit-input-placeholder {
  font-size: 18px;
}

a {
  cursor: pointer;
}

iframe {
  width: 70%;
  border: 0px;
}

.lead {
  margin-top: 7%;
}

.align-block {
  display: inline-block;
  margin-left: 1%;
  vertical-align: middle;
}

/* -- Header (page logged-header.php) -- */

#user_pseudo {
  /*color: #D3D3D3;*/
  color: #FAF4D1;
}

#nb_tokens {
  /*color: #D3D3D3;*/
  color: #FFFFFF;
}


/* -- Page authentication.php -- */

#logo-index {
  width: 10%;
}

.main-container {
  min-height: 100%;
  position: relative;
}

#index-main {
  margin-top: 1%;
  margin-bottom: 1%;
}

#index-buttons {
  font-size: 30px;
  text-align: center;
  margin-top: 3%;
}

@media all and (max-width: 1024px) {
  #index-buttons {
    font-size: 24px;
  }
}

#description {
  text-align: center;
  font-size: 16px;
}

.index-img {
  margin-left: auto;
  margin-right: auto;
  margin-top: 3%;
  width: 40%;
}

#connection-index {
  color: #FFFFFF;
  background-color: #9AAEAE;
  border-color: #9AAEAE;
}

#registration-index {
  color: #FFFFFF;
  background-color: #AE9789;
  border-color: #AE9789;
}

/* -- Page connexion.php et inscription.php -- */

.form {
  margin-top: 6%;
}

.btn-form {
  margin-top: 4%;
  display: block;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

form .form-group {
  margin-bottom: 3%;
}

#p-registration {
  margin-top: 3%;
}

#registration-button {
  color: #FFFFFF;
  background-color: #AE9789;
  border-color: #AE9789;
}

#connection-button {
  color: #FFFFFF;
  background-color: #9AAEAE;
  border-color: #9AAEAE;
}

/* -- Page home.php -- */

#home-main {
  font-size: 36px;
  text-align: center;
  margin-top: 30px;
}

#img-group {
  float: right;
}

.block-img {
  float: left;
  text-align: center;
  height: 12%;
  width: 19%;
}

.img-recommendation {
  border: 1px solid black;
  padding: 1% 1% 1% 1%;
  width: 30%;
  background-color: #f7fbfb;
}

#recommendation {
  margin-top: 2%;
  position: relative;
}

#below-home {
  position: absolute;
  top: 35px;
  width: 100%;
  height: 19px;
  /*background-color: #E1E8E7;*/
  background-image: url(../img/scratch.jpg);
  background-repeat:repeat;
  z-index: -50;
  opacity: 0.4;
}

@media all and (max-width: 1200px) {
  #below-home {
    top: 20px;
  }
}

.recommendation-description {
  font-size: 16px;
  color: #3E5C7C;
  text-align: center;
  font-weight: bold;
}

@media all and (max-width: 1024px) {
  #home-main {
    font-size: 30px;
  }
  .block-img {
    height: 100px;
  }
  .recommendation-description {
    font-size: 14px;
  }
}

@media all and (max-width: 1200px) {
  .block-img {
    height: 110px;
  }
}

#duration {
  display: inline-block;
}

#home-buttons {
  font-size: 36px;
  text-align: center;
}

@media all and (max-width: 1024px) {
  #home-buttons {
    font-size: 30px;
  }
}

#registration-info {
  text-align: center;
  font-weight: bold;
  margin-top: -1.5%;
  margin-bottom: -2%;
}

.removeMsg {
  cursor: pointer;
}

#validation, #modification {
  margin-top: -1%;
}

#validation {
  color: #FFFFFF;
  background-color: #547B7B;
  border-color: #547B7B;
}

#modification {
  color: #FFFFFF;
  background-color: #AEAC9D;
  border-color: #AEAC9D;
}

#source {
  text-align: center;
}

/* -- Page change-recommendation.php -- */

.block-img-change {
  border: 1px dashed black;
  border-radius: 15px;
  float: left;
  text-align: center;
  height: 125px;
  width: 220px;
  display: block;
  margin-right: 2.5%;
  margin-left: 2.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f7fbfb;
}

@media all and (max-width: 1024px) {
  .block-img-change {
    height: 125px;
    width: 90px;
    margin-right: 1%;
    margin-left: 1%;
  }
}

.img-change-recommendation {
  width: 25%;
  margin-right: auto;
  margin-left: auto;
}

#below-modification {
  position: absolute;
  top: 120px;
  width: 95%;
  height: 15px;
  background-color: #E1E8E7;
  z-index: -50;
  opacity: 0.3;
}

.test {
  width: 25%;
  margin: auto;
}

.testest {
  display: block;
  margin: auto;
  margin-right: 2%;
  margin-bottom: 2%;
  text-align: center;
  float: left;
  width: 15%;
  height: 175px;
  border: 1px solid black;
  padding: 1%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media all and (max-width: 1024px) {
  .testest {
    height: 150px;
  }
}

.choice-button {
  color: #FFFFFF;
  background-color: #6EACB2;
  border-color: #6EACB2;
  border-radius: 5px;
}

@media all and (max-width: 1024px) {
  .choice-button {
    font-size: 13px;
  }
}

#annulation {
  font-size: 16px;
}

#activities-block {
  margin-top: 175px;
  text-align: center;
  margin-left: 10%;
}

@media all and (max-width: 1024px) {
  #activities-block {
    margin-top: 150px;
    margin-left: 5%;
  }
}

#change-instruction {
  font-size: 17px;
  margin-top: -2%;
  text-align: left;
  font-weight: bold;
  margin-bottom: 20px;
}

.recommendation-description-change {
  font-size: 16px;
  color: #38761d;
  text-align: center;
}

@media all and (max-width: 1024px) {
  .recommendation-description-change {
    font-size: 14px;
  }
}

.radio-button-frames {
  border: 1px solid black;
  float: left;
  margin-right: 2%;
  padding: 1%;
}

#modification-button {
  text-align: center;
}

#validation-new {
  color: #FFFFFF;
  background-color: #547B7B;
  border-color: #547B7B;
}

.testblock {
  display: inline-block;
  margin-bottom: -1%;
}

@media all and (max-width: 1024px) {
  .testblock {
    display: inline;
  }
}

.used-activity {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  opacity: 0.5;
}

/* -- Page main-page -- */

#main-recommendation {
  margin-top: 1%;
}

.block-img-main {
  float: left;
  text-align: center;
  height: 10%;
  width: 16%;
}

@media all and (max-width: 1024px) {
  .block-img-main {
    height: 100px;
  }
}

#below-main {
  position: absolute;
  top: 120px;
  width: 80%;
  height: 15px;
  left: 15%;
  /*background-color: #E1E8E7;*/
  background-image: url(../img/scratch.jpg);
  background-repeat:repeat;
  z-index: -50;
  opacity: 0.3;
}

@media all and (max-width: 1024px) {
  #below-main {
    top: 90px;
    left: 25%;
  }
}

#main-iframe {
  margin-top: 2%;
  margin-left: -3%;
}

#reinforcement {
  margin-top: 2%;
  margin-left: -3%;
}

#timetimer {
  width: 150px;
  height: 150px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  float: right;
  margin-right: 3%;
  margin-top: 4%;
}

@media all and (max-width: 1024px) {
  #timetimer {
    width: 100px;
    height: 100px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    float: right;
    margin-right: 1%;
  }
}

.active-recommendation {
  width: 80px;
  border: 3px solid green;
}

.past-recommendation {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  opacity: 0.5;
}

.timer {
  width: 100px;
  height: 100px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background: #4646FF;
  border: 1px solid #4646FF;
  vertical-align: middle;
}

@media all and (max-width: 1024px) {
  .timer {
    width: 40px;
    height: 40px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: #4646FF;
    border: 1px solid #4646FF;
    vertical-align: middle;
  }
}

#main-timetimer {
  float: left;
  margin-top: -2%;
}

#congratulations-msg {
  font-size: 30px;
  color: '#000000';
  font-weight: bold;
  text-align: center;
}

@media all and (max-width: 1024px) {
  #congratulations-msg {
    font-size: 20px;
    color: '#000000';
    font-weight: bold;
    margin-top: 150px;
    text-align: center;
  }
}

#appreciation {
  font-size: 36px;
  text-align: center;
  margin-top: 300px;
}

#token_display {
  
  margin-top:200px;/*ne pas avoir de problèmes avec la bande d'activités*/
  margin-left: 40%;
  margin-right: 40%;
}

#img_token.animate {


  width: 350px;
  height: 350px;
  transform: rotate(0deg); /*toujours initialisé les valeurs pour la transition*/
  -webkit-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  outline: none;
}

#img_token {


  width: 0px;
  height: 0px;
  transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  
  transition: transform 3s,width 3s, height 3s;
  -webkit-transition: transform 3s,width 3s, height 3s;
  -o-transition:  width 3s, height 3s,transform 3s;
  -moz-transition:  width 3s, height 3s,transform 3s;

}



#end_sequence {
  font-size: 36px;
  text-align: center;
  margin-top: 300px;
}

@media all and (max-width: 1024px) {
  #appreciation, #end_sequence {
    font-size: 30px;
  }
}

/* -- Page caregiver.php -- */

#caregiver-choice {
  text-align: center;
}

.block {
  padding-top: 2%;
}

.block2 {
  padding-top: 2%;
  padding-bottom: 1%;
}

.center {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
}

#change-birthday {
  margin-left: 1%;
}

.user-informations {
  font-size: 18px;
}

.blur {
  -webkit-filter: blur(5px);
}
/* -- Boutton audio --*/

.audio-button {
  width: 3%;
  padding-top: 3%;
  max-width: 20px;
  max-height: 20px;
  background: url("../img/audio.png") no-repeat;
  background-size: 90%;
  background-position: 50% 50%;
  vertical-align: 10%;
  border-radius: 15px;
  /*background-color: #f7fbfb;*/
}

.audio-titre {
  width: 15px;
  height: 150px;
  padding-top: 15px;
}

/** Loader formulaire accès aidant **/
.no-js #loader { display: none;  }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: url(../img/loader.gif) center no-repeat;
}

.ifrload{
  width: 30%;
  height:30%;
  background: url(../img/loader.gif) center no-repeat;
}

/**Affichage vidéos transparentes**/
.bufferCanvas {
  display: none;
}

.outputCanvas {
    position: absolute;
    bottom: 100px;
    right: 10px;
}

@media only screen and (max-width:1920px) {
  .outputCanvas {
      width: 360px;
      height: 200px;
  }

  .caregiverOutputCanvas {
      width: 180px;
      height: 100px;
  }
}

@media only screen and (max-width:1632px) {
  .outputCanvas {
      width: 288px;
      height: 160px;
  }
  .caregiverOutputCanvas {
    width: 144px;
    height: 80px;
  }
}

@media only screen and (max-width:1344px) {
  .outputCanvas {
      width: 216px;
      height: 120px;
  }
  .caregiverOutputCanvas {
    width: 108px;
    height: 60px;
  }
}

@media only screen and (max-width:1100px) {
  .outputCanvas {
      display: none;
  }
  .caregiverOutputCanvas {
    width: 108px;
    height: 60px;
  }
}

