/***************************/
/*          Base           */
/***************************/

* {
  box-sizing: border-box;
  cursor: url("../images/curseur32x32.png"), auto;
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

@font-face {
  font-family: PIXELADE;
  src: url(../font/PIXELADE.TTF);
}

@font-face {
  font-family: MinecraftiaRegular;
  src: url(../font/Minecraftia-Regular.TTF);
}


:root {

  /*Palette de couleur*/
  --black-color: rgb(0, 0, 0);
  --white-color: #fff;
  --dark-purple-color: #171436;
  --background-color: #7e78ad;

  /*Police*/
  --font-family: 'PIXELADE', sans-serif;

}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  text-decoration: inherit;
}



/*************************************/
/*            Index.html             */
/*************************************/


body {
  background-image: url("../images/night-city.gif");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  height: 100vh;
  min-height: 100%;
}

main {
  min-height: calc(100% - 8%);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.container h1 {
  font-size: 16vh;
  color: var(--white-color);
}

/* Section CSS pour li a */

.menu li a {
  width: 100%;
  margin-bottom: 0.7em;
  padding: 25px 60px;
  display: flex;
  border: none;
  border-radius: 5px;
  font-size: 4vh;
  transition: background-color 0.3s ease;
  background-color: var(--white-color);
  color: var(--black-color);
  font-family: var(--font-family);
}

.menu li a:not(:last-child) {
  border-bottom: none;
}

.menu li a:hover {
  background-color: #171436;
  color: var(--white-color);
}

/* Section logo */

.logo-header {
  position: absolute;
  top: 2em;
  left: 2em;
}

footer {
  width: 100%;
  height: 8%;
  color: var(--white-color);
  text-align: center;
  position: absolute;
  bottom: 0;
}

footer p {
  font-size: 3vh;
}

@media only screen and (max-width: 1800px) {
  .container h1 {
    font-size: 12vh;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 1.5em;
    margin-bottom: 1.2em;
  }
}

@media screen and (max-width: 900px) {
  .container h1 {
    font-size: 10vh;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 1.5em;
    margin-bottom: 1.2em;
  }

  .logo-header {
    width: 40%;
    top: 3%;
    left: 3%;
  }

  footer {
    margin-bottom: 0.2em;
  }
}

@media screen and (max-width: 768px) {
  .container h1 {
    font-size: 9vh;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 1.5em;
    margin-bottom: 1.2em;
  }

  .logo-header {
    width: 40%;
    top: 3%;
    left: 3%;
  }
}













/*---------------------------------------------------------------------------------*/









/*************************************/
/*            jouer.html             */
/*************************************/

#game-section {
  background-image: url();
  font-family: MinecraftiaRegular, sans-serif;


}

.disable-game {
  position: absolute;
  opacity: 0;
  z-index: 998;
  background-color: #fff;
  top: 0;
  height: 70%;
  width: 100%;
}

.home-btn {
  z-index: 998;
  margin: 0 0.5em;
  display: inline-block;
  background-color: transparent;
  font-size: 24px;
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
  width: 15%;
  height: auto;
}

.home-btn:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

#home-btn-game {
  z-index: 1000;
  position: absolute;
  top: 2%;
  left: 2%;
}

/*img dans le jeux*/

.bag {
  z-index: 998;
  position: absolute;
  top: 2%;
  right: 2%;
  width: 7%;
}

.bag:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

.gun {
  width: 9%;
  position: absolute;
  left: 42%;
  bottom: 19%;
}

.gun:hover {
  cursor: grabbing;
}

.key {
  width: 5%;
  position: absolute;
  left: 1.3%;
  top: 36.6%;
}

.key:hover {
  cursor: grabbing;
}

.key:hover {
  -webkit-transform: rotate(-10deg);
  -ms-transform: rotate(-10deg);
  transform: rotate(-10deg)
}

.crowbar {
  width: 5%;
  position: absolute;
  left: 10%;
  bottom: 30%;
  transform: rotate(25deg);
}

