:root {
    --primary-color: hsla(268, 100%, 7%, 0.851);
    --secondary-color: hsl(270, 100%, 14%);
    --text-color: hsl(0, 0%, 86%);
    --accent-color: hsl(141, 76%, 46%);
    --correct-color: hsl(120, 76%, 46%);
    --wrong-color: hsl(0, 76%, 46%);
    --border-radius: 11px;
    --game-max-width: 800px;
}

.game-container {
    max-width: var(--game-max-width);
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-top: 4rem;
    font-family: 'October Crow', sans-serif;
    text-shadow: 0 0 10px hsl(141, 76%, 46%);
    font-weight: lighter;
}

.game-header h2 {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: 'LazyDog', sans-serif;
    text-shadow: 0 0 10px hsl(141, 76%, 46%);
    font-weight: lighter;
}

.game-button {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.game-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-color);
}



#question-number-container {
    text-align: center;
    margin-bottom: 20px;
}

#question-number-container label {
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    margin-right: 10px;
}

#question-number-container input {
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px dashed var(--accent-color);
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    text-align: center;
    width: 60px;
}

#question-container {
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

#question-progress {
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    text-align: center;
    margin-bottom: 20px;
}

#answers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
    
}

.answer-btn {
    padding: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    position: relative;
    overflow: hidden;
    
}

.answer-btn:hover {
    background-color: hsla(141, 76%, 46%, 0.37);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-color);
}

.answer-btn.selected {
    background-color: hsla(141, 76%, 46%, 0.37);
    box-shadow: 0 0 15px var(--accent-color);
    border: 1px dashed var(--accent-color);
}

.answer-btn.correct {
    background-color: var(--correct-color);
    animation: glowingBorder 1s ease-in-out infinite;
}

.answer-btn.incorrect {
    background-color: var(--wrong-color);
}

#detailed-result {
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

#result-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.bingo-message {
    color: var(--accent-color);
    font-size: 2rem;
    text-align: center;
    margin: 20px 0;
    animation: pulse 1s infinite;
}

#question-results {
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowingBorder {
    0%, 100% {
        box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--accent-color);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
    
    .game-header h1 {
        font-size: 2rem;
        padding-top: 100px;
    }
    
    #question-container {
        font-size: 1rem;
    }
    
    .answer-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

.quizz-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN1.webp') no-repeat center center;
  background-size: cover;
  z-index: -1;
  animation: fantomeFloat 10s ease-in-out infinite;
  will-change: transform, background-position;
  pointer-events: none;
}

@keyframes fantomeFloat {
  0%   { transform: scale(1); background-position: 50% 50%; }
  50%  { transform: scale(1.05); background-position: 48% 52%; }
  100% { transform: scale(1); background-position: 50% 50%; }
}






.box-count-choices span {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.choice-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.choice-button {
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid var(--accent-color);
  background-color: var(--primary-color);
  color: var(--text-color);
  font-family: 'LazyDog', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.choice-button:hover,
.choice-button.active {
  background-color: var(--accent-color);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 10px var(--accent-color);
}

.game-rules {
  background: #110024d9;
  backdrop-filter: blur(4px);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  margin-top: 2rem;
  line-height: 1.5;
  text-align: center;
}

.game-rules h3 {
  font-size: 1.3rem;
  font-weight: lighter;
  color: #1cce5b;
  margin-bottom: 1rem;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.game-rules p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.game-rules strong {
  font-weight: lighter;
  color: #1cce5b;
}





.quiz-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--game-max-width);
  padding: 1rem;
  margin: auto;
  border: 1px solid;
  border-image: linear-gradient(to top, #090013, #1cce5b, #090013) 1;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px #000000, inset 0 0 5px #000000;
  border-radius: var(--border-radius);
}

