body {
  font-family: sans-serif;
  margin-top: 0;
  padding-bottom: 10rem;
}

.card-title {
  font-weight: bold;
}

.btn-xl {
  font-size: 3rem;
  padding: 2rem 2rem;
  min-width: 100%;
  min-height: 100%;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  touch-action: manipulation;
}

.vocab-option {
  min-height: 8rem;
}

@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 2048px;
  }
}

@media (max-width: 1000px) {
  .btn-xl {
    font-size: 2rem;
    padding: 1.5rem 2rem;
  }

  .display-2 {
    font-size: 2.5rem;
  }

  .vocab-option {
    min-height: 2rem;
  }
}

.btn-outline-secondary {
  font-size: 1.2rem;
  padding: 0.3rem 0.3rem;
}

.back-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 28px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.next-challenge-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 0.5rem;
  font-size: 18px;
  color: white;
}

.badge-sm {
  font-size: 0.85rem;
  padding: 0.3em 0.5em;
}

.navbar.sticky-top {
  margin-top: 0;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1030;
  padding: 0;
}

.container {
  padding-top: 1rem;
}

.menu-control {
  height: 38px;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 0.95rem;
  border: 1px solid #6c757d;
  border-radius: 0.5rem;
}

#loadingOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.footer-text {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 2rem 0.25rem 1rem; /* increase right padding from 1rem to 2rem */
  border-radius: 0; /* no rounded corners for full width */
  z-index: 1030;
  user-select: none;
  display: flex;
  justify-content: flex-end; /* text aligned to right */
  align-items: center;
  border-top: 2px solid #198754; /* optional horizontal line */
}

.footer-green {
  color: #fff; /* white text for contrast */
  background-color: #198754; /* match btn-success background */
  border-top: 2px solid #198754; /* horizontal line same color */
}

.footer-yellow {
  color: #212529; /* dark text for contrast on yellow */
  background-color: #ffc107; /* match btn-warning background */
  border-top: 2px solid #ffc107; /* horizontal line same color */
}
