@font-face {
  font-family: hyperSuperFast; /* set name */
  src: url(/fonts/HyperSuperFast.ttf); /* url of the font */
}

:root{

    --table-head-color: #5cc0b3;

    --table-head-text-color: #ffffff;

    --table-tr-color: #dddddd;

    --table-tr-even-color: #eeeeee;

    --table-tr-last-color: #5cc0b3;

    --h2-color: #181818;

    --bg-color: #ffffff;

    --page-bg: #ffffff;
    --panel-bg: #ffffff;
    --text-color: #181818;
    --link-color: #181818;

}

.darkmode {
  --table-head-color: #5cc0b3;
  --table-head-text-color: #ffffff;
  --table-tr-color: #2b2b2b;
  --table-tr-even-color: #202020;
  --table-tr-last-color: #5cc0b3;
  --h2-color: #ebebeb;

  /* NEW */
  --page-bg: #141414;
  --panel-bg: #151515;
  --text-color: #ebebeb;
    --link-color: #ebebeb;
}

.leaderboard{
  text-align: center;
}


.content-table {

    border-collapse: collapse;

    margin: 25px auto;

    font-size: 0.8em;

    min-width: 400px;

    border: 5px 5px 0 0;
    
    overflow: hidden;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);

}


.content-table thead tr {

    background-color: var(--table-head-color);

    color: var(--table-head-text-color);

    text-align: center;

    font-weight: bold;

    font-size: 12px;

}



.content-table th,

.content-table td {

padding: 6px 3px;

}

@media (max-width: 600px){

  /* tighten the overall layout */
  h2.innerHeader{
    font-size: 26px;
    margin: 14px 0 8px;
  }

  .pickLink{
    font-size: 14px;
  }

  /* table sizing */
  .content-table{
    font-size: 0.72em;  /* smaller text */
  }

  .content-table th,
  .content-table td{
    padding: 8px 4px;   /* less padding so it fits */
    font-size: 14px;
  }

  /* make headers not feel huge */
  .content-table thead tr{
    font-size: 11px;
  }

  /* shrink number images a bit */
  .pick-num-img{
    width: 20px;
  }

  .pick-num-fallback{
    width: 20px;
    height: 26px;
    font-size: 20px;
  }
}




.content-table tbody tr {

    border-bottom: 1px solid var(--table-tr-color);

}



.content-table tbody tr:nth-of-type(even) {

    background-color: var(--table-tr-even-color);

}



.content-table tbody td:nth-child(1) {

    background-color: var(--table-tr-even-color);

}



.content-table tbody tr:last-of-type {

    border-bottom: 2px solid var(--table-tr-last-color);

}



.leaderboard {

    background-color: var(--panel-bg);

}

body{
  background: var(--page-bg);
  color: var(--text-color);
}


h2 {

    text-align: center;

    color: var(--h2-color);

    font-family:  "Titillium Web", sans-serif;

    font-weight: 300;

    font-size: 34px;

    text-decoration: none;

}



.pickLink

{

    text-align: center;

    color: var(--h2-color);

    font-family:  "Titillium Web", sans-serif;

    font-weight: 300;

    font-size: 16px;

    text-decoration: none;

    margin: -1px 0px;

}



#loginstate

{

    color: white;

}



#loginstate a

{

    color: white;

}

a 

{
    color: var(--link-color);
}

.pick-cell {
  text-align: center;
}

.pick-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pick-num-img {
  width: 25px;      /* tweak to taste */
  height: auto;
  margin-top: 2px;
  display: block;
}

/* hidden by default; only shown when img fails */
.pick-num-fallback {
  display: none;
  width: 30px;      /* match the image footprint */
  height: 40px;     /* optional: helps consistent row height */
  align-items: center;
  justify-content: center;

  font-family: "hyperSuperFast";
  font-size: 28px;  /* tweak */
  color: var(--text-color);   /* or white if your cell background is dark */
  line-height: 1;
}

@media (max-width: 600px) {
  .pick-num-img,
  .pick-num-fallback {
    width: 30px;
  }
  .pick-num-fallback {
    font-size: 28px;
  }
}

.news-card{
  width: 700px;
  max-width: 100%;
  margin: 16px auto 30px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.85);
  border-radius: 14px;
  border: 1px solid rgba(92,192,179,0.35);
  color: #fff;
  font-family: "hyperSuperFast";
}

