/* ===== Reset & Base ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #222;
}

h1, h2, h3 {
  margin: 0.5em 0;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* ===== Navbar ===== */
.navbar {
  background: #111;
  padding: 10px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
}

.hamburger {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  display: none;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

#nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

#nav-links li a.active {
  color: #ffd700;
}

/* Mobile nav */
@media (max-width: 700px) {
  .hamburger {
    display: block;
  }
  #nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 10px;
  }
  #nav-links.show {
    display: flex;
  }
}

/* ===== Buttons ===== */
button, .submit-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #006400;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover, .submit-btn:hover {
  background: #228b22;
}

/* ===== Forms ===== */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  font-weight: bold;
  margin-bottom: 10px;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  cursor: pointer;
}

input[type="checkbox"], input[type="password"], input[type="text"], input[type="color"] {
  margin: 0;
  padding: 5px;
  font-size: 14px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 15px;
  background: #111;
  color: #fff;
  margin-top: 20px;
  font-size: 14px;
}

/* ===== Picks List Styling ===== */
.picks-list ul {
  list-style: none;
  padding: 0;
}

.picks-list li {
  padding: 6px 10px;
  margin: 5px 0;
  border-radius: 5px;
  font-weight: bold;
}

/* Success (Thank You) */
.picks-list.success li {
  background: #e6ffe6;
  color: #006400;
}
.picks-list.success li::before {
  content: "✔ ";
  color: green;
}

/* Error */
.picks-list.error li {
  background: #ffe6e6;
  color: #990000;
}
.picks-list.error li::before {
  content: "✖ ";
  color: red;
}

/* Summary messages */
.summary {
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
}
.summary.success { color: green; }
.summary.error { color: red; }

/* ===== Squares Board ===== */
.board-wrapper {
  position: relative;
  width: 800px;
  margin: 20px auto;
}

#board {
  display: grid;
  grid-template-columns: 100px repeat(10, 1fr);
  grid-template-rows: 100px repeat(10, 1fr);
  width: 100%;
  aspect-ratio: 1/1;
  border: 2px solid black;
}

.cell {
  border: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.header { background: #eee; font-weight: bold; }
.play { background: #fff; }

.team-label-row {
  position: absolute;
  top: -40px;
  left: 100px;
  width: calc(100% - 100px);
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  padding: 5px;
  background: #003366;
  color: #fff;
  border-radius: 5px;
}

.team-label-col {
  position: absolute;
  top: 100px;
  left: -60px;
  height: calc(100% - 100px);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: bold;
  font-size: 18px;
  padding: 5px;
  background: #990000;
  color: #fff;
  border-radius: 5px;
}

/* Print footer */
.print-footer {
  display: none;
  text-align: center;
  font-size: 9pt;
  margin-top: 15px;
  color: #444;
}

/* ===== Print Styles ===== */
@media print {
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .board-wrapper {
    width: 95vw;
  }

  #board {
    width: 95vw;
    height: auto;
    aspect-ratio: 1/1;
  }

  .team-label-row, .team-label-col {
    font-size: 14pt !important;
  }

  #controls, button, .hamburger {
    display: none;
  }

  footer {
    font-size: 10pt;
    color: #333;
    background: none;
    margin-top: 10px;
  }

  .print-footer {
    display: block;
  }

  @page {
    size: Letter portrait;
    margin: 0.5in;
  }
}
