/* ==============================
   GLOBAL STYLES
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Roboto:wght@400;700&display=swap');

:root {
  --primary: #ff2d2d;
  --secondary: #00c2ff;
  --accent: #ffd400;
  --dark: #0b0f14;
  --light: #ffffff;
  --success: #00e676;
}

.font_red {
  color: #ff2d2d !important;
}
.font-blue {
  color: #00c2ff !important;
}
.font-yellow {
  color: #ffd400 !important;
}
.font-black {
  color: #0b0f14 !important;
}
.font-white {
  color: #ffffff !important;
}
.font-green {
  color: #00e676 !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--dark);
  color: var(--light);
  text-align: center;
}

/* ==============================
   SCOREBOARD LAYOUT
   ============================== */

.scoreboard {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.header {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--accent);
}

/* ==============================
   TEAM PANELS
   ============================== */

.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.team {
  background: #141a22;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.team-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team.home {
  border-top: 6px solid var(--primary);
}

.team.away {
  border-top: 6px solid var(--secondary);
}

/* ==============================
   SCORE DISPLAY
   ============================== */

.score {
  font-family: 'Oswald', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  margin: 15px 0;
  color: var(--light);
}

.leader .score {
  color: var(--success);
  text-shadow: 0 0 12px rgba(0,230,118,0.6);
}

/* ==============================
   CONTROLS
   ============================== */

.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

button {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

input {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

button:active {
  transform: scale(0.96);
}

.btn-add {
  background: var(--accent);
  color: #000;
}

.btn-remove {
  background: #333;
  color: var(--light);
}

button:hover {
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

/* ==============================
   TIMER / STATUS BAR
   ============================== */

.status-bar {
  margin-top: 25px;
  padding: 15px;
  background: #10151d;
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.timer {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--accent);
}

.period {
  font-size: 1.2rem;
  text-transform: uppercase;
}

/* ==============================
   MOBILE RESPONSIVE
   ============================== */

@media (max-width: 600px) {
  .teams {
    grid-template-columns: 1fr;
  }

  .score {
    font-size: 4rem;
  }

  .timer {
    font-size: 2rem;
  }
}
