@import url('https://fonts.cdnfonts.com/css/apple-garamond');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #fafafa;
  cursor: none;
}

  *, a {
  cursor: none !important;
}

#hole-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  pointer-events: none;
  z-index: 101;
  mask-image: radial-gradient(circle 30vw at center, transparent 29.9vw, black 30vw);
  -webkit-mask-image: radial-gradient(circle 30vw at center, transparent 29.9vw, black 30vw);
}

.blend-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
}

#text1, #text2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 250px;
  font-family: 'Apple Garamond', sans-serif;
  font-weight: 400;
  color: black;
  z-index: 50;
}

#text1 {
  top: 8vh;
}

#text2 {
  top: 75vh;
}

#radial-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 101;
  pointer-events: auto;
}

#header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  mix-blend-mode: difference;
  z-index: 2000;
  pointer-events: auto;
  transition: background-color 0.3s ease;
}

#header-bar.overlay-active {
  background-color: #ffffff;
  mix-blend-mode: normal;
}

#project-name, #project-name-right {
  position: fixed;
  font-size: 2rem;
  font-family: monospace;
  z-index: 102;
  color: white;
  mix-blend-mode: difference;
  top: 50px;
}

#project-name {
  left: 3%;
}

#project-name-right {
  right: 3%;
  display: flex;
  gap: 15px;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

#header-bar.overlay-active #project-name,
#header-bar.overlay-active #project-name-right,
#header-bar.overlay-active #clock-container,
#header-bar.overlay-active #clock {
  mix-blend-mode: normal;
  color: #000000;
}

#clock-container {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 102;
  mix-blend-mode: difference;
  color: white;
}

#clock {
  font-family: monospace;
  font-size: 2rem;
  color: #fffcfc;
  mix-blend-mode: difference;
}

.mini-clock-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.mini-clock {
  position: relative;
  width: 45px;
  height: 45px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid currentColor;
  background: transparent;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.mini-clock__hand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(var(--rotation, 0deg));
  border-radius: 999px;
  background: currentColor;
}

.mini-clock__hand--hour {
  height: 17px;
}

.mini-clock__hand--minute {
  height: 16px;
}

.mini-clock__hand--second {
  height: 17px;
}

#project-name-right:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

#project-name-right:hover .mini-clock {
  transform: scale(1.06);
}


#radial-container svg:hover {
  cursor: pointer;
}
.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid rgb(0, 0, 0);
  background-color: #000000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

#floating-menu-overlay {
    --floating-bg: #ff3cd2;
    --floating-fg: #000000;
    --floating-accent: #000000;
    --floating-hand-thickness: 2px;
    --floating-item-font: clamp(16px, 2.2vw, 28px);
    position: fixed;
    inset: 0;
    display: none;
    background: var(--floating-bg);
    color: var(--floating-fg);
    overflow: hidden;
    z-index: 150;
    font-family: 'Apple Garamond', sans-serif;
  }

#floating-menu-overlay.active {
  display: block;
}

#floating-menu-overlay .floating-center-ellipse {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 1200px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

#floating-menu-overlay .floating-center-dot {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--floating-accent);
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
}

#floating-menu-overlay .floating-hand {
  position: fixed;
  left: 50%;
  top: 50%;
  height: var(--floating-hand-thickness);
  width: 0;
  background: var(--floating-accent);
  transform-origin: 0% 50%;
  transform: translate(0, -50%) rotate(0deg);
  z-index: 9;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0.9;
}

#floating-menu-overlay .floating-hour-hand,
#floating-menu-overlay .floating-minute-hand {
  position: fixed;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  background: var(--floating-accent);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.9;
}

#floating-menu-overlay .floating-hour-hand {
  width: 10px;
  height: min(32vmin, 220px);
  z-index: 6;
}

#floating-menu-overlay .floating-minute-hand {
  width: 8px;
  height: min(40vmin, 280px);
  z-index: 7;
}

#floating-menu-overlay .floating-second-hand {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 6px;
  height: min(45vmin, 320px);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  background: #ff2546;
  border-radius: 999px;
  pointer-events: none;
  z-index: 8;
}

#floating-menu-overlay .floating-menu {
  position: relative;
  width: 100%;
  height: 100%;
}

#floating-menu-overlay .floating-menu-item {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) translate(var(--radius, 0px)) rotate(calc(-1 * var(--rotate, 0deg))) scale(var(--scale, 1));
    transform-origin: center;
    color: inherit;
    text-decoration: none;
    font-size: var(--floating-item-font);
    opacity: 0.88;
    z-index: 5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#floating-menu-overlay .floating-menu-item:hover {
  --scale: 1.06;
  opacity: 1;
}

#floating-menu-overlay .floating-menu-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  #floating-menu-overlay .floating-menu-item {
    transition: none;
  }
}
