/* Custom Styles: This is where you write your own CSS to change how the page looks */

/* :root is used to define global variables (colors, fonts, etc.) that you can reuse */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
}

/* body styles apply to the entire page */
body {
  /* font-family sets the text style. If the first font isn't available, it tries the next one. */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* footer styles apply only to the <footer> element */
footer {
  /* margin-top: auto helps push the footer to the bottom if there's little content */
  margin-top: auto;
}

#container {
  width: 400px;
  height: 200px;
  border: 1px solid #ccc;
  overflow-y: auto;
}

#output {
  white-space: pre-wrap;
  font-family: monospace;
  padding: 10px;
}

#gameStateText {
  white-space: pre-wrap;
}

.hide {
  display: none;
}
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1rem;
  z-index: 1000;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
