body {
    background-image: url('./maintenance/assets/images/custom.png');
    background-size: cover; /* Ensure the background covers the entire viewport */
    background-position: center; /* Center the background image */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    text-align: center;
}

h2 {
    margin-top: 20px;
    font-size: 1.5rem; /* Use relative units */
    padding: 0 10px; /* Add padding for better readability on small screens */
}

canvas {
    margin: 20px auto;
    border: thin solid black;
    max-width: 100%; /* Ensure canvas scales with the width of the viewport */
}
        
span {
    display: block;
    margin: 20px auto;
    max-width: 90%; /* Adjust width for smaller screens */
    text-align: center;
}
        
footer {
    margin-top: 20px;
}
        
footer img {
    max-width: 100%;
    height: auto;
}

/* Generic pill badge */
.game-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.5);
  box-shadow:0 6px 15px rgba(0,0,0,.2);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
  margin:10px auto;             /* centers if inside a block-level container */
}
.game-badge i{ font-size:1.1em; line-height:1; }

/* Hover/active */
.game-badge:hover{ transform:translateY(-3px); box-shadow:0 12px 24px rgba(0,0,0,.3); }
.game-badge:active{ transform:translateY(0); filter:brightness(.95); }

/* Basketball theme */
.hoops{
  color:#2b1600;
  background:
    radial-gradient(circle at 30% 25%, #ffb86a 0%, #ff9a3d 40%, #d86a19 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.2),
    0 8px 20px rgba(0,0,0,.25);
}

/* Optional: subtle "pebble" texture for the ball */
.hoops::before{
  content:"";
  position:absolute;            /* requires a positioning context */
  inset:0;
  border-radius:999px;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.06), transparent 40%);
  opacity:.6;
}
.game-badge.hoops{ position:relative; overflow:hidden; }

/* Gym theme */
.gym{
  color:#e6f7ff;
  background: linear-gradient(135deg, #0c2d48, #145da0, #2e8bc0);
  width: min(300px, 100%);
  font-size: 25px;
}

.game-badge.gym.is-fixed {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
}