/* Global Styles */
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden; /* Prevent scrollbars */
  background: transparent; /* Ensure no default background */
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', Arial, sans-serif;
  color: #333;
  position: relative;

  /* Smooth transition for background color */
  transition: background-color 0.5s ease;
}

/* Click Counter */
.click-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 98;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Home Icon */
.home-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #333; /* Default color (black) */
  text-decoration: none; /* Remove underline */
  cursor: pointer;
  transition: color 0.3s ease; /* Smooth hover effect */
}

.home-icon:hover {
  color: #5A2D85; /* Change color on hover to match the theme */
}

/* Hamburger Menu */
.hamburger {
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hamburger .bar {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  left: -290px;
  height: 100%;
  width: 210px;
  background-color: #333;
  color: white;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 99; /* Higher than the click counter */
}

.drawer.open {
  left: 0;
}

.drawer p {
  color: white;
  font-size: 20px;
  margin-top: 50px;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}

.close-btn:hover {
  background-color: #c0392b;
}

/* Mode Buttons */
.popping-mode-btn,
.zen-mode-btn {
  margin-top: 20px;
  background-color: #D6A7E5;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.popping-mode-btn:hover,
.zen-mode-btn:hover {
  background-color: #5A2D85;
}

.popping-mode-btn:active,
.zen-mode-btn:active {
  background-color: #5A2D85;
}

/* Circle */
.circle {
  width: 50px;
  height: 50px;
  background-color: #3498db;
  border-radius: 50%;
  position: absolute;
  cursor: pointer;

  /* Smooth transitions */
  transition: left 0.5s ease, top 0.5s ease, background-color 0.5s ease;

  /* Remove focus outline */
  outline: none;

  /* Remove tap highlight on mobile browsers */
  -webkit-tap-highlight-color: transparent;

  z-index: 100; /* Ensure it stays above other elements */
}

/* Hide Hamburger When Drawer is Open */
.drawer.open ~ .hamburger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  color: white;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #a29bfe;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.toggle-text {
  margin-left: 10px;
  font-size: 14px;
}