@font-face {
  font-family: "Sofia";
  src: url("../font/SofiaSans-Regular.ttf");
}

#mobile-message {
  display: none;
  /* Cacher le message par défaut */
}

@media (max-width: 767px) {
  #mobile-message {
    display: block;
    /* Afficher le message lorsque la largeur de l'écran est inférieure à 767 pixels */
    text-align: center;
  }

  .home-container {
    display: none !important;
  }
}

p {
  margin: 0;
}

h3 {
  font-size: 2em;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: "Sofia";
  background-color: #f1f0ea;
}

.home-container {
  text-align: center;
  padding: 0 150px;
  background-image: url("../img/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-container .presentation-image {
  width: 750px;
  margin-top: 25px;
}

.home-container .langue-choose {
  margin: 30px 0 0 0;
  display: flex;
  justify-content: center;
}

.home-container .langue-choose .langue {
  margin: 0 20px;
}

.home-container .langue-choose .langue img {
  opacity: 0.5;
  cursor: pointer;
  width: 70%;
}

.home-container .langue-choose .langue img.active {
  opacity: 1;
}

.home-container button {
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 30px;
  background-color: transparent;
  color: #8c2f39;
  font-weight: 600;
  border: 3px solid #8c2f39;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.home-container a {
  margin: 25px 0 0 0;
}

.title-map {
  font-size: 40px;
  margin: 0;
  position: absolute;
  top: 0px;
  color: #8c2f39;
}

.home-container button:hover {
  background-color: #8c2f39;
  color: white;
  transition: all 0.3s ease-out;
}

.back-home {
  position: absolute;
  bottom: 100px;
  left: 0;
  display: flex;
  align-items: center;
}

.info-container {
  position: absolute;
  bottom: 25px;
  left: 0;
  display: flex;
  align-items: center;
}

.sources-container {
  position: absolute;
  bottom: 175px;
  left: 0;
  display: flex;
  align-items: center;
}

.back-home a,
.info-container,
.sources-container {
  width: 65px;
  height: 65px;
  background-color: #8c2f39;
  border-radius: 100%;
  margin: 0 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.replay-video-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  display: flex;
  align-items: center;
}

.replay-video-container .button-video {
  width: 65px;
  height: 65px;
  background-color: #8c2f39;
  border-radius: 100%;
  margin: 0 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.replay-video-container .button-video svg {
  margin-left: 3px;
}

.replay-video-container p {
  font-weight: bold;
  color: #8c2f39;
}

.button-video:hover,
.game-button:hover {
  cursor: pointer;
}

.bouton_next {
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 30px;
  background-color: #8c2f39;
  color: white;
  font-weight: 600;
  border: 3px solid #8c2f39;
  cursor: pointer;
  position: absolute;
  top: 50px;
  right: 50px;
}

/* 
PAGE MAP  */

.home-navigation {
  position: absolute;
  top: 50px;
  left: 50px;
  padding: 0;
  z-index: 9999;
}

.game-button {
  width: 65px;
  height: 65px;
  background-color: #8c2f39;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 70px;
  right: 0;
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.row-game {
  display: flex;
}

.col-game:nth-of-type(1) {
  margin: 0 20px 0 0;
}

.col-game:nth-of-type(2) img {
  width: 400px;
}

.map {
  animation: levitate 2s ease-in-out infinite alternate;
  position: relative;
}

@keyframes levitate {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.497);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  /* ajouter un flou à l'arrière-plan */
}

.video-overlay video {
  width: 60%;
  border-radius: 30px;
}

.content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 50px;
  height: 570px;
}

.navigation-arrow-right {
  position: absolute;
  right: 0;
  top: 0px;
}

.navigation-arrow-left {
  position: absolute;
  left: 0;
  top: 0px;
}

.navigation-arrow-right:hover,
.navigation-arrow-left:hover {
  cursor: pointer;
}

progress {
  width: 100%;
  height: 30px;
  margin-top: 50px;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background-color: #fff;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  transition: all 0.3s ease-in-out;
}

progress::-webkit-progress-bar {
  background-color: #f1f0ea;
  box-shadow: none !important;
}

progress::-webkit-progress-value {
  transition: all 0.3s ease-in-out;
}

.progress-blue::-webkit-progress-value {
  background-color: #648de5;
}

.progress-green::-webkit-progress-value {
  background-color: #689689;
}

.progress-black::-webkit-progress-value {
  background-color: #0f1926;
}

progress::-moz-progress-bar {
  transition: all 0.3s ease-in-out;
}

progress[value]::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--value);
  animation: fill-progress-bar 0.3s ease-in-out forwards;
}

@keyframes fill-progress-bar {
  0% {
    width: 0;
  }

  100% {
    width: var(--value);
  }
}

.hidden {
  display: none;
}

.map-point {
  position: absolute;
  display: block;
}

.point-1-his {
  top: 9px;
  left: 121px;
}

.point-1-his img {
  width: 196px;
  transition: all 0.3s ease-in-out;
}

.point-1-his img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-2-his {
  top: 220px;
  left: 323px;
}

.point-2-his img {
  width: 196px;
  transition: all 0.3s ease-in-out;
}

.point-2-his img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-3-his {
  top: 200px;
  left: 642px;
}

.point-3-his img {
  width: 196px;
  transition: all 0.3s ease-in-out;
}

