@font-face {
  font-family: "Howdy";
  src:url("font/HowdyLemon.otf");
}

body {
    display: block;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #000000;
    position: relative;
    overflow: hidden;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Adjust opacity here */
    z-index: -1;
}

.container {
    text-align: center;
    z-index: 1;
}

#game-container {
    margin-top: 20px;
}

#feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    max-height: 70vh; /* Adjust as needed */
    overflow-y: auto;
}

.guess {
    display: flex;
    align-items: center;
    margin: 5px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.category {
    padding: 10px;
    margin: 6px;
    border-radius: 5px;
    color: white;
    min-width: 100px;
    text-align: center;
    max-width: 300px;
    text-shadow: 0 0 3px #000000;
}


.autocomplete-item.selected {
    background-color: #cecece;
}

.correct {
    background-color: #00961e;
}

.win{
    margin-top: 40px;
    box-shadow: blue 0px 0px 0px 2px inset, rgb(255, 255, 255) 10px -10px 0px -3px, rgb(31, 193, 27) 10px -10px, rgb(255, 255, 255) 20px -20px 0px -3px, rgb(255, 217, 19) 20px -20px, rgb(255, 255, 255) 30px -30px 0px -3px, rgb(255, 156, 85) 30px -30px, rgb(255, 255, 255) 40px -40px 0px -3px, rgb(255, 85, 85) 40px -40px;
}

.win{
    font-size: 40px;
    min-width: 400px;
}
.bold{
    font-style: bold;
}
.incorrect {
    background-color: #DA150F;
}

.partial {
    background-color: #DF8910;
}

.autocomplete-itemsS {
  list-style-type: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  max-height: 150px;
  overflow-y: auto;
}


.autocomplete-itemsS li {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-itemsS li:hover {
  background-color: #f0f0f0;
}

.monster-img {
    max-width: 100px;
    max-height: 120px;
    margin-right: 10px;
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* CSS */
.button-89 {
  --b: 6px;   /* border thickness */
  --s: .45em; /* size of the corner */
  --color: #ffffff;
  
  padding: calc(.5em + var(--s)) calc(.9em + var(--s));
  color: var(--color);
  --_p: var(--s);
  background:
    conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
    var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
  transition: .3s linear, color 0s, background-color 0s;
  outline: var(--b) solid #dddddd00;
  outline-offset: .6em;

  border: 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  
  font-size: 50px;
  font-family: Howdy;
  margin-bottom: 10px;
}

.pageacc{
    font-size: 15px;
    font-family: monospace;
    color: #ffffff;

}

.button-89:hover,
.button-89:focus-visible{
    background-color: #ffffff24;

  --_p: 0px;
  outline-color: var(--color);
  outline-offset: .05em;
}

.button-89:active {
  background: var(--color);
  color: #000000;
}








.button-88 {
    --b: 3px;   /* border thickness */
    --s: .45em; /* size of the corner */
    --color: #ffffff;
    
    padding: calc(.5em + var(--s)) calc(.9em + var(--s));
    color: var(--color);
    --_p: var(--s);
    background:
      conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
      var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
    transition: .3s linear, color 0s, background-color 0s;
    outline: var(--b) solid #dddddd00;
    outline-offset: .6em;
  
    border: 0;
  
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    font-size: 25px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

  }
  
  .button-88:hover,
  .button-88:focus-visible{
      background-color: #ffffff24;
  
    --_p: 0px;
    outline-color: var(--color);
    outline-offset: .05em;
  }
  
  .button-88:active {
    background: var(--color);
    color: #fff;
  }





.inputfield{
      
  position: relative;
  cursor: text;
  font-size: 34px;
  line-height: 20px;
  padding: 0 16px;
  height: 48px;
  background-color: #fff;
  border: 1px solid #d6d6e7;
  border-radius: 3px;
  color: rgb(35, 38, 59);
  box-shadow: inset 0 1px 4px 0 rgb(119 122 175 / 30%);
  overflow: hidden; 
  transition: all 100ms ease-in-out;
}
  .inputfield:focus {
      border-color: #3c4fe0;
      box-shadow: 0 1px 0 0 rgb(35 38 59 / 5%);
  }



  /* ARCHI */


  .game-container {
    display: block;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 40px;
    border-radius: 275px 275px 311px 311px / 150px 150px 0px 0px;
    border : solid black 6px;
    text-align: center;
    max-width: 450px;
    width: 100%;
}
.game-container:before{
    background-image: linear-gradient(to right top, #000000, #2e2e2e, #585858, #878787, #b9b9b9, #b9b9b9, #b9b9b9, #b9b9b9, #878787, #585858, #2e2e2e, #000000);
    opacity: 0.5;
}

.logo-container img {
    width: 30%;
    height: 30%;
    margin-bottom: 20px;
}

#new-game-button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #098AD5;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.monster-container img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.choices-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.choice-button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #3ea9e7;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.options-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.option-button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    background-color: #3ea9e7;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
}

#cash-input {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin: 5px;
}

.score-container {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    font-weight: bold;
    
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ddd;
    margin-top: 10px;
    position: relative;
    border-radius: 10px;
}

.progress {
    height: 100%;
    background-color: #352eff;
    width: 100%;
    transition: width 10s linear;
    border-radius: 10px;
}

.autocomplete-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
}


.autocomplete-list li {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-list li:hover {
    background-color: #f0f0f0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#home-button {
    position: fixed; /* Pour que le bouton reste toujours visible à l'écran */
    top: 20px; /* Position en haut */
    left: 20px; /* Position à gauche */
    z-index: 100000; /* Pour qu'il soit au-dessus des autres éléments */
}

.hidden {
    display: none !important;
}




/* button acc */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-85:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}


/* CSS */
.button-54 {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  color: #000000;
  cursor: pointer;
  border: 3px solid;
  padding: 0.25em 0.5em;
  box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-54:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}
.button-54:hover {
    box-shadow: 0px 0px 0px 0px;
    top: 5px;
    left: 5px;
  }
  

@media (min-width: 768px) {
  .button-54 {
    padding: 0.25em 0.75em;
  }
}

.logo-container-main {
  text-align: center; /* Centrer le logo horizontalement */
  margin-top: 20px;
  margin-bottom: 10px;
}


#dofus-logo {
  max-width: 450px; /* Ajustez la taille selon vos besoins */
  height: auto;
  transition: transform 0.2s ease-in-out;
}
#dofus-logo:hover{
  transform: scale(1.05);
}
.container {
  text-align: center;  /* Centrer les boutons de jeux */
}
.main-container {
  display: flex;
  flex-direction: column; /* Empile les éléments verticalement */
  align-items: center; /* Centre les éléments horizontalement */
  height: 100vh; /* Prend toute la hauteur de l'écran */
}

