/* Base styling */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 20px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-weight: 600;
}

a {
  color: #f1c40f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Editor and output containers */
.editor, .output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background: #ffffff10;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editor:hover, .output:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* Code input styling */
#code {
  width: 100%;
  height: 250px;
  font-family: 'Fira Code', monospace;
  background: #2c3e50;
  color: #ecf0f1;
  border: none;
  border-radius: 10px;
  padding: 15px;
  box-shadow: inset 0px 3px 10px rgba(0, 0, 0, 0.3);
  outline: none;
  resize: none;
}

/* Highlight images in the output */
.output img {
  max-width: 100%;
  border: 2px solid #ffffff30;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.output img:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

/* Code block styling */
pre {
  background: #34495e;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  color: #ecf0f1;
  box-shadow: inset 0px 3px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

pre:hover {
  background: #3b5998;
}

/* Animations */
@keyframes glow {
  0% {
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.2);
  }
}

/* Animating hover effects */
.editor:hover, .output:hover {
  animation: glow 1.5s infinite;
}