.crowbar:hover {
  cursor: grabbing;
}

.post-tableau {
  width: 4%;
  position: absolute;
  right: 35%;
  bottom: 15%;
}

.post-tableau:hover {
  cursor: grabbing;
}

.knife {
  width: 1%;
  position: absolute;
  bottom: 6%;
  left: 42%;
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
}

.knife:hover {
  cursor: grabbing;
}


.post-it-door {
  width: 3%;
  position: absolute;
  top: 45%;
  left: 41.5%;
}

.post-it-door:hover {
  cursor: grabbing;
}

/*Inventaire*/

.inventaire {
  display: flex;
  align-items: center;
  z-index: 998;
  position: absolute;
  border-radius: 4px;
  top: 2%;
  right: 10%;
  padding: 15px;
  height: 10%;
  width: 30%;
  background: var(--white-color);
  padding: 15px 25px;
}



/*Img dans l'inventaire*/
.gun-inventory {
  width: 20%;
}

.key-inventory {
  width: 15%;
}

.crowbar-inventory {
  width: 15%;
}

.post-tableau-inventory {
  width: 10%;
}

.knife-inventory {
  width: 3%;
}

/*fin inventaire*/


/* Dialigues */
.text-box {
  z-index: 999;
  position: absolute;
  border-radius: 4px;
  height: 30%;
  width: 100%;
  bottom: 0;
  background-color: #ffffff;
  border: 0.2em solid #000;
  color: var(--black-color);
  font-size: 1.5rem;
  padding: 0 1em;
}


.text-box button {
  position: fixed;
  right: 3%;
  bottom: 5%;
}






/*Scène btn*/

#btn-scene {
  position: absolute;
  left: 1%;
  bottom: 5%;
}

.enigme-choices {
  display: flex;
  width: 100%;
  height: 30%;
  position: absolute;
  bottom: 2%;
  justify-content: center;
  align-items: center;

}

.choice-btn {
  margin: 0 0.5em;
  display: inline-block;
  background-color: var(--dark-purple-color);
  color: var(--white-color);
  border-radius: 5px;
  font-family: MinecraftiaRegular, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
  width: 10%;
  height: 25%;
}


.choice-btn:hover {
  background-color: #7e78ad;
  color: var(--white-color);

}

.fail-btn {
  position: absolute;
  bottom: 10%;
  left: 50%;
}

#go-end-btn {
  position: absolute;
  left: 1%;
  bottom: 2%;
}

#go-menu-btn {
  position: absolute;
  left: 1%;
  bottom: 2%;
}

/* Bouton invisible */
.btn-invisible {
  background-color: rgb(255, 255, 255);
  opacity: 0;
  border: none;
  position: absolute;
}

/* Bureau */
#pc-btn {
  width: 10%;
  height: 20%;
  right: 5%;
  top: 54%;
}

#pc-btn:hover {
  cursor: zoom-in;
}


#folder-btn {
  width: 12%;
  height: 10%;
  right: 26%;
  top: 74%;
}

#folder-btn:hover {
  cursor: help;
}


#cadre-btn {
  width: 6%;
  height: 13%;
  left: 42%;
  top: 54%;
}

#cadre-btn:hover {
  cursor: help;
}


/* Musée */
#garde-btn {
  width: 7%;
  height: 33%;
  left: 49.5%;
  top: 34%;
}

#garde-btn:hover {
  cursor: help;
}


#tableau-btn {
  width: 12%;
  height: 28%;
  left: 8%;
  top: 29%;
}

#tableau-btn:hover {
  cursor: zoom-in;
}


/* Gare */

#crow-btn {
  width: 6%;
  height: 30%;
  left: 78%;
  top: 43.5%;
}

#crow-btn:hover {
  cursor: help;
}

#locker-btn {
  width: 6%;
  height: 19%;
  right: 5%;
  top: 32%;
}

#locker-btn:hover {
  cursor: url("../images/crowbar-cursor.png"), auto;
}

#postit-locker-btn {
  width: 30%;
  height: 22%;
  left: 30%;
  top: 15%;
}

