.back-button {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.back-button:hover {
  color: var(--coral);
}

.tutorial-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--gold);
}

.controls {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

select,
input {
  width: 100%;
  padding: 0.5rem;
  background: var(--dark-blue);
  border: 1px solid var(--gold);
  color: var(--white);
  border-radius: 5px;
  cursor: pointer;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--coral);
}

.preview-area {
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 10px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-container {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  min-height: 300px;
  width: 100%;
  transition: all 0.3s ease;
}

.flex-item {
  background: var(--coral);
  color: var(--white);
  padding: 1rem;
  margin: 0.5rem;
  border-radius: 5px;
  min-width: 80px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.flex-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 83, 61, 0.5);
}

@media (max-width: 768px) {
  .tutorial-container {
    grid-template-columns: 1fr;
  }

  .controls {
    order: 2;
  }

  .preview-area {
    order: 1;
  }
}

.code-preview {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--gold);
}

.code-preview h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.code-preview pre {
  background: var(--dark-blue);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
}

.code-preview code {
  color: var(--light-gray);
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}
