/* BASE */

body {
  background: #0b1220;
  color: white;
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  min-height: 100vh;
}

/* NAVBAR (OUTER) */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #111a2f;
  border-bottom: 1px solid #1f2a44;
  z-index: 100;
}

/* NAVBAR INNER (FIXES ALIGNMENT) */
.nav-inner {
  max-width: 1300px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* NAV LEFT */
.nav-left {
  color: #00ffcc;
  font-weight: bold;
  font-size: 18px;
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  gap: 20px;
}

.nav-right a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.nav-right a:hover {
  color: #00ffcc;
}

/* CONTENT */
.main-content {
  padding-top: 10px;
  min-height: calc(100vh - 60px);
}

/* CONTAINER */

.container {
  width: 95%;
  max-width: 1300px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #00ffcc;
  margin-bottom: 25px;
}

/* TABLE */

.table {
  border: none;
  width: 100%;
  margin-top: 20px;
}

/* HEADER */

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 0.5fr;
  padding: 12px 15px;
  font-weight: bold;
  color: #00ffcc;
  background: #111a2f;
  border-radius: 10px;
  position: sticky;
  top: 60px;
  z-index: 10;
  margin-bottom: 8px;
}

/* MATCH CARD */

.match-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 0.5fr;
  align-items: center;
  padding: 15px;
  margin-top: 12px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid #1f2a44;
  transition: 0.2s;
}

.match-row:hover {
  border-color: #00ffcc;
  box-shadow: 0 0 10px rgba(0,255,204,0.2);
}

/* TEAMS */

.teams {
  font-weight: 600;
  font-size: 16px;
}

.time {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}

/* SCORE */

.score {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.score input {
  width: 50px;
  height: 50px;
  background: #0b1220;
  border: 2px solid #00ffcc;
  color: white;
  text-align: center;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  transition: 0.2s;
}

.score input:focus {
  outline: none;
  border-color: #00ddb3;
  box-shadow: 0 0 8px rgba(0,255,204,0.5);
}

/* WINNER */

.winner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.winner label {
  cursor: pointer;
}

.winner input {
  display: none;
}

.winner span {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #00ffcc;
  font-size: 14px;
  transition: 0.2s;
}

.winner input:checked + span {
  background: #00ffcc;
  color: black;
}

/* POINTS */

.points {
  text-align: center;
  opacity: 0.7;
}

/* BUTTON */

#submitBtn {
  margin-top: 30px;
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  background: linear-gradient(135deg, #00ffcc, #00ddb3);
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

#submitBtn:hover {
  transform: scale(1.02);
}

/* MOBILE */

@media (max-width: 768px) {

  .nav-inner {
      max-width: 1300px;
      margin: auto;
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

  .nav-right {
    width: 100%;
    justify-content: space-around;
  }

  .table-header {
    display: none;
  }

  .match-row {
    display: block;
  }

  .teams {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .score {
    justify-content: center;
    margin-bottom: 10px;
  }

  .winner {
    justify-content: center;
    margin-bottom: 10px;
  }

  .points {
    text-align: center;
  }
}