body {
  margin: 0;
  font-family: Arial;
  background: #f5f5f5;
  transition: background 0.3s ease;
  overflow: hidden;
}

.title {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;

  width: min(666px, 92vw);
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.title-bg {
  position: absolute;
  inset: 0;

  background: #f5f5f5;

  border-radius: 12px;
}

.title-bg.shadow {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#titleText {
  position: relative;

  font-size: clamp(28px, 4vw, 50px);

  font-family:
    'Segoe UI',
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;

  line-height: 1;

  display: flex;
  align-items: center;

  transform: translateY(-6px);
}

.wheel-center {
  position: fixed;

  left: 50%;
  top: 55%;

  transform: translate(-50%, -50%);

  z-index: 5;
}

.wheel-box {
  position: relative;

  width: min(500px, 90vw);

  display: flex;
  flex-direction: column;
  align-items: center;
}

canvas {
  width: min(500px, 90vw);
  height: auto;

  aspect-ratio: 1 / 1;

  border-radius: 50%;

  border: 0.3px solid rgba(0,0,0,0.5);

  box-shadow:
    1px 1px 2px rgba(0,0,0,0.5);
}

.pointer {
  position: absolute;

  right: -10px;
  top: 50%;

  transform: translateY(-53px);

  width: 0;
  height: 0;

  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 32px solid red;

  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));

  z-index: 10;
}

button {
  margin-top: 50px;

  padding: 10px 20px;

  border: 1px solid #ccc;

  background: #007bff;

  color: white;

  border-radius: 6px;

  cursor: pointer;
}

button:hover {
  background: #0069d9;
}

.wrapper {
  position: fixed;

  left: 50px;
  top: 250px;

  z-index: 50;
}

.panel {
  width: 250px;
}

textarea {
  width: 100%;
  height: 220px;

  border: 1px solid #ccc;

  resize: none;

  padding: 10px;
}

.btns {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 0px;

  margin-bottom: -10px;
  margin-right: -20px;
}

.btns button {
  padding: 6px;

  font-size: 14px;

  margin: 0;
}

#toggleUI {
  background: #000000;

  color: rgb(255, 255, 255);

  border: none;

  transition: all 0.25s ease;
}

#toggleUI:hover {
  background: #f5f5f5;
  color: black;

  transform: scale(1.05);
}

#toggleUI.active {
  background: #f5f5f5;
  color: black;
}

#toggleUI.active:hover {
  background: black;
  color: #f5f5f5;
}

#toggleUI.no-hover:hover {
  background: inherit !important;
  color: inherit !important;
}

#toggleUI.no-transition {
  transition: none !important;
}

@media (max-width: 1000px) {
  .wrapper {
    left: 20px;
    top: 180px;
    transform: scale(0.9);
    transform-origin: top left;
  }
}

@media (max-width: 700px) {
  .wrapper {
    transform: scale(0.75);
  }

  .pointer {
    right: -8px;
  }
}