/* Accessibility fixes layered over the original homepage styles (app.*.css is a compiled build,
   so it is left untouched). Colors meet WCAG AAA contrast (7:1 for text). */

/* Play Now buttons: white on the original light teal was only 2.75:1. */
.btn-teal {
  background-color: #005A5E;
  color: #FFFFFF;
}

.btn-teal:hover,
.btn-teal:focus,
.btn-teal:active {
  background-color: #00474A;
  color: #FFFFFF;
}

/* "Add icon" and "Add Jeevspark" buttons */
.btn-outline-teal {
  color: #005A5E;
  background: #FFFFFF;
  border: 2px solid #005A5E;
  font-weight: 600;
  white-space: nowrap;
}

.btn-outline-teal:hover,
.btn-outline-teal:focus {
  color: #FFFFFF;
  background: #005A5E;
}

.text-muted {
  color: #4A5259 !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
}

footer a {
  color: #005A5E;
  font-weight: 600;
}

/* A clear, strong focus ring for keyboard users (the original was a faint glow). */
a:focus-visible,
button:focus-visible,
a.btn:focus-visible,
button.btn:focus-visible {
  outline: 4px solid #B04E00;
  outline-offset: 3px;
  box-shadow: none;
}

.navbar-dark a:focus-visible,
.navbar-dark button:focus-visible {
  outline-color: #FFD27A;
}

/* "Skip to the games" link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1100;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: #005A5E;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: #FFFFFF;
}

main:focus {
  outline: none;
}

.home-heading {
  margin: 1.5rem 0 0;
  font-size: 1.75rem;
  color: #212529;
}

/* Text for screen readers only (for example the game name after "Play Now") */
.sr-only-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Tile pictures open the game too (a mouse/touch shortcut; keyboard users have the title and Play Now links) */
.cover-link {
  display: block;
  cursor: pointer;
}

/* The original build darkens the cover on hover with a layer on top; let clicks pass through it */
.game .cover-wrapper::after {
  pointer-events: none;
}

