* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #000000;
  --star-color-rgb: 0, 0, 0;
  --trail-color: rgba(240, 240, 240, 0.2);
}

/* 2. Dark Mode Overrides */
body.dark-mode {
  --bg-color: rgba(25, 25, 25, 1);
  --text-color: #dddddd;
  --accent-color: #ffffff;
  --star-color-rgb: 255, 255, 255;
  --trail-color: rgba(25, 25, 25, 0.2);
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #111827;
}

body {
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
  transition: background-color 0.5s ease;
}

#blackhole {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  background-color: var(--bg-color);
}

canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: auto;
}

/* Theme toggle button styles */
#theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

/* Hide/Show logic for icons */
.sun-icon {
  display: none;
}
.moon-icon {
  display: block;
}

body.dark-mode .sun-icon {
  display: block;
}
body.dark-mode .moon-icon {
  display: none;
}

/* 5. CENTER TEXT (Black Hole Button) */
.centerHover {
  width: 255px;
  height: 255px;
  background-color: transparent;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -128px;
  margin-left: -128px;
  z-index: 2;
  cursor: pointer;
  /* line-height: 255px;
  text-align: center;
  transition: all 500ms; */

  /* NEW FLEXBOX STYLING */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  transition: all 500ms;
}

.centerHover.open {
  opacity: 0;
  pointer-events: none;
}

/* Default state (Idle) */
.centerHover span {
  color: var(--text-color); /* Fixed: was #666 */
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  position: relative;
  transition: all 500ms;
}

.centerHover span:before,
.centerHover span:after {
  content: '';
  display: inline-block;
  height: 1px;
  width: 16px;
  background-color: var(--text-color); /* Fixed: was #666 */
  transition: all 500ms;
  margin-bottom: 4px;
}

.centerHover span:before {
  margin-right: 12px;
}
.centerHover span:after {
  margin-left: 12px;
}

/* Hover state */
.centerHover:hover span {
  color: var(--text-color); /* Fixed: was #ddd */
  font-weight: bold; /* Added bold for hover effect since color is same */
  text-shadow: 0 0 5px var(--text-color); /* Glow effect instead of color change */
}

.centerHover:hover span:before,
.centerHover:hover span:after {
  background-color: var(--text-color); /* Fixed: was #ddd */
  width: 24px; /* Slight line expansion on hover */
}

/* Title Styling */
.centerHover .title {
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  position: relative;
  transition: all 500ms;
}

/* Enter Button Styling */
.centerHover .enter-btn {
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--text-color);
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 300ms;
}

/* Hover Effects */
.centerHover:hover .title {
  text-shadow: 0 0 8px var(--text-color);
}

.centerHover:hover .enter-btn {
  background-color: var(--text-color);
  color: var(--bg-color);
  box-shadow: 0 0 10px var(--text-color);
}
