* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Share tech mono", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: #000;
  cursor: none;
}

.Rgb {
  z-index: 0;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  height: calc(min(75vh, 75vw));
  width: calc(min(75vh, 75vw));
  transition: left 0.5s ease-in-out, top 0.5s ease-in-out;
}

#cursor {
  transition: none;
}

#display {
  position: fixed;
  top: 50vh;
  left: 50vw;
  display: flex;
  width: calc(min(80vw, 100vh));
  transform: translate(-50%, -50%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

#clock {
  font-size: 8rem;
  font-weight: 300;
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  z-index: 100;
  display: none;
}

#text-display {
  color: white;
  font-size: 1.75rem;
  padding: 12px 24px;
  border-radius: 30px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  max-width: 80%;
  text-align: center;
  z-index: 100;
  display: none;
}

#info {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  text-align: center;
  z-index: 1000;
  width: 70%;
}

#text-input-container {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  display: none;
  width: calc(min(80vw, 100vh));
  max-width: 600px;
  text-align: center;
  pointer-events: none;
}

#text-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  font-family: "Share tech mono", monospace;
  font-size: 1.75rem;
  text-align: center;
  width: 100%;
  padding: 10px;
  outline: none;
  caret-color: #fff;
  transition: border-color 0.3s ease;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  pointer-events: auto;
}

#text-input:focus {
  border-bottom: 2px solid rgba(255, 255, 255, 1);
}

#input-instructions {
  margin-top: 15px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@media (max-aspect-ratio: 1/1) {
  #clock {
    font-size: 6rem;
  }
  #text-input {
    font-size: 2rem;
  }
}
