/*
    Auteur : Bartosz Szuta
    Date de création : 04.12.2024
    Date de modification : 08.01.2025
    Description : Mon CSS
*/
/*Page d'accueil*/
.body1 {
  font-family: "Cooper Black", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-image: url("../images/Accueil.jpg"); 
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: white;
}


.header1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px 0;
  position: relative;
}

.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
}

.logo {
  width: 80px;
  height: auto;
  border-radius: 10px;
}


h1.center {
  text-align: center;
  margin: 20px 0;
  font-size: 3em;
  color: white;
  width: 100%;
  max-width: 90%;
}

/*Ma barre de navigation*/
.navbar {
  background-color: rgba(0, 0, 0, 0.7); 
  margin: 10px auto;
  border-radius: 15px;
  max-width: 90%;
  padding: 10px 0;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
}

.navbar a:hover {
  background-color: red;
  border-radius: 5px;
}
.navbar a.active {
  background-color: red;
  border-radius: 5px;
}



.main1 {
  margin: 30px auto;
  max-width: 80%; 
  text-align: justify;
  background-color: rgba(0, 0, 0, 0.6); 
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}


.image-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.image-container {
  width: 300px;
  text-align: center;
}

.image-container img {
  width: 100%;
  border: 2px solid white;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.image-container h2 {
  margin-top: 10px;
  color: white;
}


footer {
  text-align: center;
  margin-top: 40px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  max-width: 90%;
  margin: 20px auto;
  color: white;
}


* {
  box-sizing: border-box;
}
/*Page de kuchisake-Onna*/
.body2 {
  font-family: "Cooper Black", Arial, sans-serif;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/fondkuchi.png");
  background-color: rgba(0, 0, 0, 0.61);
  background-size: cover;
  color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
}
.h11 {
  margin-top: 100px;
  font-size: 50px;
  text-align: center;
}

.h22 {
  text-align: center;
  margin-top: 30px;
}

.img1 {
  width: 26%;
  height: auto;
  margin: 20px auto;
  display: block;
  border: 8px solid rgb(0, 0, 0); 
  box-sizing: border-box; 
}

.lim {
  margin: 0 auto;
  padding: 0 15px; 
  width: 80%; 
  max-width: 1200px; 
  box-sizing: border-box; 
}

.overlay {
  position: relative;
  z-index: 1;
}

.quiz-box,
.result-box {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  margin: 20px auto;
  width: 80%;
  max-width: 500px;
  position: relative;
}

.question {
  font-size: 20px;
  margin-bottom: 20px;
}

.choices {
  list-style: none;
  padding: 0;
}

.choices li {
  background-color: #444;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.choices li:hover {
  background-color: #555;
}

.result-box h2 {
  font-size: 24px;
}

.result-box span {
  font-weight: bold;
  color: yellow;
}
.main2 {
  max-width: 1200px;
  margin: 30px auto;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px black;
}
#rainCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  z-index: 10; 
}
/*Page de Sources*/
.body3 {
  font-family: "Cooper Black", Arial, sans-serif;
  background-image: url("../images/Sources_darkened.png");
  background-size: cover;
  color: rgb(253, 253, 253);
}
.h12 {
  margin-top: 100px;
  font-size: 100px;
  text-align: center;
}
.main3{
  margin-left: 100px;
}
/*Page de Teke-teke*/
.body4 {
  font-family: "Cooper Black", Arial, sans-serif;
  background-image: url("../images/gare.png");
  background-size: cover;
  color: rgb(253, 253, 253);
}
.h13 {
  margin-top: 100px;
  font-size: 50px;
  text-align: center;
}

.h23 {
  text-align: center; 
  margin-top: 30px;
}

.img2 {
  width: 50%;
  height: auto;
  margin: 20px auto;
  display: block;
  border: 8px solid rgb(0, 0, 0); 
  box-sizing: border-box; 
}

.lim1 {
  margin: 0 auto; 
  padding: 0 15px; 
  width: 80%; 
  max-width: 1200px; 
  box-sizing: border-box;
}