#bomb-btn {
  width: 17%;
  height: 14%;
  left: 39%;
  top: 47%;
}

#bomb-btn:hover {
  cursor: zoom-in;
}

#yellow-wire {
  width: 17%;
  height: 10%;
  right: 7%;
  top: 22%;
  transform: rotate(35deg);
  -webkit-transform: rotate(35deg);
  -moz-transform: rotate(35deg);
  -ms-transform: rotate(35deg);
  -o-transform: rotate(35deg);
}

#yellow-wire:hover {
  cursor: url("../images/knife-cursor.png"), auto;
}

#green-wire {
  width: 6%;
  height: 17%;
  right: 17%;
  top: 35%;

}

#green-wire:hover {
  cursor: url("../images/knife-cursor.png"), auto;
}

#red-wire {
  width: 5%;
  height: 6%;
  right: 18%;
  top: 62%;
}

#red-wire:hover {
  cursor: url("../images/knife-cursor.png"), auto;
}

/* Porte */

#camera-btn {
  width: 13%;
  height: 20%;
  right: 2%;
  top: 5%;
}

#camera-btn:hover {
  cursor: help;
}



#back-desk-btn {
  position: absolute;
  left: 2%;
  bottom: 5%;
}

/* Musée Nuit */
#nick-btn {
  width: 10%;
  height: 40%;
  right: 27%;
  bottom: 14%;
}

#nick-btn:hover {
  cursor: help;
}

/* Section erreur */
.error {
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #000;
}

/*Section bureau*/
.desk {
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/bureau.jpg);
}


.pc {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/pc.jpg);
}

.file {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/file.jpg);
}


/*Section musée*/

.musee {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/musee.gif);
}

/*Section Tableau*/
.tableau {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/tableau.jpg);
}

/*Section Gare*/
.gare {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/gare.gif);
}

/*Section casier*/
.locker {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/casier.gif);
}

.bomb {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/bomb.gif);
}

/*Section porte*/
.door {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/porte-bureau.jpg);
}

/*Musée de nuit*/

.night-museum {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/night-museum.gif);
}

.journal {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/journal.jpg);
}


/*Personnages*/

.character-image {
  position: absolute;
  right: 0;
  bottom: 100%;
}






/**/


/* TicTacToe*/
#board {
  display: flex;
  flex-wrap: wrap;
  width: 300px;
  height: 300px;
  position: absolute;
  margin: auto;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.square {
  width: 100px;
  height: 100px;
  border: 1px solid black;
  color: var(--text-color);
  font-size: 1.5em;
  text-align: center;
  line-height: 100px;
  cursor: pointer;
}

.invisible {
  border: none;
  padding: 1px;
}

.square:hover {
  background-color: lightgray;
}

#restart-game {
  position: absolute;
  bottom: 20%;
  right: 11%;
}

#victory-text {
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
}

/**/



.results {
  width: 45%;
  height: 50%;
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0%;
  top: 15%;
  font-size: 1.5rem;
  justify-content: left;
}


.results p {
  margin: .5em;
}



/*RESPONSIVE*/

@media screen and (max-width: 1600px) {



  .text-box {
    font-size: 1rem;
  }

  .text-box button {
    bottom: 2%;
    right: 2%;
    font-size: 0.5rem;
  }

  .choice-btn {
    font-size: 1rem;
    width: 15%;
    height: 25%;
  }

  #back-desk-btn {
    font-size: 1rem;
  }

  #restart-game {
    font-size: 1rem;
  }

  #victory-text {
    font-size: 3rem;
    top: 15%;
  }

  .knife {
    width: 1.5%;
  }

  .character-image {
    width: 10%;
  }

  .post-it-door-inventory {
    width: 12%;
  }

  #board {
    width: 50%;
    height: 80%;
    padding: 60px;
  }

  .square {
    width: 30%;
    height: auto;
    font-size: 1em;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;
  }




}


