/* FONT IMPORT */
@font-face {
  font-family: "Cracked Johnnie";
  src: url("../../assets/font/Cracked_Johnnie.TTF");
}
@font-face {
  font-family: "KoHo";
  src: url("../../assets/font/KoHo/KoHo-Bold.ttf");
}
@font-face {
  font-family: "Baloo";
  src: url("../../assets/font/Baloo_Paaji_2/BalooPaaji2-SemiBold.ttf");
}
/* BACKGROUND */
.bg1 {
  margin: 0;
  padding: 0;
  background: url("../../assets/img/bg.jpg") no-repeat center fixed;
  -webkit-background-size: cover;
  /* pour anciens Chrome et Safari */
  background-size: cover;
  /* version standardisée */
}

.bg2 {
  margin: 0;
  padding: 0;
  background: url("../../assets/img/bg2.jpg") no-repeat center fixed;
  -webkit-background-size: cover;
  /* pour anciens Chrome et Safari */
  background-size: cover;
  /* version standardisée */
}

.bg3 {
  margin: 0;
  padding: 0;
  background: url("../../assets/img/bg3.jpg") no-repeat center fixed;
  -webkit-background-size: cover;
  /* pour anciens Chrome et Safari */
  background-size: cover;
  /* version standardisée */
}




/*Background responsive*/
@media screen and (max-width: 800px) {
  .bg1{
    background: url("../../assets/img/bg.jpg") 40%;
    -webkit-background-size: auto 100%; 
    -moz-background-size: auto 100%; 
    -o-background-size: auto 100%; 
    background-size: auto 100%;
  }

  .bg2 {
    background: url("../../assets/img/bg2.jpg") 45%;
    -webkit-background-size: cover;
    background-size: cover;
  }

  .bg3 {
    background: url("../../assets/img/bg3.jpg") 45%;
    -webkit-background-size: cover;
    background-size: cover;
  }
}


/* CREDITS */
.credits {
  text-align: right;
  color: wheat;
  margin-bottom: 1em;
  margin-right: 1em;
  width: 50%;
  float: right;
}

.credits_gauche {
  text-align: left;
  color: wheat;
  margin-bottom: 1em;
  margin-left: 1em;
  float: left;
}

.credits a {
  color: white;
}

.credits_gauche a {
  color: white;
}

.credits_gauche a:hover {
  color: rgb(88, 88, 88);
}

/*Credit responsive*/
@media screen and (max-width: 800px) {
  .credits {
    text-align: left;
    color: wheat;
    margin-bottom: 1em;
    margin-left: 1em;
    width: 100%;
    float: left;
  }
}


/* TITLE & SUBTITLE */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

.title {
  color: white;
  font-family: 'Cracked Johnnie', 'Permanent Marker', cursive;
  text-shadow: 1px 1px 2px black;
}

.title2 {
  color: white;
  font-family: 'Cracked Johnnie', 'Permanent Marker', cursive;
  text-shadow: 1px 1px 2px black;
  font-size: 21px;
}

@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

.subtitle,
p {
  color: #f5deb3;
  font-family: 'Baloo', cursive;
}

i{
  color: #f5deb3b4;
}

/*TEXT*/
strong {
  color: rgb(116, 0, 0);
}

/* BUTTONS */
.nav {
  float: right;
}

.eye-icon {
  width: 1.5em;
}

button {
  background-color: #fff;
  border-color: #dbdbdb;
  border-width: 1px;
  color: #363636;
  cursor: pointer;
  justify-content: center;
  padding-bottom: calc(.5em - 1px);
  padding-left: 1em;
  padding-right: 1em;
  padding-top: calc(.5em - 1px);
  text-align: center;
  white-space: nowrap;
}



/*CHOIX MULTIPLE CHAP3*/

.grille_choix{
  display: grid;
  grid-template-columns: repeat(3,5fr);
  grid-auto-rows: minmax(50px, auto);
  margin-left: auto;
  margin-right: auto;
}



.case-cocher {
  display: none;
}

.element-a-changer {
  width: 100px;
  height: 40px;
  cursor: pointer;
}

.element-a-changer.checked {
  filter: brightness(50%);
}


/*ATTENTION*/
.attention{
  color: #dddddd;
  font-size: large;
}
table {
  border: 5px;
}



/*INVENTAIRE CACHE*/
#inventaire_cache_bureau {
  visibility: hidden;
}
#inventaire_cache_bibliotheque {
  visibility: hidden;
}

/*VIDEO RESPONSIVE*/
.video-responsive { 
  height:394;
  width : 700;
  }

.video-responsive iframe {
  height:394;
  width : 700;
}
@media screen and (max-width: 800px) {
  .container {
    margin: 1em 1em;
  } 
  .video-responsive { 
    overflow:hidden; 
    padding-bottom:56.25%; 
    position:relative;
    }
  
  .video-responsive iframe {
  left:0; 
  top:0; 
  height:100%;
  width:100%;
  position:absolute;
  }
}


