/* Style Minecraft pour le jeu de calcul mental */
@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraft.woff2') format('woff2');
  }
  
  .math-game {
    font-family: 'Minecraft', 'Minecraftia', monospace;
    background-color: #826D55; /* Couleur bois de Minecraft */
    border: 4px solid #3a3a3a;
    border-radius: 0; /* Minecraft utilise des angles droits */
    box-shadow: inset 0 0 0 4px #693d29, 0 0 0 8px #2d2d2d;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    image-rendering: pixelated;
  }
  
  .game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #373737; /* Couleur pierre Minecraft */
    border: 2px solid #2d2d2d;
  }
  
  .game-score, .game-timer {
    font-size: 18px;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 2px 2px 0 #000000;
  }
  
  #score-value, #time-left {
    color: #FFFF55; /* Jaune Minecraft */
  }
  
  .game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .game-problem {
    background-color: #c6c6c6; /* Couleur laine grise */
    border: 4px solid #2d2d2d;
    padding: 30px;
    width: 100%;
  }
  
  .problem-text {
    font-size: 32px;
    font-weight: normal;
    color: #000000;
    text-align: center;
    text-shadow: 1px 1px 0 #ffffff;
  }
  
  .game-input {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  
  #answer-input {
    flex-grow: 1;
    padding: 12px 15px;
    background-color: #8B8B8B; /* Couleur des blocs de pierre */
    border: 2px solid #2d2d2d;
    color: white;
    font-family: 'Minecraft', 'Minecraftia', monospace;
    font-size: 18px;
    text-align: center;
    text-shadow: 1px 1px 0 #000000;
  }
  
  #answer-input:focus {
    border-color: #558b2f;
    outline: none;
  }
  
  .game-button {
    padding: 10px 15px;
    border: 2px solid #2d2d2d;
    background-color: #427a27; /* Vert Minecraft */
    color: white;
    font-family: 'Minecraft', 'Minecraftia', monospace;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000000;
    transition: all 0.2s;
  }
  
  .game-button:hover {
    background-color: #559637;
  }
  
  .game-button.primary {
    background-color: #5396da; /* Bleu diamant */
  }
  
  .game-button.primary:hover {
    background-color: #70a9e0;
  }
  
  .game-feedback {
    font-size: 18px;
    padding: 10px;
    text-align: center;
    width: 100%;
    border: 2px solid #2d2d2d;
  }
  
  .game-feedback.correct {
    background-color: #427a27; /* Vert Minecraft */
    color: white;
    text-shadow: 1px 1px 0 #000000;
  }
  
  .game-feedback.incorrect {
    background-color: #982333; /* Rouge Minecraft */
    color: white;
    text-shadow: 1px 1px 0 #000000;
  }
  
  .game-feedback.warning {
    background-color: #f39c12; /* Orange Minecraft */
    color: white;
    text-shadow: 1px 1px 0 #000000;
  }
  
  .game-feedback.game-over {
    background-color: #5396da; /* Bleu diamant */
    color: white;
    text-shadow: 1px 1px 0 #000000;
    font-weight: normal;
    padding: 15px;
    font-size: 20px;
  }
  
  .game-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }
  
  .high-scores {
    margin-top: 20px;
    background-color: #694d32; /* Planche de bois foncé */
    border: 4px solid #2d2d2d;
    padding: 15px;
  }
  
  .high-scores h3 {
    color: #FFFF55; /* Jaune Minecraft */
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #000000;
  }
  
  .high-scores-list {
    list-style-type: none;
    padding: 0;
  }
  
  .high-scores-list li {
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #7f684e;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000000;
  }
  
  .help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .help-content {
    background-color: #826D55; /* Bois Minecraft */
    border: 4px solid #2d2d2d;
    padding: 30px;
    max-width: 500px;
    width: 90%;
  }
  
  .help-content h3 {
    color: #FFFF55; /* Jaune Minecraft */
    margin-top: 0;
    text-shadow: 1px 1px 0 #000000;
  }
  
  .help-content p, .help-content li {
    color: white;
    text-shadow: 1px 1px 0 #000000;
  }
  
  .help-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: square;
  }
  
  .help-content li {
    margin-bottom: 5px;
  }
  
  /* Ajouts spécifiques Minecraft */
  .minecraft-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
  }
  
  .minecraft-icon.diamond {
    background-image: url('images/minecraft/diamond.png');
  }
  
  .minecraft-icon.emerald {
    background-image: url('images/minecraft/emerald.png');
  }
  
  .minecraft-icon.redstone {
    background-image: url('images/minecraft/redstone.png');
  }
  
  /* Barre de progression style Minecraft */
  .minecraft-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #3b2919; /* Bois foncé */
    border: 2px solid #2d2d2d;
    position: relative;
  }
  
  .progress-fill {
    height: 100%;
    background-image: linear-gradient(to right, #5de444, #45a730); /* Vert dégradé */
    position: relative;
    transition: width 0.5s;
  }
  
  .progress-fill::after {
    content: attr(data-value);
    position: absolute;
    right: 5px;
    top: 0;
    color: white;
    font-size: 14px;
    text-shadow: 1px 1px 0 #000000;
  }
  
  /* Expérience style Minecraft au bas de l'écran */
  .xp-bar-container {
    width: 100%;
    height: 10px;
    background-color: #3a3a3a;
    margin-top: 20px;
    position: relative;
  }
  
  .xp-bar {
    height: 100%;
    background-color: #7fce46; /* Vert XP Minecraft */
    width: 0%;
    transition: width 1s;
  }
  
  .xp-level {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    background-color: #3a3a3a;
    color: #7fce46;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 14px;
  }
  
  /* Animation de dégâts (pour mauvaise réponse) */
  @keyframes damage {
    0% { background-color: white; }
    50% { background-color: #FF0000; }
    100% { background-color: transparent; }
  }
  
  .damage-effect {
    animation: damage 0.5s;
  }
  .minecraft-promo {
    background-image: url('images/minecraft/dirt_bg.jpg');
    border: 4px solid #2d2d2d;
    padding: 20px;
    text-align: center;
  }
  
  .minecraft-logo {
    font-family: 'Minecraft', 'Minecraftia', monospace;
    font-size: 32px;
    color: #FFFF55;
    text-shadow: 2px 2px 0 #000000;
    margin-bottom: 20px;
  }
  
  .minecraft-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #427a27;
    border: 2px solid #2d2d2d;
    color: white;
    font-family: 'Minecraft', 'Minecraftia', monospace;
    font-size: 18px;
    text-shadow: 1px 1px 0 #000000;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .minecraft-button:hover {
    background-color: #559637;
    transform: translateY(-2px);
  }
  
  .minecraft-banner {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 0;
    margin-top: 15px;
  }