body {
    margin: 0;
    padding: 0;
    height: 100vh;
    position: relative;
    background-color:aliceblue
  }

  #sketch-container {
    position: fixed;    /* pinned to the viewport */
    top: 0;
    left: 0;
    width: 100vw;       /* 100% of the viewport width */
    height: 100vh;      /* 100% of the viewport height */
    z-index: -1;        /* behind all normal (z ≥ 0) UI */
    overflow: hidden;   /* no scrollbars */
    pointer-events: none; /* clicks “fall through” to your buttons */
  }

  /* Navbar is above everything else */
  .navbar {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color:rgb(240, 255, 255);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Main content area */
  .container {
    position: relative;
    z-index: 1;
    padding-top: 100px; /* Some padding for the content */
    text-align: center;
  }

  /* Styling the buttons */
  .btn {
    margin: 10px;
    padding: 15px 20px;
    font-size: 1.5rem;
  }

  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
  }

  .back-btn {
    margin-top: 20px;
  }

/* Control panel styling */
.card {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 12px 12px 0 0 !important;
}

/* Badge styling for percentages */
.badge {
  min-width: 48px;
  font-size: 0.85rem;
  border-radius: 12px; /* Rounded pill shape */
  padding: 5px 8px;    /* More padding for better appearance */
  background-color:rgb(35, 89, 147) !important; /* Forest green color - override Bootstrap's bg-primary */
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icon styling */
.bi {
  color: #212529;
}

/* Make sliders more visible against potential background animations */
.form-range {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

#startButton {
  position: relative;
}

#startButton .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hidden {
  display: none;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* General body background and text */
.dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

/* Navbar */
.dark-mode .navbar {
  background-color: #1c1c1c !important;
  color: #e0e0e0 !important;
}

.dark-mode .navbar a,
.dark-mode .navbar-brand {
  color: #e0e0e0 !important;
}

/* Cards */
.dark-mode .card {
  background-color: #1e1e1e !important;
  color: #ccc !important;
  border-color: #333 !important;
}

/* Buttons */
.dark-mode .btn-outline-secondary {
  background-color: #2a2a2a !important;
  color: #ccc !important;
  border-color: #444 !important;
}

.dark-mode .btn-outline-secondary:hover {
  background-color: #3a3a3a !important;
  color: white !important;
}

.dark-mode #darkModeIcon {
  color: white;
}