@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

/* Background: same vibe as login (soft red → white) */
body{
  font-family: 'Poppins', sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;

  background-color: #ffffff;
  background-image: linear-gradient(
  180deg, 
  #c8102e 0%,      
  #ec5a6d 45%,     /* push lighter red lower */
  #f9d8dc 80%,     /* push light pink lower */
  #ffffff 100%
);
  background-repeat: no-repeat;
  background-size: 100% 100vh;   /* one full-height fade */
}

/* Layout: tight, centered two-column grid instead of huge center gap */
.scoreboard{
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 24px;                   /* control the center spacing */
  max-width: 1100px;           /* keeps content from getting too wide */
  margin: 0 auto;
  padding: 20px;
}

/* Cards should size to the grid, not fixed 40% */
.team{
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 0;                   /* grid handles spacing */
  width: auto;                 /* <-- remove the fixed 40% */
  min-width: 300px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
}
h1 {
  margin-top: 10px;
  font-size: 32px;
  font-weight: bold;
}

.logo {
  width: 180px;
  margin-top: 15px;
  margin-bottom: 10px;
  background-color: white;
  padding: 5px;
  border-radius: 8px;
}

input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 10px;
  width: 220px;
}

.scoreboard {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 20px;
  max-width: 100%;
}

.team {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  width: 40%;
  min-width: 300px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.team h2 {
  font-size: 26px;
  color: #c8102e;
  margin-bottom: 10px;
}

.score {
  font-size: 64px;
  font-weight: bold;
  color: #333;
  margin: 25px 0;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.buttons button {
  font-size: 60px;
  padding: 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

.blue button {
  background-color: #007bff;
  color: white;
}

.red button {
  background-color: #dc3545;
  color: white;
}

#reset-btn, #undo-btn {
  font-size: 18px;
  padding: 12px 25px;
  margin: 20px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#reset-btn {
  background-color: #333;
  color: white;
}

#undo-btn {
  background-color: #ffa500;
  color: white;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #ffffffdd;
  font-size: 14px;
  color: #333;
  margin-top: 40px;
  border-top: 1px solid #ccc;
}

#payment-wall {
  padding: 30px 10px;
  margin: 20px auto;
  max-width: 700px;
}
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 48px;
  color: rgba(255, 255, 255, 0.15);
  font-weight: bold;
  pointer-events: none;
  z-index: 999;
  user-select: none;
}
.demo-warning {
  background-color: #fff3cd;
  color: #856404;
  padding: 15px;
  margin: 30px auto;
  border-radius: 8px;
  width: fit-content;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.demo-warning a {
  color: #c8102e;
  font-weight: bold;
  text-decoration: underline;
}
.editable {
  cursor: pointer;
  padding: 5px;
  display: inline-block;
}

.inline-input {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  width: 150px;
  border-radius: 5px;
  border: 2px solid #ccc;
}
/* === SIDEBAR (single source of truth) === */
#hamburger{
  position: fixed; top:16px; left:16px;
  font-size:22px; background:#fff; color:#c8102e;
  border:0; border-radius:10px; padding:8px 12px; cursor:pointer;
  z-index:1100;
}

/* Dim overlay (shown/hidden with display by JS) */
#overlay{
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  z-index:1100;
}

/* Drawer (left side) */
#sidebar{
  display:none;                 /* JS toggles this */
  position:fixed; top:0; left:0;
  height:100vh; width:300px; max-width:85vw;
  background:#fff; color:#c8102e;
  box-shadow:2px 0 16px rgba(0,0,0,.2);
  padding:16px;
  overflow:auto;
  transform:translateX(-100%);  /* off-canvas */
  transition:transform .25s ease;
  z-index:1101;                 /* above overlay */
}
#sidebar.open{ transform:translateX(0); }

.sb-header{ display:flex; align-items:center; justify-content:space-between; }
.sb-logo{ width:64px; }
#closeSidebar{ background:transparent; border:0; font-size:24px; color:#c8102e; cursor:pointer; }

/* Prevent horizontal page scroll */
html, body{ height:100%; }
body{ overflow-x:hidden; }
/* Sidebar theming */
:root {
  --jl-red: #c8102e;
  --sb-bg: #ffffff;
  --sb-muted: #6b7280;
  --sb-line: #e5e7eb;
}

/* Top bar inside drawer */
#sidebar .sb-top{
  background: var(--jl-red);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 14px;
}
#sidebar .sb-brand{ display:flex; align-items:center; gap:10px; font-weight:600; }
#sidebar .sb-logo{ height:28px; background:#fff; border-radius:8px; padding:3px; }
#sidebar .sb-close{
  background: rgba(255,255,255,.2);
  border:0; color:#fff; font-size:18px; line-height:1;
  padding:6px 10px; border-radius:8px; cursor:pointer;
}

/* Card */
#sidebar .sb-card{
  background: var(--sb-bg);
  border:1px solid var(--sb-line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  margin-bottom: 14px;
}
#sidebar .sb-label{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--sb-muted); margin-bottom:6px; }
#sidebar .sb-name{ font-size:18px; font-weight:700; color: var(--jl-red); }
#sidebar .sb-email{ font-size:14px; color: var(--sb-muted); margin-bottom:10px; word-break: break-all; }

#sidebar .sb-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 8px 0; border-top:1px dashed var(--sb-line);
}
#sidebar .sb-row:first-of-type{ border-top:0; }
#sidebar .sb-key{ color: var(--sb-muted); font-size:13px; }
#sidebar .sb-val{ font-weight:600; }

/* Devices progress */
#sidebar .sb-progress{
  height:8px; background:#f3f4f6; border-radius:999px; margin-top:10px; overflow:hidden;
}
#sidebar .sb-progress-bar{
  height:100%; background: var(--jl-red); width:0%;
  transition: width .25s ease;
}

/* Nav links */
#sidebar .sb-nav{
  display:flex; flex-direction:column; gap:8px; margin: 8px 0 12px;
}
#sidebar .sb-nav a{
  display:block; padding:10px 12px; border-radius:10px;
  background:#f8fafc; color: var(--jl-red); text-decoration:none; border:1px solid var(--sb-line);
}
#sidebar .sb-nav a:hover{ background:#fff; box-shadow:0 4px 8px rgba(0,0,0,.06); }

/* Logout */
#sidebar .sb-logout{
  width:100%; padding:10px 12px; border-radius:10px; border:0;
  background: var(--jl-red); color:#fff; font-weight:600; cursor:pointer;
}
#sidebar .sb-logout:hover{ filter: brightness(.95); }