#start-button {
  margin-top: 20vh;
  padding: 15px 30px;
  background-color: #ff4d4d;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#start-button:hover {
  background-color: #ff3333;
}
.main4 {
  max-width: 1200px;
  margin: 30px auto;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px black;
}
/*Page de Yamata no Orochi*/
.body5 {
  font-family: "Cooper Black", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: url("../images/YamatanoOrochi(Ledragonàhuittêtes).png")
    no-repeat center center fixed;
  background-size: cover;
  color: white;
}

.header3 {
  text-align: center;
  padding: 20px 0;
}

.hed {
  margin: 0;
  color: white;
  font-size: 2.5em;
  background-color: rgba(0, 0, 0, 0.658);
  border-radius: 15px;
  margin-left: 20%;
  margin-right: 20%;
}

.content-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
  gap: 20px;
}

.side-image-left img,
.side-image-right img {
  width: 300px;
  height: 1200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.text-content {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  max-width: 1000px;
}

.text-content h2 {
  text-align: center;
}

.text-content p,
.text-content ul {
  text-align: justify;
  line-height: 1.6;
}
#flamesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  z-index: 10; 
}
/*Page de Yuki-Onna*/
.body6 {
    font-family: 'Cooper Black', Arial, sans-serif;
    background-image: url("../images/neigebackground.png");
    background-size: cover;
    background-attachment: fixed;
    color: white;
    margin: 0;
    padding: 0;
  }
  
  
  .header4 {
    text-align: center;
    padding: 20px;
  }
  
  .h14 {
    font-size: 2.5em;
    margin-bottom: 10px;
  }
  
  .main5 {
    max-width: 900px;
    margin: 30px auto;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px black;
  }
  .h24 {
    text-align: center; 
    margin-top: 30px;
  }
  #snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}
/*Pour lancer mon EsterEgg*/
#bombe {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  display: none;
}
#explosion {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, red, orange, yellow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: explosionAnim 0.5s forwards;
}
@keyframes explosionAnim {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
/*Pour mon jeux caché*/
.no-scroll {
  overflow: hidden;
}
/* Media queries pour les plus petits écran de PC*/
@media (max-width: 1200px) {
  .image-container img {
    width: 90%; 
  }

  .navbar ul {
    flex-wrap: wrap; 
    justify-content: space-around;
  }

  .navbar li {
    margin: 10px 5px; 
  }

  .side-image-left img,
  .side-image-right img {
    width: 150px; 
    height: 600px;
  }

  .text-content {
    max-width: 80%; 
    padding: 15px;
  }

  header h1,
  .hed {
    font-size: 2em; 
    margin: 10px; 
  }
}
/* Media queries pour les tablettes et grand teléphone*/
@media (max-width: 768px) {
 
  .navbar ul {
    flex-direction: column; 
    align-items: center;
  }

  .navbar a {
    font-size: 1em;
    padding: 5px 10px;
  }

  .image-container img {
    width: 100%;
  }

  .side-image-left img,
  .side-image-right img {
    display: none;
  }
  .logo img,
  .logo-container img{
    display: none;
  }

  .text-content {
    max-width: 100%;
    padding: 10px;
  }

  .main1, .main2, .main3, .main4, .main5 {
    margin: 10px auto; 
  }
}
/* Media queries pour les teléphone */
@media (max-width: 480px) {
 
  .navbar ul {
    flex-direction: column;
    padding: 5px 0;
  }

  .navbar li {
    margin: 5px 0;
  }

  .logo img,
  .logo-container img{
    display: none;
  }

  header h1,
  .hed {
    font-size: 1.5em; 
    margin: 5px;
  }

  .text-content {
    font-size: 0.9em; 
  }

  .quiz-box,
  .result-box {
    width: 90%; 
    padding: 10px;
  }

  .main1, .main2, .main3, .main4, .main5 {
    margin: 5px auto;
    padding: 10px;
  }

  footer {
    font-size: 0.8em; 
  }
}
