html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: black;
  overflow: hidden;
  position: fixed;
  touch-action: none;
}

canvas {
  display: block;
  image-rendering: pixelated;
}

h1 {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #dcb697;
  text-align: center;
  font-family: monospace;
  font-weight: normal;
  font-size: 10px;
  z-index: 999;
  margin: 0;
}

a {
  color: #9ba5ae;
}

#controls-container {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
}

#size-slider {
  pointer-events: auto;
}

#resolution-display {
  color: #dcb697;
  font-family: monospace;
  font-size: 8px;
  pointer-events: none;
}

#shutter-button {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #ff9641, #9ba5ae);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 20px rgba(255, 150, 65, 0.3), 0 0 30px rgba(221, 114, 60, 0.3);
  z-index: 1000;
  filter: blur(4px);
}


#shutter-button:hover {
  background: radial-gradient(circle at 30% 30%, #ff974173, #9ba5ae79);
  box-shadow: inset 0 0 20px rgba(255, 150, 65, 0.5), 0 0 40px rgba(221, 114, 60, 0.5);
}

#shutter-button:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow: inset 0 0 10px rgba(255, 150, 65, 0.3), 0 0 20px rgba(221, 114, 60, 0.2);
  filter: blur(10px);
}

#flip-button {
  position: fixed;
  bottom: 50px;
  left: calc(50% - 150px);
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(62, 88, 121, 0.4);
  z-index: 1001;
  pointer-events: auto;
}

#flip-button:hover {
  background: rgba(62, 88, 121, 0.8);
  box-shadow: 0 0 25px rgba(62, 88, 121, 0.6);
}

#flip-button:active {
  transform: scale(0.95);
}

@media (max-width: 600px) {
  #flip-button {
    display: flex;
  }
}