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

body {
  margin: 0;
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  overflow:hidden;
  cursor: none;
}

  *, a {
  cursor: none !important;
}


.clock-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  margin-top: -400px;
}

.column-viewport {
  width: 700px;
  height: 550px; /* 원 3개 이상 보이게 설정 */
  overflow: visible;
  position: relative;
}

svg {
  transition: transform 0.6s ease;
  position: absolute;
  left: 0;
  transform: translateY(0); /* JS에서 덮어씌움 */
  top:36%;

}

#hover-box {
  position: fixed;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
}

#hover-time {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 380px;
  font-family: 'Apple Garamond', sans-serif;
  font-style: normal;
  font-weight: 400;
  z-index: 5;
  color: black;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}


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

#clock {
  font-family: monospace;
  font-size: 2rem;
  color: #ffffff;
  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);
}

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

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


#project-name {
  position: fixed;
  left: 3%;
  font-size: 2rem;
  font-family: monospace;
  z-index: 1000;
  color: #ffffff;
  mix-blend-mode: difference;
}

#project-name-right {
  position: fixed;
  right: 3%;
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 1000;
  color: #ffffff;
  mix-blend-mode: difference;
  cursor: pointer;
}

#clock-container, #project-name, #project-name-right {
  top: 50px;
}

.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: #ffea00;
  --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: 80;
  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;
  }
}
#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;
}