.news-title{
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.news-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.news-item{
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.news-row{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.news-item a{
  color: #5cc0b3;
  text-decoration: none;
  font-family: "Titillium Web", sans-serif;
  font-size: 15px;
}
.news-item a:hover{ text-decoration: underline; }

.news-date{
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
  font-family: "Titillium Web", sans-serif;
}

/* Tag chips */
.news-tag{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  font-family: "hyperSuperFast";
}

/* Optional subtle category accents */
.news-tag.penalty { border-color: rgba(255,107,107,0.55); }
.news-tag.injury  { border-color: rgba(255,183,3,0.55); }
.news-tag.crew    { border-color: rgba(92,192,179,0.55); }
.news-tag.appeal  { border-color: rgba(142,202,230,0.55); }
.news-tag.weekend { border-color: rgba(255,255,255,0.28); }

/* The overall news block should never exceed screen width */
.news-wrap{
  width: 700px;
  max-width: 100%;
  margin: 16px auto 30px;
  padding: 0 12px;          /* ✅ keeps it inside on mobile */
  box-sizing: border-box;
}

/* Each row */
.news-item{
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(92,192,179,0.25);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

/* Badges should wrap instead of forcing width */
.news-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;          /* ✅ key */
  margin-bottom: 6px;
}

/* Make headlines wrap safely (prevents overflow) */
.news-link{
  display: block;
  color: white;
  text-decoration: none;

  overflow-wrap: anywhere;  /* ✅ key */
  word-break: break-word;   /* ✅ fallback */
}

/* Badge styling */
.news-badge{
  display: inline-block;
  font-family: "hyperSuperFast";
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
}

.news-badge.week{
  border-color: rgba(255, 183, 3, 0.55);
  color: #ffb703;
}

.theme-toggle-wrap{
  width: 700px;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 0 12px;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

.theme-toggle{
  font-family: "hyperSuperFast";
  background: rgba(0,0,0,0.85);
  color: #fff;
  border: 1px solid rgba(92,192,179,0.45);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1;
}

.darkmode .theme-toggle{
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.news-card{
  width: 700px;
  max-width: 100%;
  margin: 16px auto 30px;
  padding: 12px 14px;
  box-sizing: border-box;          /* ✅ prevents overflow */
  overflow: hidden;                 /* ✅ extra safety */
}

/* Fallback if no thumb exists */
.news-thumb-fallback{
  background: rgba(255,255,255,0.06);
}

/* Optional: shrink it even more on small phones */
@media (max-width: 420px){
  .news-rowlink{ grid-template-columns: 76px 1fr; }
  .news-thumb{ width: 76px; height: 46px; }
  .news-headline{ font-size: 14px; }
}

/* Desktop defaults (tighter) */
.news-rowlink{
  display: grid;
  grid-template-columns: 72px 1fr; /* smaller thumb column on desktop */
  gap: 10px;                       /* less space between image and text */
  align-items: center;
}

/* Thumbnail */
.news-thumb{
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}


:root{
  --news-thumb-w: 86px;
  --news-thumb-h: 52px;
}

/* One compact row per article */
.news-rowlink{
  display: grid;

  /* Desktop: thumb | centered text | spacer (same as thumb) */
  grid-template-columns: var(--news-thumb-w) 1fr var(--news-thumb-w);

  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

.news-thumb{
  width: var(--news-thumb-w);
  height: var(--news-thumb-h);
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  display: block;
}

.news-thumb-fallback{
  background: rgba(255,255,255,0.06);
}

.news-body{
  min-width: 0;
  text-align: center; /* ✅ centers headline on desktop */
}

.news-headline{
  font-family: "Titillium Web", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  color: #5cc0b3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* The spacer is only for desktop centering */
.news-spacer{
  width: var(--news-thumb-w);
  height: 1px;
}

/* Mobile: keep your perfect layout (no spacer column) */
@media (max-width: 600px){
  .news-rowlink{
    grid-template-columns: var(--news-thumb-w) 1fr;
  }
  .news-body{
    text-align: left; /* ✅ looks nicer on mobile */
  }
  .news-spacer{
    display: none;
  }
}

.chat-card{
  width: 700px;
  max-width: 100%;
  margin: 16px auto 30px;
  padding: 12px 14px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(92,192,179,0.35);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-family: "hyperSuperFast";
}

.chat-title{
  text-align:center;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 18px;
}

.chat-authline{
  display:flex;
  gap: 10px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom: 10px;
  font-family: "Titillium Web", sans-serif;
}

.chat-authline a{ color:#5cc0b3; text-decoration:none; }
.chat-authline a:hover{ text-decoration:underline; }

.chat-guestname{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

.chat-messages{
  height: 260px;
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.chat-msg{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
  margin-bottom: 8px;
  font-family: "Titillium Web", sans-serif;
}

.chat-meta{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: 0.85;
}

.chat-user{ color:#5cc0b3; }
.chat-guest{ color: rgba(255,255,255,0.7); font-size: 11px; margin-left: 6px; }

.chat-text{
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  overflow-wrap:anywhere;
}

.chat-form{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}

.chat-input{
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  font-family: "Titillium Web", sans-serif;
}

.chat-send{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92,192,179,0.45);
  background: rgba(0,0,0,0.85);
  color: #fff;
  cursor: pointer;
  font-family: "hyperSuperFast";
}

.chat-alert-wrap{
  width: 700px;
  max-width: 100%;
  margin: 10px auto 0;      /* match .theme-toggle-wrap margin */
  padding: 0 12px;          /* match .theme-toggle-wrap padding */
  box-sizing: border-box;

  display: flex;
  justify-content: flex-start;
}


.chat-alert{
  font-family: "hyperSuperFast";
  background: rgba(0,0,0,0.85);
  color: #fff;
  border: 1px solid rgba(92,192,179,0.45);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.darkmode .chat-alert{
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.chat-alert.has-unread{
  animation: chatPulse 1.2s ease-in-out infinite;
}

@keyframes chatPulse{
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce){
  .chat-alert.has-unread{ animation: none !important; }
}

.top-controls{
  width: 700px;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 0 12px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* When there's no unread count, keep its footprint but hide it */
.chat-alert.is-hidden{
  visibility: hidden;   /* stays in layout */
  pointer-events: none; /* can't click */
}

.chat-meta-right{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chat-del{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chat-del:hover{
  border-color: rgba(255,107,107,0.55);
}

.chat-time{
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chat-text a.chat-link{
  text-decoration: underline;
  word-break: break-word;
}
.chat-text a.chat-link:hover{
  text-decoration-thickness: 2px;
}
