@font-face {
  font-family: 'Galapagos';
  src: url('fonts/ABCGalapagosABC-Regular.woff2') format('woff2'),
       url('fonts/ABCGalapagosABC-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  flex-direction: column;
  position: relative;
}

.square-container {
  display: flex;
  align-items: center;
  gap: 106px;
  justify-content: center;
  transform: scale(1.5) translate(-50%, -50%);
  transform-origin: top left;
  position: relative;
  top: 20%;
  left: 24%;
}

.square {
  width: 320px;
  height: 400px;
  background-color: white;
  position: relative;
}

#greySquare2 {
  transform: scaleX(-1);
}

.small-square {
  width: 53.3333px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0);
  position: absolute;
  transition: top 0.3s ease, left 0.3s ease, transform 0.3s ease;
  color: rgb(0, 0, 0);
  font-size: 80px;
  font-family: 'Galapagos', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  text-transform: lowercase;
  margin-top: 10px;
}

.controls {
  position: absolute;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 3px;
  background: black;
  border-radius: 3px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: black;
  border-radius: 50%;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: black;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

label {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.button {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  padding: 8px 16px;
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.button:hover {
  background-color: black;
  color: white;
}
