/*** Simple.css modifications ***/
/* Use dark mode only. */
:root {
  color-scheme: dark;
  --bg: #212121;
  --accent-bg: #2b2b2b;
  --text: #dcdcdc;
  --text-light: #ababab;
  --accent: #ffb300;
  --accent-hover: #ffe099;
  --accent-text: var(--bg);
  --code: #f06292;
  --preformatted: #ccc;
  --disabled: #111;
}


/*** Pagy-specific styles ***/
.pagy {
  display: flex;
  font-family: sans-serif;
  font-size: 0.875rem;
  justify-content: center;
  line-height: 1.25rem;
  font-weight: 600;
  color: #dcdcdc;
}

.pagy > :not([hidden]) ~ :not([hidden]) {
  --space-reverse: 0;
  margin-right: calc(0.25rem * var(--space-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--space-reverse)));
}

.pagy a:not(.gap) {
  display: block;
  text-decoration: none;
  border-radius: 0.5rem;
  background-color: #2b2b2b;
  padding: 0.25rem 0.75rem;
  color: inherit;
  border: 1px solid;
  border-color: #2b2b2b;
}

.pagy a:not(.gap):hover {
  background-color: #212121;
  border: 1px solid;
}

.pagy a:not(.gap):not([href]) { /* disabled links */
  cursor: default;
  background-color: #212121;
  border: 1px solid;
  color: #ababab;
}

.pagy a:not(.gap).current {
  background-color: #212121;
  border: 1px solid;
  color: #ababab;
}

.pagy label {
  white-space: nowrap;
  display: inline-block;
  border-radius: 0.5rem;
  background-color: #2b2b2b;
  padding: 0.125rem 0.75rem;
}

.pagy label input {
  line-height: 1.5rem;
  border-radius: 0.375rem;
  border-style: none;
  background-color: #2b2b2b;
}


/*** Additional styles ***/
/* Flash alerts. */
#alert {
  background-color: var(--accent-bg);
  border: 1px solid #ED6E5D;
  border-radius: 5px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #ED6E5D;
  width: 100%;
  padding: 0 15px;
  margin-left: 0;
  float: none;
}

/* Flash notices. */
#notice {
  background-color: var(--accent-bg);
  border: 1px solid #3EB489;
  border-radius: 5px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #3EB489;
  width: 100%;
  padding: 0 15px;
  margin-left: 0;
  float: none;
}

/* Validation errors. */
#error_explanation {
  color: #ED6E5D;
}

/* Hide elements. */
.hidden {
  display: none;
}

/* Skip for accessibility */
.skip {
  height: 30px;
  left: 50%;
  padding: 8px;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s;
}
.skip:focus {
  transform: translateY(0%);
}
