/*
 * MidiGym Stylesheet
 * Design Philosophy: High-contrast, minimalistic aesthetic with focused interactive elements
 * Color scheme uses bold blues and yellows against dark backgrounds for maximum readability
 */

:root {
  --header-color: #689fe8;
  --accent-color: #f9f570;
  --text-color: white;
  --background-color: rgb(30, 30, 30);
  --learn-color: #4bdc65;
  --header-color-clear: color-mix(in srgb, var(--header-color) 75%, var(--background-color) 25%);
  --accent-color-clear: color-mix(in srgb, var(--accent-color) 75%, var(--background-color) 25%);
}

body {
  margin: 0;
  font-family: monospace;
  background: var(--background-color);
  color: var(--text-color);
}

h1 {
    color: var(--header-color);
    text-align: center;
}

/* Button styles */
.wide-hollow-button {
  background-color: transparent;  /* Use transparent instead of var to ensure it always matches */
  color: var(--text-color);
  text-transform: uppercase;
  font-weight: bold;
  padding: 16px 28px;  /* Match the wide-button padding */
  border: 3px solid var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  min-width: 200px;
  transition: all 0.2s ease;
  font-size: 1.2rem;  /* Match the wide-button font size */
  font-family: monospace;
}

.wide-hollow-button:hover {
  background-color: var(--text-color);  /* Match the white border color on hover */
  color: var(--background-color);
}

.wide-button {
  background-color: var(--header-color);
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  padding: 16px 28px;  /* Increased padding for taller button */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-width: 200px;
  transition: all 0.3s ease;
  font-size: 1.2rem;  /* Larger text */
  font-family: monospace;  /* Ensure monospace font */
}

.wide-button:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 0 2px var(--accent-color),
    0 0 0 4px #ff4757,
    0 0 0 6px #5f27cd,
    0 0 0 8px #00d2d3,
    0 0 0 10px #ff6b6b,
    0 0 0 12px white,
    0 0 20px rgba(249, 245, 112, 0.8),
    0 0 30px rgba(255, 71, 87, 0.6),
    0 0 40px rgba(95, 39, 205, 0.4);
}

.wide-button:disabled,
.wide-button[disabled] {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.5);
}

.small-button {
  background-color: var(--header-color);
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  padding: 16px;  /* Square aspect ratio */
  width: 48px;     /* Set width equal to total height (padding + content) */
  height: 48px;    /* Set height equal to total width */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: monospace;
  display: inline-flex;   /* Use flexbox for centering */
  align-items: center;
  justify-content: center;
}

.small-button-hollow {
  background-color: transparent;  /* Use transparent instead of var */
  color: var(--text-color);
  text-transform: uppercase;
  font-weight: bold;
  padding: 16px;  /* Square aspect ratio */
  width: 48px;    /* Match small-button dimensions */
  height: 48px;
  border: 3px solid var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: monospace;
  display: inline-flex;   /* Use flexbox for centering */
  align-items: center;
  justify-content: center;
}

.small-button-hollow:hover {
  background-color: var(--text-color);  /* Match the white border color on hover */
  color: var(--background-color);
}

.secondary-button {
  margin-top: 1.1rem;
  padding: 0.6rem 2rem;
  font-size: 1.05rem;
  border-radius: 0.7rem;
  border: none;
  background: #444;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 0.5rem;
  display: block;
}
.secondary-button:hover {
  background: #2196f3;
  color: #fff;
}

/* Also ensure monospace is consistent across all button types */
.wide-hollow-button,
.small-button,
.small-button-hollow {
  font-family: monospace;
}

/* Text styles */
p {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
}

strong {
  background: linear-gradient(to right, color-mix(in srgb, var(--text-color) 60%, var(--accent-color) 40%), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Form elements */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  background-color: black;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
  border: 1px solid #444;
  caret-color: white;
}

.chord.target {
  color: #fff;
  font-weight: bold;
  z-index: 2;
  /* Even softer fresnel/glow effect */
  box-shadow:
    0 0 0 1px var(--accent-color-clear),
    0 0 2px 0.5px var(--header-color),
    0 0 4px 1px var(--accent-color),
    0 0 6px 1.5px #fff2,
    0 0 8px 2px var(--accent-color-clear);
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.03) 0%,
    rgba(249,245,112,0.06) 40%,
    rgba(104,159,232,0.03) 100%
  );
  outline: 1px solid var(--accent-color);
  outline-offset: 1px;
  filter: drop-shadow(0 0 1.5px var(--accent-color));
  position: relative;
  transition: box-shadow 0.18s, outline 0.18s, background 0.18s;
}

/* Prevent glow from being clipped in the game area */
.game-area {
  /* ...existing code... */
  overflow: visible;
}