* {
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Dungeon";
  src: url(../font/DUNGRG__.TTF) format("truetype");
}

@font-face {
  font-family: "Fairies";
  src: url(../font/Fairies.otf) format("opentype");
}

@font-face {
  font-family: "Press";
  src: url(../font/PressJobs.ttf) format("truetype");
}

body {
  min-height: 100vh;
  /*min-height: 100px;*/
  background-color: #060913;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height:100% ;
  height:100vh;
}

.jeu {
  position: relative;
  background-color: #35355f;
  max-height:100%;
  height:100vh;
  width: 800px;
  /*width: 100vh;
  height: 80vh;*/
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  box-shadow: 0px 0px 50px 1px #3d3d64;
  border-radius: 1%;
}
.boutonRecommencer {
  display: flex;
  margin-top: 1vh;
  align-items: flex-end;
  flex-direction: row-reverse;
}
#boutonDebut {
  height: 3vh;
}
.checkbox {
  margin-right: 20vh;
  height: 35px;
  display: flex;
  align-items: center;
  flex-direction: row;
}

input[type="checkbox"] {
  margin-left: 5px;
  width: 20px;
  height: 20px;
}
label {
  font-family: Verdana;
  color: #d7ddea;
}

.logo {
  font-family: "Dungeon";
  font-size: 100px;
  font-weight: 100;
  color: #f0e5f3;
  align-self: center;
  text-shadow: 5px 5px 2px #060913;
  height: 15vh;
}

#imageafficher{
  max-width:100%;
  width:100vw;
}

.titre {
  font-family: "Press";
  font-size: 25px;
  color: #f0e5f3;
  align-self: center;
  text-shadow: 5px 5px 2px #060913;
  /*margin-bottom: 2%;*/
}

.paragraphe {
  font-family: Verdana;
  color: #f0e5f3;
  font-size: 14px;
  align-self: center;
  text-shadow: 5px 5px 2px #060913;
  margin: 1%;
  padding: 1rem;
}

.image {
  align-self: center;
  width: 100%;
  height: 50%;
  box-shadow: 0px 10px 5px #060913;
}

.video {
  align-self: center;
  object-fit: cover;
  width: 100%;
  height: 50%;
  box-shadow: 0px 10px 5px #060913;
}

