/* public/styles.css */
@property --hue {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.rainbow-text {
  animation: rainbow-text 3s linear infinite;
  color: hsl(var(--hue), 100%, 50%) !important;
}

@keyframes rainbow-text {
  to {
    --hue: 360;
  }
}

body {
  overflow: hidden;
  color: hsl(var(--hue), 100%, 50%);
  background: #000;
  margin: 0;
  padding: 0;
  transition: color .3s, background .3s;
  font-family: sans-serif;
}

.letter {
  position: absolute;
  user-select: none;
  z-index: 5;
  top: 0;
  left: 0;
}

.overlay {
  position: absolute;
  inset: 0;
}

.top-center {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items:  center;
  padding-top: 10vh;
}

main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items:  center;
  gap: .5em;
}

.covered-input {
  display: flex;
  width: max-content;
  height: 1.2em;
}

#input {
  z-index: 1;
  box-sizing: border-box;
  overflow: hidden;
  background: #222;
  border: 1px solid #fff;
  border-right: none;
  width: 5em;
  transition: color .3s, background .3s, border-color .3s;
}

#input:focus {
  outline: none;
  border: 2px solid #fff;
  border-right: none;
}

.mode-button {
  position: relative;
  z-index: 10;
  background: none;
  border: 2px solid #fff3;
  border-radius: 10%;
  width: 3em;
  height: 3em;
  margin: 0;
  padding: 0;
}

.mode-button svg {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  inset: 0;
}

.mode-button:hover {
  background: #fff2;
  border: 2px solid #fff5;
}