.font{
  font-family: Howdy;
  font-size: 25px;
  letter-spacing: 1px;
  color: #005511;
}
.footer {
  position: absolute; /* Positionner l'élément par rapport à son parent */
  bottom: 0;
  left: 0;
  width: 100%; /* Le footer prend toute la largeur */
  color: #ffffff !important; /* Texte blanc */
  text-align: center; /* Centrer le texte */
  padding: 10px 0; /* Espace interne pour le texte */
  font-size: 12px; /* Taille du texte */
  z-index: 10100; /* S'assurer que le footer est au-dessus d'autres éléments si nécessaire */
  font-family: monospace;
}

/* Style de l'icône du point d'interrogation */
.rules-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.question-icon {
  font-size: 20px;
  color: #fff;
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
}

/* Zone des règles (invisible par défaut) */
.rules-tooltip {
  visibility: hidden;
  width: 250px;
  background-color: #f9f9f9;
  color: #333;
  text-align: center;
  border-radius: 5px;
  padding: 5px 10px 5px 10px;
  position: absolute;
  z-index: 1;
  left: 50%;
  margin-left: -125px; /* Centrer */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Afficher les règles lors du survol */
.rules-container:hover .rules-tooltip {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}



/* Zoomed in */

.zoomed-image-container {
  width: 200px;
  height: 200px;
  overflow: hidden;
  margin: 20px auto;
  position: relative;
}



.zoomed-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 300%; /* Initial zoom */
  background-position: center; /* Initial center position */
  background-repeat: no-repeat;
}

.autocomplete-items {
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  position: absolute;
  max-height: 200px;
  width: 445px;
  overflow-y: auto;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}

.autocomplete-items div:hover {
  background-color: #e9e9e9; 
}

.autocomplete-item {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background-color: #e9e9e9;
}


.button-89v2 {
  --b: 6px;   /* border thickness */
  --s: .45em; /* size of the corner */
  --color: #ffffff;
  
  padding: calc(.5em + var(--s)) calc(.9em + var(--s));
  color: var(--color);
  --_p: var(--s);
  background:
    conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
    var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
  transition: .3s linear, color 0s, background-color 0s;
  outline: var(--b) solid #dddddd00;
  outline-offset: .6em;

  border: 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  
  font-size: 20px;
  font-family: Howdy;
  margin-bottom: 10px;
  margin-top: 10px;
}



.button-89v2:hover,
.button-89v2:focus-visible{
    background-color: #ffffff24;

  --_p: 0px;
  outline-color: var(--color);
  outline-offset: .05em;
}

.button-89v2:active {
  background: var(--color);
  color: #000000;
}
.devinebtn{
  color: rgb(0, 0, 0);
}