.option {
  width: 100%;
  height: 10%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

button {
  width: 20vh;
  height: 6vh;
  background-color: #33424d;
  margin: 1%;
  border-radius: 25px;
  box-shadow: 2px 3px 2px #060913;
  font-family: Verdana;
  color: #d7ddea;
}

button:hover {
  background-color: #fae0f4;
  color: #524459;
}

.barre {
  height: 10vh;
  width: 25vh;
  position: absolute;
  top: 0vh;
  display: flex;
  flex-direction: row;
  margin-left: 0.5vh;
}
.progression:nth-child(2) {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}

.progression:nth-child(7) {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

.progression {
  align-self: flex-end;
  margin-bottom: 1vh;
  width: 4.1vh;
  height: 1.2vh;
  background-color: rgb(26, 21, 58);
  margin-bottom: 3vh;
}

.couleur {
  background-color: #f0e5f3;
}

.personnage {
  position: absolute;
  width: 25vh;
  height: 5vh;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.perso {
  height: 4.1vh;
  width: 4.1vh;
}
.persoimg {
  border: #f0e5f3 solid;
  border-radius: 15%;
  visibility: hidden;
  height: 4.1vh;
  width: 4.1vh;
}
.photo {
  background-color: antiquewhite;
}
.choix {
  z-index: 2;
  position: absolute;
  background-color: #35355f;
  height:100vh;
  max-height: 100%;
  width: 800px;
  border-radius: 1%;
  display: flex;
  flex-direction: column;
}
.containermenu {
  height: 10vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.cache {
  visibility: hidden;
}
.titremenu {
  font-family: "Dungeon";
  font-size: 70px;
  font-weight: 100px;
  color: #f0e5f3;
  text-shadow: 5px 5px 2px #060913;
  height: 15vh;
}
.containerimage {
  overflow-y: scroll;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  height: 62vh;
  width: 55vh;
  background-color: #24243a;

  /*
  background-color: palevioletred;
  */
  justify-content: flex-end;
}
.containerimage::-webkit-scrollbar {
  background: #38385a;
}
.containerimage::-webkit-scrollbar-thumb {
  background: #f0e5f3;
  border-radius: 10vh;
}
.containerimage::-webkit-scrollbar-thumb:hover {
  background: #cec4d0;
}

/*
.containerimage::-webkit-scrollbar-button {
  background: #1c1c3c;
}*/

.displayimage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 70vh;
  width: 45vh;
  background-color: #2b2b47;
  align-items: center;
}
.imageperso {
  overflow: hidden;

  background-color: #535385;

  border-radius: 2vh;
  width: 30vh;
  height: 30vh;
}
.containerpersoimage {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.containermenuimage {
  height: 70vh;
}
.classementperso {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  height: 8vh;
  width: 55vh;
  background-color: #3d3d64;
}
.containersquareimage {
  width: 15vh;
  height: 15vh;
  border: #30304f solid;
  border-radius: 1vh;
}
.containersquareimage:hover {
  border: #f0e5f3 solid;
}
.containersquareimageselect {
  border: #f0e5f3 solid;
}
.containersquareimageunselect {
  border: #30304f solid;
}

.sexe {
  user-select: none;
  width: 10vh;
  height: 3vh;
  background-color: #33424d;
  margin: 1%;
  border-radius: 25px;
  box-shadow: 2px 3px 2px #060913;
  font-family: Verdana;
  color: #d7ddea;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sexe:hover {
  background-color: #fae0f4;
  color: #524459;
}
.sexeselect {
  background-color: #fae0f4;
  color: #524459;
}
.containerbouton {
  display: flex;
  height: 10vh;
  /*
  background-color: rgb(81, 143, 194);
  */
  flex-direction: row;
  align-items: center;
  justify-content: center;
}


@media screen and (min-height: 2000px) {
  .jeu {
    width: 700px;
  }
}

@media screen and (min-height: 900px) and (max-height: 2000px) {
  .checkbox {
    margin-right: 5vh;
  }
  .boutonRecommencer {
    flex-direction: column;
    align-items: flex-end;
  }

  .jeu {
    width: 900px;
  }
}

@media screen and (min-height: 900px) and (max-height: 2000px) {
  .containerimage {
    width: 47vh;
  }
  .classementperso {
    width: 40vh;
  }
  .displayimage {
    width: 40vh;
  }
  .imageperso {
    width: 25vh;
    height: 25vh;
  }
  #imageafficher {
    width: 25vh;
    height: 25vh;
  }
  .choix {
    max-width:100%;
    width:100vw;
    max-height:100%;
    height: 100vh;
  }
}

@media screen and (min-width: 500px) and (max-width: 900px) {
  body {
    height: 100vh;
    justify-content: center;
    align-items: center;
  }
  .jeu {
    max-height: 100%;
    height:100vh;
    width:100vw;
    max-width: 100%;
    width: auto;
    text-align: center;
    margin: 0;
  }
  .progression {
    margin-bottom: 2vh;
  }
  .choix {
    max-width: 100%;
    /*
    height: 900px;
    */
    height:100vh;
    max-height: 100%;
    width: 100vw;
    
  }
  .titremenu {
    font-size: 60px;
  }
  .displayimage {
    height: 80vh;
  }
  .classementperso {
    width: 30vh;
  }
  .containerimage {
    height: 70vh;
    width: 30vh;
  }
  .containermenuimage {
    width: 30vh;
  }
  .displayimage {
    height: 78vh;
  }

  .checkbox {
    margin-right: 5vh;
  }
  .logo{
    font-size: 70px;
    height:100px;
  }
  .titre{
    font-size: 20px;
  }
  .paragraphe{
    font-size: 12px;
  }
  .image{
    height:40%;
  }
}



@media(max-width:650px){
  body {
    max-height: 100%;
    height: 100vh;
  }
  .jeu {
    max-height: 100%;
    height:100vh;
    width:100vw;
    max-width: 100%;
    width: auto;
    text-align: center;
    margin: 0;
  }

  .image {
    height: 40%;
  }

  .video {
    height: 40%;
  }

  .paragraphe {
    font-size: 12px;
    padding: 1rem;
  }

  .logo {
    font-size: 70px;
  }

  .titre {
    font-size: 20px;
  }

  button {
    display: block;
  }
  .progression {
    margin-bottom: 3vh;
  }
  .choix {
    max-width: 100%;
    /*
    height: 900px;
    */
    height:100vh;
    max-height: 100%;
    width: 100vw;
  }
  
  .displayimage {
    height: 80vh;
  }
 
  
  .checkbox {
    margin-right: 5vh;
  }
  .boutonRecommencer {
    flex-direction: column;
    align-items: flex-end;
  }
  .containerpersoimage{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .containermenuimage{
    width:100vw;
    max-width: 100%;
    height:40vh;
  }
  .containerimage{
    max-width: 100%;
    width: 100vw;
    height:40vh;
  }
  .displayimage{
    display:flex;
    flex-direction: column;
    align-items: center;
    width:100vw;
    max-width: 100%;
    height:300px;
  }
  .titremenu{
    
    height:5vh;
    font-size: 35px;
    text-align: center;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  .classementperso{
    width:100vw;
    max-width: 100%;
  }
  .containermenu{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
  }
  
 
}

@media(min-height:1200px) and (min-width:900px){
  .choix {
    max-width: 100%;
    /*
    height: 900px;
    */
    height:100vh;
    max-height: 100%;
    width: 100vw;
  }
  .containermenu{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
  }
  .titremenu{
    
    height:5vh;
    font-size: 35px;
    text-align: center;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  .classementperso{
    width:100vw;
    max-width: 100%;
  }
  .containerimage{
    max-width: 100%;
    width: 100vw;
    height:40vh;
  }
  .displayimage{
    display:flex;
    flex-direction: column;
    align-items: center;
    width:100vw;
    max-width: 100%;
    height:500px;
  }
  .containerpersoimage{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .containermenuimage{
    width:100vw;
    max-width: 100%;
    height:40vh;
  }


}




.hidden {
  display: none;
}