@media screen and (max-width: 1000px) {



  .text-box {
    font-size: 0.6rem;
  }

  .text-box button {
    bottom: 2%;
    right: 2%;
    font-size: 0.5rem;
  }

  .choice-btn {
    font-size: 0.5rem;
    width: 15%;
    height: 25%;
  }

  #back-desk-btn {
    font-size: 1rem;
  }

  #restart-game {
    font-size: 0.5rem;
  }

  #victory-text {
    font-size: 3rem;
    top: 15%;
  }

  .knife {
    width: 1.5%;
  }

  #btn-scene {
    font-size: 0.5rem;
  }

  .knife {
    width: 1%;
  }

  #victory-text {
    font-size: 1.5rem;
    top: 20%;
    right: -60%;

  }

  #board {
    width: 50%;
    height: 80%;
    padding: 60px;
  }

  .square {
    width: 30%;
    height: auto;
    font-size: 1em;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .results {
    font-size: 0.8rem;
  }




}

@media screen and (max-width: 700px) {



  .text-box {
    height: 40%;
    font-size: 0.5rem;
  }

  .text-box button {
    bottom: 2%;
    right: 2%;
    height: 10%;
    font-size: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .choice-btn {
    font-size: 0.5rem;
    width: 15%;
    height: 40%;
  }

  #back-desk-btn {
    font-size: 0.5rem;
  }

  #restart-game {
    font-size: 1rem;
  }


  .knife {
    width: 1.5%;
  }

  #btn-scene {
    font-size: 0.5rem;
  }

  .knife {
    width: 1%;
  }

  #restart-game {
    font-size: 0.5rem;

  }

  #victory-text {

    font-size: 1rem;
    top: 20%;
    right: -60%;

  }

  #board {
    width: 60%;
    height: 80%;
    padding: 60px;
  }

  .square {
    width: 30%;
    height: auto;
    font-size: 1em;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .results {
    font-size: 0.6rem;
  }




}




/**/





/*---------------------------------------------------------------------------------*/

/*************************************/
/*            intro.html             */
/*************************************/

#intro-body {
  background-color: var(--background-color);
  background-image: url();

}

.intro-box {
  background-color: var(--white-color);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 2%;
  margin: 2% auto;
  width: 50%;
  height: auto;
  text-align: center;
  position: relative;
}

#home-btn-intro {
  width: 30%;
}

.intro-box h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
}

.intro-box p {
  font-size: 1.5rem;
  margin-bottom: 1em;
}

.play-button {
  font-family: MinecraftiaRegular, sans-serif;
  display: inline-block;
  background-color: var(--dark-purple-color);
  color: var(--white-color);
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  transition: background-color 0.2s;
}

.play-button:hover {
  background-color: #7e78ad;
  color: var(--white-color);

}

#play-btn-intro {
  display: inline-block;
  background-color: var(--dark-purple-color);
  color: var(--white-color);
  padding: 2% 4%;
  border-radius: 5px;
  font-size: 2rem;
  text-decoration: none;
  border: none;
  transition: background-color 0.2s;
}

#play-btn-intro:hover {
  background-color: #7e78ad;
  color: var(--white-color);

}


.container-video .clip {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.video {
  filter: grayscale(1);
}

.video:hover {
  filter: grayscale(0);
}

@media (max-width: 1400px) {
  .intro-box {
    width: 80%;
  }

  #home-btn-intro {
    width: 50%;
  }

  .intro-box h1 {
    font-size: 2rem;
  }

  .intro-box p {
    font-size: 1.2rem;
  }


  #play-btn-intro {
    font-size: 1.5rem;
    padding: 2% 2%;
  }

  video {
    width: 80%;
    margin: 1em;

  }
}


@media (max-width: 768px) {
  .intro-box {
    width: 80%;
  }

  #home-btn-intro {
    width: 50%;
  }

  .intro-box h1 {
    font-size: 2rem;
  }

  .intro-box p {
    font-size: 1.2rem;
  }


  #play-btn-intro {
    font-size: 1.5rem;
    padding: 2% 2%;
  }

  video {
    width: 90%;
    margin: 1em;

  }
}


