/* Main Header */

.sb-header-table {
  width: 100%;
  margin: 0 auto;
  font-family: Verdana, Arial, sans-serif;
  color: #004aad;
  background-color: #f8f9fb;
  border-bottom: 2px solid #ddd;
  border-spacing: 0;
}

.sb-header-logo {
  width: 160px;
  text-align: left;
  padding: 10px;
}

.sb-header-center {
  text-align: center;
  width: calc(100% - 320px); /* full width minus logo and spacer */
  padding: 10px;
}

.sb-header-spacer {
  width: 160px;
  padding: 10px;
}

.sb-logo-img {
  height: 90px;
  max-width: 100%;
}

.countdown-label {
  font-size: 20px;
  font-weight: bold;
  color: #d80000;
  margin-bottom: 4px;
}

.sb-date {
  margin: 4px 0;
  font-size: 18px;
  color: #006600;
}

.countdown-timer {
  font-weight: bold;
  color: #004aad;
  font-size: 20px;
  margin-top: 6px;
  min-height: 24px;
}


.submit-button-wrapper p {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}


.superbowl-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.superbowl-grid td.afc-qtr1 {
    font-size: 24px;
    font-weight: bold;
    color: #b30000; /* Deep red */
    background-color: #ffe6e6; /* Light red background */
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ffcccc;
}    

.superbowl-grid td {
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    padding: 5px;
    word-wrap: break-word;
}

.superbowl-grid .square-cell {
    height: 70px;
    width: 70px;
}


/* Faded Header Logos: AFC vs NFC */
.matchup-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0.9;
  font-size: 1em;
}

.matchup-logo {

  max-width: 70px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
  transition: opacity 0.3s ease;
}

.vs-text {
  display: inline-block;
  transform: rotate(45deg);  /* ← backslash angle */
  font-weight: 700;
  color: #999;
  opacity: 0.9;
  font-size: 1em;
  line-height: 1;
}





/* Header and axis labels */
.quarter-header {
    background-color: #f7ef8a;
    font-weight: bold;
    font-size: 13px;
    color: #000;
}
.quarter-header1 {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    background-color: #fff4cc;
    color: #000;
    border: 1px solid #91b8e3;
    width: 40px;
}


.superbowl-grid td.q1-cell {
    font-size: 24px;
    font-weight: bold;
    color: #004aad;
    background-color: #e6f0ff; /* Light modern blue */
    text-align: center;
    vertical-align: middle;
    border: 1px solid #c0d6eb;
}

/* Special quarter 1 styling */
.q1-cell {
    font-size: 24px;
    font-weight: bold;
    color: #004aad;
    background-color: #e6f0ff;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #c0d6eb;
}
.q1-spacer {
    border: none !important;
}


/* Square status styles */
.square-available {
    background-color: #f4f4f4;  /* Light neutral gray */
    font-size: 12px !important;
    color: #333;
    font-weight:bold;
}
.square-available.clickable {
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}
.square-available.clickable:hover {
    background-color: #e0e0e0;
}
.selected-square {
    background-color: #3399ff !important;
    color: #fff;
    font-weight: bold;
}


#signupModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#signupModal .modal-inner {
  background: #fff;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  position: relative;
}

#signupModal .close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

#signupModal #modalContent {
  max-height: 80vh;
  overflow-y: auto;
}



/* Green for confirmed */
.square-confirmed {
    background-color: #c8f7c5;  /* Light green */
    font-weight: normal;
    color: #2d7a2d;
}

/* Enhanced Bright Gold-Yellow for Winners with Rich Gold Text */
.square-winner,
.winner {
    background-color: #FFEA00; /* brighter, more vivid yellow-gold */
    font-weight: bold;
    color: #8B6508; /* rich gold-brown text */
    border: 2px solid #e6ac00; /* golden border */
    box-shadow: 0 0 8px rgba(255, 234, 0, 0.85);
}

