@font-face {
  font-family: ULabGX;
  font-style: normal;
  font-weight: 100 900;
  src: url('font/ULabGX.ttf') format('truetype');
}

:root {
  --text-color: #000;
  --box-color: #ededed;
  --cube-color: #333;
  --bg-color: #ffffff;
  --font-weight: 400;
  --scale: 1;
  --font-size: 120px;
  --cube-ratio: 0.15;
  --gap-ratio: 0.15;
  --padding-ratio: 0.35;
}

body {
  font-family: ULabGX, system-ui, sans-serif;
  margin: 12px;
  background: var(--bg-color);
  color: var(--text-color);
  transition: 3s;
}

h2 {
  font-weight: 100;
}

/* Allgemeiner Range-Styling */
input[type="range"] {
  -webkit-appearance: none; /* Chrome, Safari, Opera */
  width: 100%;
  height: 1px;
  background:var(--text-color); /* schwarze Linie */
  border-radius: 1px;
  outline: none;
  padding: 0;
  margin: 0;
}

/* Griff (Thumb) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--text-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  margin-top: -1px; /* zentriert auf Linie */
}

input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

#bgColor{
	background:var(--bg-color);
	border:1px solid black;
	border-radius: 9999px;
}

#textColor{
	background:var(--text-color);
	border:1px solid black;
	border-radius: 9999px;
}

#cubeColor{
	background:var(--cube-color);
	border:1px solid black;
	border-radius: 9999px;
}

#boxColor{
	background:var(--box-color);
	border:1px solid black;
	border-radius: 9999px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 95vw;
  margin-bottom: 20px;
}

.controls .full {
  grid-column: 1/-1;
}

.anim-control label, .controls label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 300;
}
#fontSizeValue {
   font-weight: 100;
}
#scaleValue {
   font-weight: 100;
}
#fontWeightValue {
   font-weight: 100;
}

.anim-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
   font-weight: 100;
}

.anim-control input[type=range] {
  flex: 1;
}
input {    
    font-size: 1rem;
    font-weight: 300;
    font-family: ULabGX, system-ui, sans-serif;
    padding: 0.25rem 0.25rem 0.25rem 0.5rem;
  }

  input[type="color"]::-webkit-color-swatch {
    border:none;
  }

.preview-area {
  width: 95vw;
  height: auto;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

#sticker {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  width: 95vw;
  max-width: 95vw;
  transform-origin: center center;
  transform: scale(var(--scale));
  gap: calc(var(--font-size) * var(--gap-ratio));
  padding: calc(var(--font-size) * var(--padding-ratio));
  box-sizing: border-box;
  min-height: 200px;
}

.letter-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--box-color);
  height: 1.2em;
  width: auto;
  padding: 0 0.1em;
  box-sizing: border-box;
}

.letter-box.space {
  background: transparent;
}

.letter-box .letter {
  font-family: ULabGX, inherit;
  font-weight: var(--font-weight);
  color: var(--text-color);
  line-height: 1.2;
}

.cube {
  position: absolute;
  width: calc(var(--font-size) * var(--cube-ratio));
  height: calc(var(--font-size) * var(--cube-ratio));
  background: var(--cube-color);
}

.cube.top {
  top: 0;
  left: calc(var(--font-size) * -1 * var(--cube-ratio));
}

.cube.bottom {
  bottom: 0;
  left: calc(var(--font-size) * -1 * var(--cube-ratio));
}

.letter-box:empty {
  width: 1.2em;
  min-width: 1.2em;
  height: 1.5em;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.controls-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.btn {
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid #000000;
  background: #fff;
  cursor: pointer;
  font-family: ULabGX;
}

.btn.primary {
  background: #111;
  color: #fff;
  border-color: transparent;
}


/* Checkbox runder Kreis */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 18px;
  border-radius: 50%;        
  border: 1px solid var(--text-color);    
  background: #fff;          
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

/* Aktiviert */
input[type="checkbox"]:checked {
  background:var(--text-color);          
  border-color: var(--text-color);
}

/* Weißer Punkt als Check-Indikator */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 8px;
  background: var(--text-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}


/* Label + Checkbox schön nebeneinander */
.anim-control label,
.controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* Abstand zwischen Kreis und Text */
  cursor: pointer;
}
input[type="color"] {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  height: 20px;
  padding: 0;
  width:100%;
}