 #games .hero {
    background: linear-gradient(to right, #00b4d8, #90e0ef);
    color: white;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1.5s;
  }

  #games .hero img {
    max-height: 250px;
  }

 .game-box {
    border: 3px dashed #4CAF50;
    padding: 20px;
    border-radius: 12px;
    background: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s;
  }

.game-box h3 {
    color: #4CAF50;
    font-weight: 700;
    margin-bottom: 15px;
  }

 button {
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: none;
    padding: 8px 16px;
    background-color: #ffd166;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
  }

 button:hover {
    background-color: #ffa500;
    color: white;
    transform: scale(1.05);
  }

 .drag-box {
    padding: 10px;
    border: 2px dashed #007bff;
    background-color: #e6f0ff;
    cursor: grab;
    border-radius: 8px;
    min-width: 100px;
    text-align: center;
  }

 .drop-area {
    padding: 20px;
    border: 3px solid #444;
    min-height: 80px;
    width: 160px;
    background-color: #fff3cd;
    border-radius: 10px;
    text-align: center;
  }

 .certificate {
    border: 4px double gold;
    padding: 20px;
    display: none;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px gold;
    animation: popUp 1s;
  }

.badge {
    background: gold;
    color: black;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 0 10px gold;
    animation: popUp 1s;
  }

 pre {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
  }

 #resultBox {
    text-align: center;
    background-color: #e6ffe6;
    border: 2px solid #4CAF50;
    padding: 15px;
    border-radius: 8px;
  }

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

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes popUp {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }
 button.correct {
  background-color: #4CAF50 !important;
  color: white;
}
button.wrong {
  background-color: #f44336 !important;
  color: white;
}
.tab-button {
    border: none;
    background: #eee;
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
  }
 .tab-button.active {
    background: #ffc107;
    color: black;
  }
 .tab-content {
    display: none;
  }
.tab-content.active {
    display: block;
  }
 #code-editor {
  font-family: monospace;
  background-color: #f9f9f9;
  border: 2px dashed #007bff;
  padding: 10px;
  border-radius: 8px;
}

 iframe {
  background-color: white;
}



.mountain-container {
  position: relative;
  width: 100%;
  height: 500px;
  background-color: #f0f8ff;
  border: 2px solid #ccc;
  overflow: hidden;
  border-radius: 25px;
}

.mountain-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #ff9800;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  color: white;
  font-weight: bold;
  transform: translate(-50%, -50%);
}

#character {
  width: 100px;
  height: 80px;
  background-image: url('https://dzainstudio.com/MyCodeStudio/assets/images/hulk.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 20px;
  left: 20px;
  transition: all 0.6s ease;
}
#character.active {
    height: 40px;
    width: 50px;
}
.jump {
  animation: jump 0.5s;
}

@keyframes jump {
  0% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -20px) scale(1.1); }
  100% { transform: translate(-50%, 0) scale(1); }
}

#question-box {
  margin-top: 20px;
}






  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  