#detente{
  user-select: none;
    background: linear-gradient(
        45deg,
        rgba(120, 255, 120, 0.2),
        rgba(230, 180, 230, 0.2),
        rgba(120, 120, 255, 0.2),
        rgba(180, 230, 180, 0.2),
        rgba(255, 120, 120, 0.2),
        rgba(230, 230, 180, 0.2)
    );
}



#detente_head{
    min-height: 300px;
    width: 100%;
    background-image: url(../img/kit/jeux.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.4);
}
#detente_head_content{
    width: 100%;
    min-height:260px;
    padding: 20px 0;
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.1);
}
#detente_head h1 {
  margin: 0 0 40px 0;
  padding: 10px;
  font-family: 'Preahvihear', sans-serif;
  text-align: center;
  font-size: 2.5em;
  line-height: 1.5em;
  position: relative;
  color:rgba(0, 0, 0, 0.7);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.25)
  );
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width:800px){
    #detente_head h1 {
        font-size: 2em;
    }
}
#detente_head h1 span {
    margin-right: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 1.30em;
    display: inline-block;
    animation: rotateLetter 20s infinite; /* Applique l'animation à chaque lettre */
}
@keyframes rotateLetter {
    1% {
        transform: rotate(8deg); /* Rotation initiale */
    }
    3% {
        transform: rotate(-15deg); /* Rotation initiale */
    }
    10% {
        transform: rotate(385deg); /* Rotation complète */
    }
    15% {
        transform: rotate(350deg); /* Rotation complète */
    }
    20% {
        transform: rotate(363deg); /* Rotation complète */
    }
    25% {
        transform: rotate(360deg); /* Rotation complète */
    }
    55%{
        transform: rotateY(2520deg);
    }
    70%{
        transform: rotateY(10deg);
    }
    75%{
        transform: rotateY(-10deg);
    }
    100%{
        transform: rotateY(0deg);
    }
}
#detente_head p{
    display: table;
    margin: 0 auto;
    padding: 20px;
    max-width: calc(96% - 40px);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px); 
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    text-align: center;
    border-radius: 3px;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
}







.detente_block{
    width: 100%;
    min-height: 25vh;
    margin: 0 auto;
    padding: 10vh 0 5vh 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.detente_showGame_btn {
    position: relative;
    width: 300px; 
    aspect-ratio: 1/1; /* Hauteur des boutons */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    background-color: orange;
    color: #fff;
    border: 15px solid orange;
    border-radius: 8px;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size:cover;
    overflow: hidden;
    box-shadow: 0 0 7px 4px rgba(60, 60, 60, 0.5);
}

.detente_showGame_btn:hover {
    transform: scale(1.1) rotate(3deg);
}


.detente_showGame_btn p{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding:5px 0;
    font-family: 'Preahvihear', sans-serif;
    font-weight: bold;
    font-size: 26px;
}

#detente_showPendu_btn p{
    background: linear-gradient(
                    90deg,
                    rgba(60, 180, 60, 1.0),
                    rgba(60, 180, 60, 0.7),
                    rgba(60, 180, 60, 1.0)
                );    
}
#detente_showMotsCroises_btn p{
    background: linear-gradient(
                    90deg,
                    rgba(180, 90, 90, 1.0),
                    rgba(180, 90, 90, 0.7),
                    rgba(180, 90, 90, 1.0)
                );    
}












.detente_game {
  position: fixed;
  z-index: 101;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(240, 250, 240, 1.0);
  padding: 0;
  user-select: none;
  overflow-y: scroll;
}
.detente_game {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */

    /* Masquer la barre de défilement sur Webkit (Chrome, Safari) */
    &::-webkit-scrollbar {
        display: none;
    }
}



.game_close {
    position: fixed;
    top: 0;
    right: 0%;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

/* Masquer la barre de défilement sur Webkit (Chrome, Safari) */

.game_close:hover{
    background-color: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 1);
}



@keyframes blinking {
  0% { opacity: 1.0; }
  25% { opacity: 0.9; }
  50% { opacity: 0.2; }
  75% { opacity: 0.9; }
  100% { opacity: 1; }
}

.game_loading_span {
  display: table;
  position: absolute;
  top: calc(50% - 50px);
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 30px;
  font-family: "Preavihear", cursive;
  animation: blinking 2s infinite; /* Utilise l'animation blinking indéfiniment */
}