/*---------------------------------------------------------------------------------*/



/*************************************/
/*            credit.html             */
/*************************************/

#credit-body {
  background-image: url();
  background-color: var(--background-color);
}

.page-title {
  color: var(--white-color);
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}


.testimonial {
  margin: 4em auto;
  margin-bottom: 4em;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 4%;
}

.testimonial .card {
  position: relative;
  margin: 0 auto;
  width: 80%;
  background: var(--dark-purple-color);
  padding: 6%;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 10px 40px var(--dark-purple-color);

}

.testimonial .card .content {
  position: relative;
  z-index: 2;
}

.testimonial .card .content p {
  font-size: 1.5rem;
  line-height: 100%;
  color: var(--white-color);
}

.testimonial .card .content .image {
  width: 128px;
  height: 128px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
}

.testimonial .card .content .details h2 {
  font-size: 2rem;
  color: var(--white-color);
}

.testimonial .card .content .details span {
  color: var(--white-color);
  font-size: 2rem;
  transition: 0.5s;
}



.image img {
  width: 100%;
  height: auto;
}

/*a de cliquez sur moi*/

.a-portfolio {
  width: 100%;
  display: block;
  border: none;
  border-radius: 5px;
  font-size: 2rem;
  transition: background-color 0.3s ease;
  background-color: var(--white-color);
  font-family: var(--font-family);
  text-align: center;
}

.a-portfolio:hover {
  background-color: var(--background-color);
  color: var(--white-color);
}

#home-btn-credit {
  position: absolute;
  top: 2%;
  left: 2%;
}

@media screen and (max-width: 1300px) {


  #credit-body {
    margin-bottom: 2em;
  }

  #credit-body::after {
    content: "";
    display: block;
    height: 2em;
  }

  #home-btn-credit {
    width: 35%;
  }

  .testimonial {
    display: flex;
    justify-content: center;
    flex-direction: column;

  }

  .testimonial .card {
    margin-bottom: 2em;
  }

}

@media screen and (max-width: 768px) {
  #credit-body {
    margin-bottom: 2em;
  }

  #credit-body::after {
    content: "";
    display: block;
    height: 2em;
  }

  #home-btn-credit {
    width: 35%;
  }

}

@media screen and (max-width: 400px) {
  #credit-body {
    margin-bottom: 2em;
  }

  #credit-body::after {
    content: "";
    display: block;
    height: 2em;
  }

  #home-btn-credit {
    width: 50%;
  }

  .testimonial {
    display: flex;
    justify-content: center;
    flex-direction: column;

  }

  .testimonial .card {
    margin-bottom: 2em;
  }

}


/*---------------------------------------------------------------------------------*/




/*Page Cédrik*/

#cedrik {
  background-image: url();
  background-color: var(--background-color);
}

#home-btn-cedrik {
  position: absolute;
  top: 2%;
  left: 2%;
}

#gallerie-btn {
  top: auto;
}

.page-gallery {
  position: absolute;
  width: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

div.gallery {
  background-color: #171436;
  margin-bottom: 0.5em;
}

div.gallery:hover {
  transform: scale(1.1);
}

div.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

div.desc {
  padding: 15px;
  text-align: center;
  color: var(--white-color);
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 1000px) {

  #home-btn-cedrik {
    width: 30%;
  }

  .page-gallery {
    height: 100%;
  }

  .responsive {
    width: 100%;
    margin: 6px 0;
  }

  .page-title {
    font-size: 50px;
  }

  #gallerie-btn {
    padding: 1em 1em;
    font-size: 1rem;
  }

  #cedrik-footer {
    position: fixed;
    bottom: 0;
    z-index: -2;
  }

  div.gallery {
    margin-bottom: 4em;
  }


}

@media only screen and (max-width: 700px) {

  .page-gallery {
    height: 100%;
  }

  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }


}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/*---------------------------------------------------------------------------------*/



/*RESPONSIVE*/