/* Match the page colour so no white shows when iOS bounces past the edges. */
body.avalon-page {
  background-color: #10142b;
}

/*
 * The section is its own full-screen scroll area. Its background stays still while the content
 * scrolls inside it, which works on iOS where background-attachment: fixed and fixed layers do not.
 */
.avalon-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 3rem 0;
  text-align: center;
  background-color: #10142b;
  background-size: cover;
  background-position: center;
}

/* Leave room for the site sidebar on desktop. */
@media (min-width: 1200px) {
  .avalon-menu {
    left: 300px;
  }
}

.avalon-title {
  color: #f1dca7;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 0.5rem;
}

.avalon-subtitle {
  max-width: 640px;
  margin: 0 auto 2rem auto;
  color: #e6dcc0;
  text-shadow: 1px 1px 0 #000;
}

.avalon-group {
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
}

.avalon-group h5 {
  color: #f1dca7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.avalon-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.avalon-button {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  color: #f1dca7;
  background: #1c2a5c;
  border: 2px solid #c9a15b;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.avalon-button:hover {
  background: #283b7d;
}

.avalon-button:active {
  transform: translateY(2px);
}

.avalon-button.playing {
  background: #7a1f2b;
  border-color: #f1dca7;
  color: #fff;
}

.avalon-button-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.avalon-button-title small {
  font-weight: 400;
  opacity: 0.8;
}

.avalon-button-description {
  font-size: 0.85rem;
  opacity: 0.85;
}

.avalon-progress {
  display: block;
  height: 4px;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.avalon-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #f1dca7;
}
