/* Code generated by ChatGPT model o1 pro */
html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background: black;
  font-family: Arial, Helvetica, sans-serif;
}

#mandelbrot,
#julia {
  position: absolute;
  touch-action: none; /* Prevents the browser’s default gesture handling */
}

#mandelbrot > canvas,
#julia > canvas {
  width: 100%;
  height: 100%;
}

#mandelbrot.vsplit {
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-right: 1px solid white;
  box-shadow: 0px 0px 5px #888888;
  z-index: 1;
}

#julia.vsplit {
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
}

#mandelbrot.hsplit {
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  border-bottom: 1px solid white;
  box-shadow: 0px 0px 5px #888888;
  z-index: 1;
}

#julia.hsplit {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 0;
}

.fullscreen {
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: bottom 0.1s ease-in-out, left 0.1s ease-in-out,
    width 0.1s ease-in-out, height 0.1s ease-in-out;
}

.minimized {
  z-index: 1;
  bottom: 3%;
  left: 3%;
  width: 20vmin;
  height: 20vmin;
  border: 4px solid white;
  border-radius: 10px;
  box-shadow: 0px 0px 20px #888888;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
}

/* A small box in the bottom-right corner */
.overlay {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  font-family: sans-serif;
  font-size: 14px;
  border-radius: 4px;
  text-align: right;
  z-index: 10;
}

#flopStats {
  left: 10px;
  right: auto;
  text-align: left;
}

#gearIcon {
  cursor: pointer;
  font-size: 24pt;
  width: 1em;
  height: 1em;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#downloadIcon {
  cursor: pointer;
  font-size: 24pt;
  width: 1em;
  height: 1em;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  right: 50px;
  top: 10px;
  position: absolute;
}

#controlPanel {
  position: absolute;
  right: 10px;
  top: 50px;
  width: 220px;
  grid-template-columns: max-content 1fr;
  column-gap: 6px;
  row-gap: 4px;
  text-align: left;
  z-index: 10;
}

#controlPanel .full {
  grid-column: span 2;
}

#controlPanel input[type="range"] {
  width: 100%;
}

#github {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: grey;
  text-decoration: none;
  font-size: 0.875rem;
}

#github:hover {
  text-decoration: underline;
}
