body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #1e1e1e;
  color: #ffffff;
  margin: 0;
  padding: 20px;
}

h1 {
  margin-bottom: 10px;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.fractal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.canvas-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Add specific styling for Julia set wrapper */
.julia-wrapper {
  flex-direction: row; /* Ensures slider goes on the right */
}

.zoom-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 20px;
  height: 600px;
  margin: 0;
  background: #333;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
}

.zoom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
}

.canvas-container {
  position: relative;
  width: 800px;
  height: 600px;
}

.canvas-container canvas {
  position: absolute;
  top: 0;
  left: 0;
}

canvas#mandelbrotCanvas,
canvas#juliaCanvas {
  border: 2px solid #ffffff;
  border-radius: 4px;
  background-color: #000000;
  cursor: crosshair;
}

canvas#mandelbrotMarkerCanvas,
canvas#juliaMarkerCanvas {
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
}

.controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.controls label {
  font-weight: bold;
}

.controls input[type="range"] {
  width: 300px;
}

.info {
  margin-top: 10px;
}

.info p {
  margin: 5px 0;
  font-size: 14px;
}