/*  GLOBAL FIX */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* FONT */
@font-face {
  font-family: "timer";
  src: url("fonts/CursedTimerUlil-Aznm.woff2") format("woff2");
  font-display: swap;
}

/* ROOT VARIABLES */
:root {
  --bg-main: #1b244a;
  --bg-dark: #000;
  --accent: #9aabd8;
  --score-red: #ff2d2d;
  --leader: #00ffcc;
}

/* BASE */
body {
  margin: 0;
  text-align: center;
  color: white;
  font-family: sans-serif;
}

/* CENTER LAYOUT */
main {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

/* CONTAINER */
.container {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  gap: 20px;
  padding: 20px 40px;
  border-radius: 12px;
}

/* HEADINGS */
h3 {
  font-size: 40px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 800;
  margin: 20px 0;
}

/* RESET P MARGIN */
p {
  margin: 0;
}

/* TIMER */
.time-select {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

select {
  padding: 5px;
  font-family: "timer";
  border-radius: 4px;
}

#timer {
  background-color: var(--bg-dark);
  font-family: "timer";
  font-size: 48px;
  padding: 10px 0;
}

#shot-clock {
  background-color: black;
  font-family: "timer";
  font-size: 36px;
  padding: 8px 0;
  color: orange;
}

#shot-clock.low {
  color: red;
}

/* SCORE LAYOUT */
.score-container {
  display: flex;
  justify-content: space-around;
  gap: 18px;
}

/* SCORE DISPLAY */
.display {
  background-color: var(--bg-dark);
  margin-bottom: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

/* SCORE TEXT */
#home-display-text,
#away-display-text {
  font-family: "timer";
  font-size: 90px;
  color: var(--score-red);
}

/* LEADER HIGHLIGHT */
#home-display-text.leading,
#away-display-text.leading {
  color: var(--leader);
}

/* BUTTON ROW */
.button-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

/* OPTIONS */
.options {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* BUTTONS */
button {
  border: 2px solid var(--accent);
  background-color: transparent;
  color: var(--accent);
  border-radius: 4px;
  padding: 7px 10px;
  font-family: "timer";
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.minus-btn {
  margin-top: 10px;
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* HOVER */
button:hover {
  background-color: var(--accent);
  color: var(--bg-main);
}

/* CLICK FEEDBACK */
button:active {
  transform: scale(0.95);
}

/* ACCESSIBILITY */
button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* RESPONSIVE (mobile support) */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h3 {
    font-size: 28px;
  }

  #home-display-text,
  #away-display-text {
    font-size: 60px;
  }

  #timer {
    font-size: 32px;
  }
}