@keyframes sparkle {
  0%, 100% { text-shadow: 0 0 4px #fff, 0 0 8px #FFD700, 0 0 12px #FFD700; }
  50% { text-shadow: 0 0 6px #fff, 0 0 12px #FFEA00, 0 0 18px #FFD700; }
}

.square-winner,
.winner {
  animation: sparkle 1.2s infinite ease-in-out;
}

.footer-table {
  width: 95%;
  margin: 20px auto 10px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  color: #333;
  border-top: 1px solid #ccc;
  border-spacing: 0;
  border-collapse: collapse;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-link {
  color: #03489f;
  text-decoration: none;
  font-weight: bold;
}

.footer-admin-link {
  color: #999;
  text-decoration: none;
}



/* Orange for pending */
.square-pending {
    background-color: #ffcc80;  /* Light orange */
    font-weight: normal;
    color: #9c4f00;
   
}
.square-pending .square-num {
    font-weight: normal;
    font-size: 12px;
    line-height: 1;
    color: inherit; /* keep using the .square-pending color */
}

.square-pending .square-label {
    font-weight: normal;
    font-size: 12px;
    color: inherit;
}


.square-label {
    font-size: 12px;
    font-weight: normal;
    color: inherit;
    line-height: 1.2;
}

/* BANNER NOTICE */
 
.notice-banner {
  text-align: center;
  margin: 20px auto;
  padding: 15px;
  max-width: 90%;
  background-color: #fff0a8; /* brighter gold-yellow */
  color: #5c4400; /* deeper contrast */
  border: 2px solid #ffdf70;
  border-radius: 10px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 15px;
  box-shadow: 0 0 6px rgba(255, 223, 112, 0.7);
}






/* NFC TOP */



.nfc-banner-cell {
  position: relative;
  background: transparent;
  text-align: center;
  padding: 20px 0; /* gives room for logo to float behind */
  overflow: visible; /* allow logo to bleed out */
  border: none !important;
}

.nfc-background-logo {
  position: absolute;
  top: 250%;
  left: 50%;
  width: 25vw;
  max-width: 300px;
  transform: translate(-50%, -50%) rotate(5deg);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.nfc-team-name {
  font-size: 30px;
  font-weight: bold;
  color: #00008a;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 1;              /* ✅ above background */
  position: relative;      /* ✅ required to apply z-index */
}

.nfc-inline-logo {
  height: 30px;
  opacity: 0.9;
  display: inline-block;
}


.nfc-qtr {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #004aad;
  background-color: rgba(230, 240, 255, 0.7); /* ✅ Transparent background */
  text-align: center;
  vertical-align: middle;
  border: 1px solid #c0d6eb;
  position: relative; /* ✅ Enables z-index */
  z-index: 1;          /* ✅ Places text/image above background */
}


/* AFC LEFT (VERTICAL BANNER) */

.afc-qtr {
  background-color: rgba(255, 214, 214, 0.7); /* soft red @ 70% opacity */
  font-weight: bold;
  font-size: 24px !important;
  color: #D80000;
  
  position: relative;  /* enable stacking */
  z-index: 1;          /* make text stay above background image */
}


/* AFC LEFT (VERTICAL BANNER) */
.afc-banner-cell {
  border: none !important;
  background: transparent;
  padding: 0;
  position: relative;
  overflow: visible;
}

.afc-team-cell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.afc-team-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 30px;
  font-weight: bold;
  color: #d80000;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.afc-inline-logo {
  opacity: 0.9;
  height: 30px;
  transform: rotate(90deg); /* counter-rotate the logo so it's upright */
}


.afc-background-logo {
  position: absolute;
  top: 50%;
  left: 400%;
  width: 25vw;
  max-width: 300px;
  transform: translate(-50%, -50%) rotate(-5deg);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}



/* Super bowl Logo */


.sb-logo-cell {
    position: relative;
    border: none !important;
    background: transparent;
    overflow: visible;
}

.sb-logo-cell::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-image: var(--sb-logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-100%, -100%); /* move left and up */
    pointer-events: none;
    z-index: 2;
}


.submit-button-wrapper {
    text-align: center;
}

.submit-button {
    background-color: #0074D9;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.form-label {

    font-size: 14px;
    color: #004aad;
    margin-bottom: 4px;
    display: inline-block;
}

.invisible-cell {
  border: none !important;
  background: transparent !important;
  padding: 0;
}

.superbowl-grid {
  width: 95%;
  border-collapse: collapse;
  table-layout: fixed;
}

.superbowl-grid td {
  padding: 6px;
  text-align: center;
}



.superbowl-grid td:first-child {
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  padding: 6px;
  box-sizing: border-box;
}


/* Default: Set min-width for columns 1–4 */
.superbowl-grid td:nth-child(2),
.superbowl-grid td:nth-child(3),
.superbowl-grid td:nth-child(4),
.superbowl-grid td:nth-child(5) {
  min-width: 30px;
  max-width: 95%;
}

/* Optional: Allow smaller widths on narrow screens */
@media (max-width: 600px) {
  .superbowl-grid td:nth-child(2),
  .superbowl-grid td:nth-child(3),
  .superbowl-grid td:nth-child(4),
  .superbowl-grid td:nth-child(5) {
    min-width: auto;
  }
}


/* SIGN UP PAGE */


.square-confirm-heading {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    color: #004aad;
}

.square-confirm-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f8f9fb;
    font-family: Verdana, Arial, sans-serif;
}

.square-confirm-heading {
    color: #004aad;
}

.square-confirm-text {
    font-size: 14px;
}

.square-selected {
    color: #d80000;
    font-size: 16px;
}

.square-input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

.square-textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

.square-warning {
    text-align: center;
    font-size: 12px;
    color: #d80000;
    margin-top: 10px;
}



/* Rules Page */

.rules-payout-table {
    width: 95%;
    margin: 0 auto;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    border: 2px solid #009900;
    background-color: #ffffff;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 5px 15px;
}

.rules-section {
    width: 50%;
    vertical-align: top;
}

.payout-section {
    width: 50%;
    vertical-align: top;
}

.rules-heading {
    margin-top: 0;
    color: #006600;
}

.rules-list {
    padding-left: 20px;
    line-height: 1.6;
}

/* RULE COLORS */

.pending-status {
    color: #9c4f00;;
}

.confirmed-status {
    color: #2d7a2d;
}

.payout-table {
    width: 100%;
    font-size: 13px;
    border: 1px solid #009900;
    border-radius: 6px;
    border-collapse: collapse;
}

.payout-heading {
    text-align: center;
    color: #006600;
    font-size: 16px;
    background-color: #f2fff2;
    padding: 8px;
}

.teams-row {
  text-align: center;
  padding: 10px 0;
}

.team-logo {
  height: 20px;
  vertical-align: middle;

}

.vs-label {
  display: inline-block;
  transform: rotate(45deg); 
  font-size: 16px;
  vertical-align: middle;
  font-weight: bold;
  color: #444;
  opacity: 0.9;
  line-height: 1;
  margin: 0 8px;
  border-radius: 4px;
}

  
  
}

