@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', monospace;
}

body {
  background: #121212;
  color: #eee;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #1f1f1f;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #00ff99;
}

#player-stats span {
  margin-left: 15px;
  font-weight: 600;
}

main {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
}

#challenge-box {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px #00ff9955;
}

#hint-btn {
  background: #00ff99;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

#hint-btn:hover {
  background: #00cc77;
}

#editor {
  display: flex;
  flex-direction: column;
}

#code-area {
  width: 100%;
  height: 200px;
  background: #0d0d0d;
  color: #00ff99;
  border: 1px solid #00ff99;
  border-radius: 10px;
  padding: 1rem;
  font-size: 14px;
}

#run-btn {
  background: #00ff99;
  color: #000;
  margin-top: 10px;
  padding: 0.75rem;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#run-btn:hover {
  background: #00cc77;
}

#output-box {
  grid-column: span 2;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 20px;
}

#output {
  background: #000;
  color: #00ff99;
  padding: 1rem;
  border-radius: 10px;
  min-height: 80px;
}

#feedback {
  text-align: center;
  margin-top: 20px;
  font-size: 1.5rem;
}

footer {
  background: #1f1f1f;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

#progress-container {
  width: 50%;
  background: #333;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff99, #00cc77);
  transition: width 0.5s ease;
}

#hint-text {
  background: #00000044;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-left: 3px solid #00ff99;
  display: none;
}

#feedback {
  text-align: center;
  margin-top: 20px;
  font-size: 1.5rem;
  transition: 0.3s ease;
}

#feedback.correct {
  color: #00ff99;
  text-shadow: 0 0 10px #00ff99;
}

#feedback.wrong {
  color: #ff4d4d;
  text-shadow: 0 0 10px #ff4d4d;
}

.level-up {
  animation: levelUp 1s ease;
}

@keyframes levelUp {
  0% { transform: scale(1); color: #fff; }
  50% { transform: scale(1.3); color: #00ff99; }
  100% { transform: scale(1); color: #fff; }
}
select {
  background: #1e1e1e;
  color: white;
  border: 1px solid #444;
  border-radius: 6px;
}

button {
  background: #2d2d2d;
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 15px;
  font-family: "Consolas", "Fira Code", monospace;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background: #3c3c3c;
  border-color: #666;
  transform: translateY(-1px);
}

button:active {
  background: #1e1e1e;
  transform: translateY(0px);
}

#run-btn {
  background: #007acc;   /* VSCode blue */
  border: 1px solid #006bb3;
}

#run-btn:hover {
  background: #0090e0;
  border-color: #007acc;
}

#hint-btn {
  background: #444;
}

#hint-btn:hover {
  background: #555;
}

select {
  background: #2d2d2d;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
  font-family: "Consolas", "Fira Code", monospace;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

select:hover {
  background: #3c3c3c;
  border-color: #666;
}
#nav-wrapper {
  text-align: center;
}

#nav-wrapper button {
  background: #2d2d2d;
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 15px;
  font-family: "Consolas", "Fira Code", monospace;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#nav-wrapper button:hover {
  background: #3c3c3c;
  border-color: #666;
  transform: translateY(-1px);
}

#nav-wrapper button:active {
  background: #1e1e1e;
  transform: translateY(0);
}
