:root {
  /* Dark Theme (default) */
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255,255,255,0.25);
  --grid: rgba(255,255,255,0.06);
}

html[data-theme="light"] {
  --bg: #f8f8f8;
  --fg: #111;
  --dim: rgba(0,0,0,0.35);
  --grid: rgba(0,0,0,0.08);
}

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

body {
/*  height: 100vh; */
  width: 100vw;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  overflow: auto;
  cursor: none;
}

/* dot grid */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

/* DIM MODE */
body.dim {
  color: var(--dim);
}

/* TIME ROW */
.time-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  z-index: 1;
}

/* MAIN TIME */
.time {
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20vw;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* SECONDS INLINE (¼ SIZE) */
.seconds {
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 3vw;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

/* DATE */
.date {
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-top: 18px;
  font-size: 3vw;
  opacity: 0.35;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align:center;
}

/* label */
.label {
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  position: relative;
  margin-top: 60px;
  font-size: 1.5vw;
  letter-spacing: 0.8em;
  opacity: 0.25;
  text-transform: uppercase;
  text-align: center;
}

/* DATE */
.tools-menu {
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-top: 18px;
  font-size: 0.5vw;
  opacity: 0.30;
  letter-spacing: 0.25em;
  line-height: 2;
  text-transform: uppercase;
  text-align: center;
}
/* footer */
.footer {
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
  position: absolute;
  bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.4em;
  opacity: 0.25;
  text-transform: lowercase;
}
/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--grid);
  border-radius: 50%;
  background: rgba(127,127,127,.08);
  color: var(--fg);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.08);
  background: rgba(127,127,127,.18);
}

body,
.theme-toggle {
  transition:
    background .35s ease,
    color .35s ease,
    border-color .35s ease;
}

.fullscreen-toggle {
  position: fixed;
  top: 20px;
  right: 84px;      /* sits beside theme button */
  width: 52px;
  height: 52px;
  border: 1px solid var(--grid);
  border-radius: 50%;
  background: rgba(127,127,127,.08);
  color: var(--fg);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
  z-index: 1000;
}

.fullscreen-toggle:hover {
  transform: scale(1.08);
  background: rgba(127,127,127,.18);
}

/* CSS */
.btn-minimal {
  background-color: #000;
  color: #eee;
  padding: 12px 24px;
  font-family: "Zen Dots", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top:5px;
  margin-bottom:5px
}

/* Hover State */
.btn-minimal:hover {
  background-color: #0056b3;
}

/* Container styling */
.custom-tooltip {
  position: relative;
  cursor: pointer;
  padding: 10px 20px;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: sans-serif;
}

/* Tooltip Box Configuration */
.custom-tooltip::before {
  content: attr(data-tooltip); /* Pulls text from the data attribute */
  position: absolute;
  bottom:100%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 8px 12px;
  background-color: #1e293b;
  color: #fff;
  font-size: 12px;
  white-space: wrap;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 10;
}

/* Tiny Arrow/Pointer Configuration */
.custom-tooltip::after {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-19%);
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 10;
}

/* Hover Interactivity Actions */
.custom-tooltip:hover::before,
.custom-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.custom-tooltip:hover::before {
  transform: translateX(-50%) scale(1);
}
