body {
    background-image: url('../img/bg-quiz.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100%;
    opacity: 0;
    transition: opacity 1s; 
    font-family: 'Cairo', sans-serif !important;
}
.f-cairo{
    font-family: 'Cairo', sans-serif !important; 
}

#preloader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: #fff;
}

#cadeau-top-left, #cadeau-bottom-left, #cadeau-bottom-right {
    position: fixed;
    max-width: 25%;  
    width: auto;
    height: auto;
}
 
#valise {
    position: fixed;
    height: auto;
    left: 50%;
    width: 350px; 
    transform: translateX(-50%);
    bottom: 30px;
}

#cadeau-top-left {
    top: 0;
    right: 0;
}

#cadeau-bottom-left {
    bottom: 0;
    right: 0;
}

#cadeau-bottom-right {
    bottom: 0;
    left: 0;
}

#logo {
     
    width: 100%;
    max-width: 240px;
}
#description{
    direction: RTL; 
    opacity: 0; 
}

 

#btn-start {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0; 
}

.no-padding{
    padding: 0px !important;
}



.confetti-button {
    font-family: 'Helvetica', 'Arial', sans-serif;
    display: inline-block;
    font-size: 1em;
    padding: 0.6em 2em;
    -webkit-appearance: none;
    appearance: none;
    background-color: #8c3836;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
    box-shadow: 0 2px 25px rgb(144, 59, 57)
  }

  .confetti-button-green { 
    background-color: #0bb265; 
    box-shadow: 0 2px 25px #0f844dba;
}
  
  .confetti-button:focus { outline: 0; }
  
  .confetti-button:before, .confetti-button:after {
    position: absolute;
    content: '';
    display: block;
    width: 140%;
    height: 100%;
    left: -20%;
    z-index: -1000;
    transition: all ease-in-out 0.5s;
    background-repeat: no-repeat;
  }
  
  .confetti-button:before {
    display: none;
    top: -75%;
    background-image: radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, transparent 20%, #8c3836 20%, transparent 30%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, transparent 10%, #8c3836 15%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
  }
  
  .confetti-button:after {
    display: none;
    bottom: -75%;
    background-image: radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, transparent 10%, #8c3836 15%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%), radial-gradient(circle, #8c3836 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
  }
  
  .confetti-button:active {
    transform: scale(0.9);
    background-color: #512219;
    box-shadow: 0 2px 25px rgba(255, 0, 130, 0.2);
  }
  
  .confetti-button.animate:before {
    display: block;
    animation: topBubbles ease-in-out 0.75s forwards;
  }
  
  .confetti-button.animate:after {
    display: block;
    animation: bottomBubbles ease-in-out 0.75s forwards;
  }
   @keyframes
  topBubbles {  0% {
   background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
  }
   50% {
   background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
  }
   100% {
   background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
   background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  }
  @keyframes
  bottomBubbles {  0% {
   background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
  }
   50% {
   background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
  }
   100% {
   background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
   background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  }


  .modal.show .modal-dialog::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(2px);
    z-index: -1;
}

 
  
  
  
  .slide{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
  }
  .active-slide{
    opacity: 1;
    z-index: 2;
  }
  .quiz-container{
    position: relative;
    height: 200px;
    margin-top: 40px;
  }

  .question{
    text-align: right;
    direction: rtl;
    padding-bottom: 10px;
  }
 
 
 
 /* Cacher les boutons radio */
input[type="radio"] {
    display: none;
}

/* Style de base pour les labels */
.answers label {
    display: block;
    text-align: right;
    direction: rtl;
    padding: 10px;
    background-color: #fff; /* Couleur de fond de base */
    transition: background-color 0.3s ease; /* Animation lors du changement de couleur de fond */
    border: 1px solid #9f9f9f;
    margin-bottom: 6px;
    margin-top: 6px;
    border-radius: 8px;
    cursor: pointer;
}

/* Couleur de fond lorsqu'un label est sélectionné */
.answers label.selected {
    background-color: #8c3836;
    color: #fff;
    font-weight: bold;  
}
.coloredHeaderWin{
    background-color: #0bb265;
    color: #fff;
    font-weight: bold;  
}
.coloredHeaderLose{
    background-color: #8c3836;
    color: #fff;
    font-weight: bold;  
}

#loseMessage , #winMessage{
    direction: rtl;
    font-weight: bold !important;
}

.main-color{
  color: #8c3836;  
}


.error {
  display: inline-block;
  direction: rtl;
  color: red;
}

.link{
  color: #fff;
  text-decoration: none;
}
.link:hover{
  color: #fff;
}