/* INVENTAIRE */
.inv_ind {
  width : 50px;
  margin: 5px;
  
}

.bloc_align{
  display: inline-block;
}

/*Fondu texte en noir*/
.black_gradient {
  background:-webkit-linear-gradient(top, red 10%, blue 90%);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
}

/*ANIMATION*/

/*Agrandissement item*/
.zoom div img {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}
.zoom div:hover img {
  -webkit-transform: scale(1.3);
  transform: scale(1.3);
}


/*Apparition d'un nouvel item*/
@-webkit-keyframes item_appartition {
  0% {
    width: 0px;
  }
  70% {
    width: 60px;
  }
  100% {
    width: 50px;
  }
}
@-moz-keyframes item_appartition {
  0% {
    width: 0px;
  }
  70% {
    width: 60px;
  }
  100% {
    width: 50px;
  }
}
@-o-keyframes item_appartition {
  0% {
    width: 0px;
  }
  70% {
    width: 60px;
  }
  100% {
    width: 50px;
  }
}
@keyframes item_appartition {
  0% {
    width: 0px;
  }
  70% {
    width: 60px;
  }
  100% {
    width: 50px;
  }
}

.nouvel_item_invisible{
  opacity: 0;
}

.nouvel_item_visible{
  opacity: 1;
  -webkit-animation: item_appartition 0.5s; /* Safari 4+ */
  -moz-animation:    item_appartition 0.5s; /* Fx 5+ */
  -o-animation:      item_appartition 0.5s; /* Opera 12+ */
  animation:         item_appartition 0.5s;
}


/*Remplissages icones Réseaux Sociaux*/
.remplissage div img {
  -webkit-transform: scale(0);
  transform: scale(0);
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}
.remplissage div:hover img {
  -webkit-transform: scale(1);
  transform: scale(1);
}
.superposition {
  position: absolute;
}


/*Animation Ampoule d'indice*/
.anim_indice {
  transform-origin: 50% 100%;
  width: 40px;
}

.anim_indice:hover {  
  animation: shake 0.5s infinite;
}

@keyframes shake {
  0% {transform: rotate(0deg);}  
  25% {transform: rotate(5deg);}
  75% {transform: rotate(-5deg);}
  100% {transform: rotate(0deg);}
}


/*Changement background chapitre 2*/
@-webkit-keyframes change_bg {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg2.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}
@-moz-keyframes change_bg {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg2.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}
@-o-keyframes change_bg {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg2.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}
@keyframes change_bg {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg2.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}

.change_bg{
  opacity: 1;
  margin: 0;
  padding: 0;
  background: url("../../assets/img/bg2.jpg") no-repeat center fixed;
  -webkit-background-size: cover;
  background-size: cover;
  -webkit-animation: change_bg 8s;
  -moz-animation:    change_bg 8s;
  -o-animation:      change_bg 8s;
  animation:         change_bg 8s;
}



/*Changement background chapitre 3*/
@-webkit-keyframes change_bg3 {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg3.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}
@-moz-keyframes change_bg3 {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg3.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}
@-o-keyframes change_bg3 {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg3.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}
@keyframes change_bg3 {
  0% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
  100% {
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg3.jpg") no-repeat center fixed;
    -webkit-background-size: cover;
    background-size: cover;
  }
}

.change_bg3{
  opacity: 1;
  margin: 0;
  padding: 0;
  background: url("../../assets/img/bg3.jpg") no-repeat center fixed;
  -webkit-background-size: cover;
  background-size: cover;
  -webkit-animation: change_bg3 8s;
  -moz-animation:    change_bg3 8s;
  -o-animation:      change_bg3 8s;
  animation:         change_bg3 8s;
}



/*Changement Background responsive*/
@media screen and (max-width: 800px) {
  /*BG2*/
  @-webkit-keyframes change_bg {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg2.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  @-moz-keyframes change_bg {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg2.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  @-o-keyframes change_bg {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg2.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  @keyframes change_bg {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg2.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  
  .change_bg{
    opacity: 1;
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg2.jpg") 40%;
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-animation: change_bg 8s;
    -moz-animation:    change_bg 8s;
    -o-animation:      change_bg 8s;
    animation:         change_bg 8s;
  }
  
  /*BG3*/
  @-webkit-keyframes change_bg3 {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg3.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  @-moz-keyframes change_bg3 {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg3.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  @-o-keyframes change_bg3 {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg3.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  @keyframes change_bg3 {
    0% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
    100% {
      margin: 0;
      padding: 0;
      background: url("../../assets/img/bg3.jpg") 40%;
      -webkit-background-size: cover;
      background-size: cover;
    }
  }
  
  .change_bg3{
    opacity: 1;
    margin: 0;
    padding: 0;
    background: url("../../assets/img/bg3.jpg") 40%;
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-animation: change_bg3 8s;
    -moz-animation:    change_bg3 8s;
    -o-animation:      change_bg3 8s;
    animation:         change_bg3 8s;
  }


}