.point-3-his img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-4-his {
  top: 97px;
  left: 920px;
}

.point-4-his img {
  width: 196px;
  transition: all 0.3s ease-in-out;
}

.point-4-his img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-1-cul {
  top: 30px;
  left: 121px;
}

.point-1-cul img {
  width: 160px;
  transition: all 0.3s ease-in-out;
}

.point-1-cul img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-2-cul {
  top: 174px;
  left: 273px;
}

.point-2-cul img {
  width: 164px;
  transition: all 0.3s ease-in-out;
}

.point-2-cul img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-3-cul {
  top: 200px;
  left: 563px;
}

.point-3-cul img {
  width: 164px;
  transition: all 0.3s ease-in-out;
}

.point-3-cul img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-4-cul {
  top: 66px;
  left: 772px;
}

.point-4-cul img {
  width: 248px;
  transition: all 0.3s ease-in-out;
}

.point-4-cul img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-5-cul {
  top: 207px;
  left: 882px;
}

.point-5-cul img {
  width: 245px;
  transition: all 0.3s ease-in-out;
}

.point-5-cul img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-1-auj {
  top: 97px;
  left: 920px;
}

.point-1-auj img {
  width: 245px;
  transition: all 0.3s ease-in-out;
}

.point-1-auj img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-2-auj {
  top: 195px;
  left: 251px;
}

.point-2-auj img {
  width: 245px;
  transition: all 0.3s ease-in-out;
}

.point-2-auj img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-3-auj {
  top: 250px;
  left: 614px;
}

.point-3-auj img {
  width: 245px;
  transition: all 0.3s ease-in-out;
}

.point-3-auj img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.point-4-auj {
  top: 30px;
  left: 113px;
}

.point-4-auj img {
  width: 123px;
  transition: all 0.3s ease-in-out;
}

.point-4-auj img:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: black;
  color: white;
}

.popup-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.popup-column {
  overflow-y: auto;
  padding: 1rem;
}

.popup-column-1 {
  width: 70%;
  padding: 50px 50px 0 50px;
}

.popup-column-1 img {
  width: 100%;
}

.popup-column-2 {
  position: sticky;
  top: 0;
  width: 40%;
  background-color: #f1f0ea;
  padding: 50px 50px 0 0;
  position: relative;
  height: 100%;
}

.popup-title {
  font-size: 50px;
  margin: 0 20px 50px 0;
}

.popup-imgs {
  margin: 50px 0 0 0;
}

.popup-text-img {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.popup-text-img p {
  flex: 0 0 49%;
}

.popup-text-img figure {
  flex: 0 0 49%;
  margin: 0;
  font-size: 13px;
  font-style: italic;
}

.footer-column {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: calc(100% - 100px);
  padding-left: 50px;
}

.footer-column p {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-weight: bold;
  font-size: 60px;
}

.popup-close {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  margin: 0;
  position: absolute;
  right: 50px;
}

.credits-close {
  top: 50px;
}

.dialogue-active {
  position: relative;
  display: block;
}

.map-navigation {
  width: 100%;
}

.map-navigation .navigation {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.column-map {
  padding: 50px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  box-shadow: 0px 10px 4px 0px rgba(0, 0, 0, 0.25);
  color: white;
}

.column-map:first-of-type {
  background-color: #8c2f39;
}

.column-map:nth-of-type(2) {
  background-color: #648de5;
}

.column-map:nth-of-type(3) {
  background-color: #689689;
}

.logo_university {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  padding: 20px 0 20px 0;
}

.logo_university img {
  width: 100px;
}

.column-map:hover {
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: 50px;
  right: 50px;
}

.fullscreen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-image {
  width: 70%;
}

.fullscreen-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px;
  font-size: 20px;
  color: #fff;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

input[type="text"] {
  background-color: transparent;
  border: 3px solid white;
  padding: 10px;
}

input[type="text"]:focus {
  color: white;
}

input[type="text"]:focus-visible {
  outline: none;
}

.popup-container form button {
  padding: 12.2px 20px;
  border: none;
  color: #648de5;
  margin: 0 0 0 10px;
  font-weight: 700;
}

.popup-container form button:hover {
  cursor: pointer;
}

#resultat {
  font-size: 25px;
  font-weight: 700;
}

.points-container {
  position: absolute;
  bottom: 20px;
  right: 0;
}

.points-container .points {
  font-size: 20px;
  font-weight: 600;
  color: #8c2f39;
}

.points-container .points span:nth-of-type(1) {
  font-size: 30px;
}

#game {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  margin: 50px auto;
}

#images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

#images img {
  width: 200px;
  height: 200px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 10px;
}

#dropZones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.dropZone {
  width: 150px;
  height: 150px;
  border: 2px dashed #ddd;
  border-radius: 5px;
}

.dropZone.active {
  border-color: #333;
}

.ui-draggable {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#checkBtn,
#resetBtn {
  padding: 12.2px 20px;
  border: none;
  color: #8c2f39;
  font-weight: 700;
  cursor: pointer;
}

#checkBtn {
  margin: 15px 0 15px 0;
}

.map-navigation p {
  text-align: center;
}

.col-cred p {
  font-size: 1.5em;
}

.credits-container {
  display: flex;
  flex-direction: column;
}

.students {
  display: flex;
  justify-content: space-around;
}

.parts h3 {
  font-size: 18px;
}