@keyframes widthGrow {
  from {
    width: 0px;
    color: transparent;
  }
  to {
    width: 0.5ch;
    color: white;
  }
}
  
@keyframes bgFade {
  from {
    background-color: rgba(0, 0, 0, 0.1);
  }
  to {
    background-color: transparent;
  }
}
@keyframes cursorAppearAndShrink {
  0% {
    width: 0px;
    color: transparent;
  }
  50% {
    width: 0.5ch;
    background-color: rgba(0, 0, 0, 0.1);
  }
  100% {
    width: 3px;
    background-color: #b45309;
  }
}

@keyframes cursorAppear {
  from {
    width: 0px;
    color: transparent;
  }
  to {
    width: 0.5ch;
    color: white;
  }
}

.cursor {
    width: 0.5ch;
    background-color: rgba(0, 0, 0, 0.1);
    /* animation: widthGrow 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards; */
    animation: cursorAppearAndShrink 1.5s forwards;
    text-align: center;
    color: transparent;
}

.new-letter {
  font-weight: bold;
}

@keyframes letterPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.7;
    color: #ff9800;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.grace-period-pulse {
  animation: letterPulse 0.8s infinite ease-in-out;
  display: inline-block;
}

.letter-span {
  text-align: center;
  width: 1ch;
}

.cursorNewPosition {
 animation: cursorAppearAndShrink 1.5s forwards;
}

span.missingWord {
  opacity: 0.7;
}

span.missingWord::before {
  content: "[";
}

span.missingWord::after {
  content: "]";
}
span.missingWord::before,
span.missingWord::after {
  color: rgb(27, 8, 132);
  font-weight: bold;
  opacity: 0.5;
}

:root {
  /* --- CHANGE THIS LINE --- */
  --primary-color: #3b71ca; /* MDB Primary Blue */
  /* ------------------------ */
  --secondary-color: #6c757d; /* Bootstrap Gray */
  --text-color: #212529;
  --subtle-text: #6c757d;
  --bg-color: #eef2f7; /* Lighter background */
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
  --border-radius: 8px;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Style the updated navbar */
.navbar.navbar-light {
  background-color: var(--card-bg); /* Use card background for slight separation */
  border-bottom: 1px solid var(--border-color); /* Add the thin bottom border */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); /* Optional: Add a very subtle shadow */
  padding-top: 0.7rem; /* Match Proto 3 padding */
  padding-bottom: 0.7rem;
}

/* Style the brand text */
.navbar.navbar-light .navbar-brand {
  color: var(--primary-color); /* Use the primary color (green) */
  font-weight: 700;
  font-size: 1.4em; /* Match Proto 3 */
}

/* Style the navigation links */
.navbar.navbar-light .navbar-nav .nav-link {
  /* --- CHANGE THIS --- */
  color: var(--primary-color); /* Use primary blue for default link color */
  /* --- ADD THIS --- */
  font-weight: 500; /* Make text slightly bolder */
  /* ---------------- */
  font-size: 1em; /* Match Proto 3 */
  margin-left: 1.2rem; /* Match Proto 3 spacing */
}

/* Style the navigation links on hover */
.navbar.navbar-light .navbar-nav .nav-link:hover,
.navbar.navbar-light .navbar-nav .nav-link:focus {
  color: var(--primary-color); /* Use primary color on hover */
  opacity: 1;
  text-decoration: underline; /* Add underline on hover/focus */}

/* Ensure the toggler (hamburger icon) is dark */
/* Bootstrap's navbar-light usually handles this, but this is explicit */
.navbar.navbar-light .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1); /* Lighter border for toggler */
}

.navbar.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Modern Options Modal Styles */
.modern-options-modal .modal-content.modern-card {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.modern-options-modal .options-card {
  background-color: #f8fafc;
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern-options-modal .options-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.modern-options-modal .segmented-control .btn-check:checked + .btn-outline-primary {
  background-color: #1266f1;
  color: #ffffff;
  border-color: #1266f1;
  box-shadow: 0 2px 6px rgba(18, 102, 241, 0.35);
}

.modern-options-modal .segmented-control .btn-outline-primary {
  border-color: #cbd5e1;
  color: #475569;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modern-options-modal .segmented-control .btn-outline-primary:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.modern-options-modal #optionsForm {
  width: 100%;
}

.modern-options-modal .rating-sublabel {
  font-size: 0.72rem;
  opacity: 0.9;
  margin-top: 2px;
}

.guess-lockout {
  opacity: 0.6;
  pointer-events: none;
  background-color: rgba(239, 68, 68, 0.08) !important;
  border-color: #ef4444 !important;
}

#directOfferModal,
#rematchModal {
  z-index: 1065;
}

.modal-backdrop + .modal-backdrop {
  z-index: 1060;
}