.payout-header-row {
    background-color: #e9f9e9;
}

.winner-cell {
    color: #FF8518;
    text-align: left; /* ✅ LEFT ALIGNMENT */
    padding-left: 10px; /* Optional: spacing */
}

.winner-cell.final {
    font-weight: bold;
}

/* end of Rules */
@media (prefers-color-scheme: dark) {

  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .sb-header-table {
    background-color: #1e1e1e;
    color: #82b1ff;
    border-bottom: 2px solid #444;
  }

  .sb-header-logo {
    background-color: #1e1e1e;
  }

  .sb-header-center {
    background-color: #1e1e1e;
  }

  .sb-header-spacer {
    background-color: #1e1e1e;
  }

  .countdown-label {
    color: #ff6e6e;
  }

  .sb-date {
    color: #81c784;
  }

  .countdown-timer {
    color: #64b5f6;
  }

  .superbowl-grid td.afc-qtr1 {
    background-color: #3a1f1f;
    color: #ff9999;
    border: 1px solid #553333;
  }

  .superbowl-grid td {
    border: 1px solid #444;
 
  }

  .superbowl-grid .square-cell {
    background-color: #1e1e1e;
  }

  .quarter-header {
    background-color: #3a3a1a;
    color: #fff9c4;
  }

  .quarter-header1 {
    background-color: #4b4b2b;
    color: #fff9c4;
    border: 1px solid #6c91b8;
  }

  .superbowl-grid td.q1-cell {
    background-color: #1e2a40;
    color: #a8cfff;
    border: 1px solid #3a4f6a;
  }

  .q1-cell {
    background-color: #1e2a40;
    color: #a8cfff;
    border: 1px solid #3a4f6a;
  }

  .square-available {
    background-color: #2c2c2c;
    color: #ccc;
  }

  .square-available.clickable {
    background-color: #2f2f2f;
  }

  .square-available.clickable:hover {
    background-color: #444;
  }

  .selected-square {
    background-color: #3399ff;
    color: #fff;
  }

  .square-confirmed {
    background-color: #2e7d32;
    color: #c8f7c5;
  }

  .square-winner {
    background-color: #ffee58;
    color: #8B6508;
    border-color: #e6ac00;
  }

  .winner {
    background-color: #ffee58;
    color: #8B6508;
    border-color: #e6ac00;
  }

  .square-pending {
    background-color: #996633;
    color: #fff0d5;
  }

  .square-label {
   
  }

  .notice-banner {
    background-color: #3c3c00;
    color: #fff8b0;
    border-color: #7d6a00;
  }

  .nfc-team-name {
    color: #82b1ff;
 text-shadow: 0 0 4px rgba(255, 110, 110, 0.4);
  }

 .nfc-qtr {
  background-color: rgba(30, 42, 64, 0.7);  /* dark navy with 70% opacity */
  color: #a8cfff;                           /* light blue text */
  border: 1px solid #3a4f6a;

  position: relative;
  z-index: 1;
}

.afc-qtr {
  background-color: rgba(59, 31, 31, 0.7);  /* dark maroon with 70% opacity */
  color: #ff6666;                           /* light red text */

  position: relative;
  z-index: 1;
}


  .afc-team-name {
    color: #ff6e6e;
    text-shadow: 0 0 4px rgba(255, 110, 110, 0.4);
  }

  .submit-button {
    background-color: #1565c0;
    color: #fff;
  }

  .form-label {
    color: #90caf9;
  }

  .square-confirm-heading {
    color: #90caf9;
  }

  .square-confirm-container {
    background-color: #1e1e1e;
    border-color: #444;
  }

  .square-warning {
    color: #ff8a80;
  }

  .rules-payout-table {
    background-color: #1e1e1e;
    border-color: #4caf50;
  }

  .rules-heading {
    color: #81c784;
  }

  .payout-heading {
    background-color: #2e7d32;
    color: #c8f7c5;
  }

  .payout-header-row {
    background-color: #1b4020;
  }

  .winner-cell {
    color: #ffcc80;
  }

  .vs-label {
    color: #fff59d;
  }


  .submit-button-wrapper p {
    color: #e0e0e0;
  }
 
  #signupModal .modal-inner {
    background: #2a2a2a;
    color: #e0e0e0;
  }

  #signupModal .close-modal {
    color: #e0e0e0;
  }


  .footer-table {
    color: #e0e0e0;
    border-top: 1px solid #555;
  }

  .footer-link {
    color: #90caf9;
  }

  .footer-admin-link {
    color: #bbbbbb;
  }

  textarea {
    background-color: #1e1e1e; /* or match your site's dark background */
    color: #f0f0f0;
    border: 1px solid #555;
  }

  textarea::placeholder {
    color: #aaa;
  }

  .square-input {
    background-color: #1e1e1e;
    color: #f1f1f1;
    border: 1px solid #444;
  }
}

