/* =========================================================
   CHALLENGE PAGES
========================================================= */

.vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 120px 40px;
  min-height: 100vh;
  background: #0d0d0d;
  color: #e0e0e0;
}

/* Instructions Section */
.instructions-top {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.instructions-top p {
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Editor Section */
.editor-bottom {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.monaco-editor {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Run button */
#run-btn {
  background: linear-gradient(135deg, #5e5bfb, #00d4ff);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.2s ease;
  font-weight: 600;
}
#run-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(94, 91, 251, 0.5);
}

/* Output box */
#output {
  margin-top: 15px;
  background: #0f0f0f;
  color: #00ff9d;
  min-height: 60px;
  padding: 12px;
  border-radius: 8px;
  font-family: monospace;
  white-space: pre-wrap;
}

/* Navigation inside challenge */
.top-nav {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* Responsive */
@media (max-width: 800px) {
  .vertical-layout {
    padding: 100px 20px;
  }
  .instructions-top,
  .editor-bottom {
    padding: 20px;
  }
}


/* Next Lesson Button (bottom of editor) */
.next-lesson {
  margin-top: 25px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.next-lesson .next-btn {
  background: linear-gradient(135deg, #d05e00 #d05e00);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-block;
  transition: all 0.25s ease;
}

.next-lesson .next-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px #d05e00;
}

/* Fade animation when it appears */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
