/* body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-transition: background-color 0.3s, color 0.3s;
  -o-transition: background-color 0.3s, color 0.3s;
  -moz-transition: background-color 0.3s, color 0.3s;
  transition: background-color 0.3s, color 0.3s;
  font-family: system-ui, -apple-system, sans-serif;
} */

/* Theme Switcher */
.theme-switcher {
  position: relative;
  /* top: 1rem; */
  /* right: 1rem; */
  left: 4.5rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
  -moz-box-orient: horizontal;
  -moz-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
}

.theme-switcher.scrolled {
  margin-right: 4rem;
}

.theme-circles {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  /* flex-direction: row-reverse; */
  gap: 0.5rem;
}

.theme-circle {
  width: 0.6rem;
  height: 0.6rem;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  -o-transition: box-shadow 0.3s, -o-transform 0.3s;
  -moz-transition: transform 0.3s, box-shadow 0.3s, -moz-transform 0.3s, -moz-box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -moz-transform 0.3s,
    -o-transform 0.3s, -webkit-box-shadow 0.3s, -moz-box-shadow 0.3s;
  cursor: pointer;
}

.theme-circle[data-theme='light'] {
  background-color: yellow;
  border: 1px solid #ccc;
}

.theme-circle[data-theme='dark'] {
  background-color: #00ccff;
}

.theme-circle[data-theme='turquoise'] {
  background-color: #20b2aa;
}
.theme-circle[data-theme='pink'] {
  background-color: #ff02d5;
}

.theme-circle.active {
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -o-transform: scale(1.25);
  transform: scale(1.25);
  -webkit-box-shadow: 0 0 0 2px white;
  -moz-box-shadow: 0 0 0 2px white;
  box-shadow: 0 0 0 2px white;
}

.triangle-indicator {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 5.5px solid transparent;
  border-right: 5.5px solid transparent;
  border-bottom: 5.5px solid white; /* Normal triangle pointing upwards */
  -webkit-transition: top 0.3s ease, left 0.3s ease;
  -o-transition: top 0.3s ease, left 0.3s ease;
  -moz-transition: top 0.3s ease, left 0.3s ease;
  transition: top 0.3s ease, left 0.3s ease; /* Smooth movement */
  pointer-events: none;
  margin: -2px 0 0 1px;
}

/* Basic styles for the button and icon */
.theme-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative; /* For positioning the text relative to the button */
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  -o-transition: box-shadow 0.3s ease, -o-transform 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease, -moz-transform 0.3s ease,
    -moz-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease,
    -moz-transform 0.3s ease, -o-transform 0.3s ease, -webkit-box-shadow 0.3s ease,
    -moz-box-shadow 0.3s ease; /* Smooth transitions for hover and active states */
}

/* Tooltip (text) styling */
.tooltip {
  position: absolute;
  bottom: -26px; /* Start farther below the button */
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(10px) scale(0);
  -moz-transform: translateX(-50%) translateY(10px) scale(0);
  -o-transform: translateX(-50%) translateY(10px) scale(0);
  transform: translateX(-50%) translateY(10px) scale(0); /* Start small and farther below */
  background-color: rgba(0, 0, 0, 0.7); /* Dark background */
  color: white;
  padding: 5px 10px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  font-size: 10px; /* Default font size */
  white-space: nowrap; /* Prevent text from wrapping */
  opacity: 0; /* Initially invisible */
  visibility: hidden; /* Initially hidden */
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  -o-transition: opacity 0.8s ease, -o-transform 0.8s ease;
  -moz-transition: opacity 0.8s ease, transform 0.8s ease, -moz-transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease, -webkit-transform 0.8s ease,
    -moz-transform 0.8s ease, -o-transform 0.8s ease; /* Smooth fade-in and motion */
}

/* Show the tooltip text when hovering over the button */
.theme-button:hover .tooltip {
  opacity: 1; /* Fade the text in */
  -webkit-transform: translateX(-50%) translateY(0) scale(1);
  -moz-transform: translateX(-50%) translateY(0) scale(1);
  -o-transform: translateX(-50%) translateY(0) scale(1);
  transform: translateX(-50%) translateY(0) scale(1); /* Move up to normal position and scale */
  visibility: visible; /* Make the tooltip visible */
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  -o-transition: opacity 0.8s ease, -o-transform 0.8s ease;
  -moz-transition: opacity 0.8s ease, transform 0.8s ease, -moz-transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease, -webkit-transform 0.8s ease,
    -moz-transform 0.8s ease, -o-transform 0.8s ease; /* Slower fade-in and motion */
}

/* Shrinking and moving down when hover is removed */
.theme-button .tooltip {
  opacity: 0; /* Fade out */
  -webkit-transform: translateX(-50%) translateY(40px) scale(0);
  -moz-transform: translateX(-50%) translateY(40px) scale(0);
  -o-transform: translateX(-50%) translateY(40px) scale(0);
  transform: translateX(-50%) translateY(40px) scale(0); /* Shrink and move farther down */
  visibility: hidden; /* Hide tooltip */
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  -o-transition: opacity 0.8s ease, -o-transform 0.8s ease;
  -moz-transition: opacity 0.8s ease, transform 0.8s ease, -moz-transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease, -webkit-transform 0.8s ease,
    -moz-transform 0.8s ease, -o-transform 0.8s ease; /* Slower fade-out and motion */
}

.theme-button:hover {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add a soft shadow */
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  -o-transition: box-shadow 0.3s ease, -o-transform 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease, -moz-transform 0.3s ease,
    -moz-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease,
    -moz-transform 0.3s ease, -o-transform 0.3s ease, -webkit-box-shadow 0.3s ease,
    -moz-box-shadow 0.3s ease; /* Smooth hover effect */
}

/* Active (click) effect */
.theme-button:active {
  -webkit-transform: scale(0.95);
  -moz-transform: scale(0.95);
  -o-transform: scale(0.95);
  transform: scale(0.95); /* Shrink slightly to simulate a press */
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Reduce shadow to simulate depth */
  -webkit-transition: -webkit-transform 0.5s ease, -webkit-box-shadow 0.5s ease;
  transition: -webkit-transform 0.5s ease, -webkit-box-shadow 0.5s ease;
  -o-transition: box-shadow 0.5s ease, -o-transform 0.5s ease;
  -moz-transition: transform 0.5s ease, box-shadow 0.5s ease, -moz-transform 0.5s ease,
    -moz-box-shadow 0.5s ease;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transition: transform 0.5s ease, box-shadow 0.5s ease, -webkit-transform 0.5s ease,
    -moz-transform 0.5s ease, -o-transform 0.5s ease, -webkit-box-shadow 0.5s ease,
    -moz-box-shadow 0.5s ease; /* Slower click effect */
}