/* NO SELECTION YET */

.square-locked {
    cursor: not-allowed;
    opacity: 0.75;
}

.square-locked .square-label {
    color: #777;
}

.squares-closed-message {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b00020;
    text-align: center;
}




/* =========================
   ADMIN SQUARE SELECTION LEFT/RIGHT TOGGLE
   ========================= */

.square-selection-card {
    width: 50%;
    margin: 20px auto 0 auto;
    text-align: center;
}

.square-selection-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.square-selection-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.square-selection-badge {
    display: inline-block;
    min-width: 140px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 1.05em;
}

.square-selection-badge.active {
    background-color: #d8f5df;
    color: #137333;
    border: 1px solid #8fd19e;
}

.square-selection-badge.off {
    background-color: #ffe0e0;
    color: #b00020;
    border: 1px solid #ff9b9b;
}

.square-selection-note {
    font-size: 0.95em;
    color: #555;
}

.square-segment-toggle {
    display: flex;
    width: 260px;
    border: 2px solid #ccc;
    border-radius: 999px;
    overflow: hidden;
    background: #f2f2f2;
}

.square-segment-toggle input[type="radio"] {
    display: none;
}

.square-segment {
    width: 50%;
    padding: 14px 0;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
    user-select: none;
}

.square-segment-off {
    color: #b00020;
}

.square-segment-on {
    color: #137333;
}

#square_off:checked + .square-segment-off {
    background-color: #b00020;
    color: white;
}

#square_on:checked + .square-segment-on {
    background-color: #28a745;
    color: white;
}

.square-selection-save {
    width: 100%;
    max-width: 500px;
    font-size: 1.1em;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: #6f42c1;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.25s ease;
}

.square-selection-save:hover {
    background-color: #5a32a3;
}

@media (prefers-color-scheme: dark) {
    .square-selection-note {
        color: #d0d0d0;
    }

    .square-segment-toggle {
        background: #222;
        border-color: #555;
    }

    .square-selection-badge.active {
        background-color: #143d22;
        color: #9be7ad;
        border-color: #2f8f46;
    }

    .square-selection-badge.off {
        background-color: #3d1414;
        color: #ff9b9b;
        border-color: #8f2f2f;
    }
}



