* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	background-color: rgb(10,10,10);
}
:root {
	--size: 5%;
}

/* Container */
.container {
	width: 100vw;
	height: 100dvh;
	padding:32px;
}

/* Content */
.content {
	width: 100%;
	height: 100%;
	padding: 40px;
	overflow-y: scroll;
	display: flex;
	align-items: start;
	justify-content: start;
	align-content: start;
	justify-items: start;
	flex-wrap: wrap;
}
.content * {
	width: var(--size);
	mix-blend-mode: lighten;
	/* aspect-ratio: 1/1; */
	object-fit: cover;
}
.line-break {
	flex-basis: 100%;
	height: 0;
}

/* Blinking cursor */
#cursor {
	animation: cursor .5s steps(1) infinite alternate;
	background-color: rgb(43, 255, 0);
	width: calc(var(--size) / 50);
	height: calc(2 * var(--size));
}
@keyframes cursor {
	0% {
		opacity: .8;
	}
	50% {
		opacity: 0;
	}
}

/* Control Panel */
.controlPanel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgb(10, 10, 10);
  border-top: 1px solid rgb(43, 255, 0);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-family: monospace;
  z-index: 100;
}

.panelCenter {
  flex: 1;
  text-align: center;
  color: rgb(43, 255, 0);
  font-size: 12px;
  letter-spacing: 1px;
}

.panelLeft {
  display: flex;
  align-items: center;
  gap: 15px;
}

.panelLabel {
  color: rgb(43, 255, 0);
  font-size: 14px;
  text-transform: uppercase;
}

.panelRight {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile viewport - stacked layout */
@media (max-width: 768px) {
  .controlPanel {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 120px;
    padding: 16px;
    gap: 10px;
  }

  .panelCenter {
    width: 100%;
    text-align: left;
    order: 1;
  }

  .panelLeft {
    order: 2;
  }

  .panelRight {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    order: 3;
    width: 100%;
  }

  .container {
    padding: 16px;
  }

  .content {
    padding: 16px;
  }
}

.panelButton {
  background: none;
  border: none;
  color: rgb(43, 255, 0);
  font-family: monospace;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s;
}

.panelButton:hover {
  opacity: 0.7;
}

.panelButton:active {
  opacity: 0.5;
}

/* Size Slider in Panel */
.panelLeft #sizeSlider {
  width: 150px;
  height: 4px;
  border-radius: 2px;
  background: rgba(43, 255, 0, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.panelLeft #sizeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(43, 255, 0);
  cursor: pointer;
  transition: all 0.2s;
}

.panelLeft #sizeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.panelLeft #sizeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(43, 255, 0);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.panelLeft #sizeSlider::-moz-range-thumb:hover {
  transform: scale(1.3);
}
