 a {
       text-decoration: none;
}

:root {
	--color-primary: #ffffff/*#f7ecd8;*/
	--color-secondary: #0d6efd;
	--color-tertiary: #0d6efd;
	--color-bg: #5600a7;
    --color-ticket: #cecece;

    --color-secondary-hover: #0543a0;
    --color-ticket-hover: #c0c0c0;
    --color-ticket-border: #6e6e6e;
    --color-bg-hover: #eeeeee;

    --color-text: #ffffff;
    --color-text-border: #000000;
}
/* body {
    background-color: var(--color-bg);
} */
html {
  height: 100%;
  background: linear-gradient(180deg, #0a0061, #5600a7, #570079) no-repeat center center fixed;
  background-size: cover;
}
body {
    min-height: 100%;
    background: transparent;
}

a {
    color: #41c3ff;
}

/* decorative shape behind all content */
body::before {
  content: "";
  position: fixed;    /* stays in viewport */
  inset: auto 0 0 0;  /* anchored to bottom: left/right 0, bottom 0 */
  height: 100%;      /* shape height */
  pointer-events: none;
  z-index: -1;        /* behind everything */
  background: 
    repeating-conic-gradient(
        from 0deg at 50% 70%,
        rgb(100, 100, 255) 0deg 0.6deg,
        transparent 0deg 8deg
    ),
    repeating-linear-gradient(0deg, rgb(100, 100, 255) 0 2px, transparent 0px 20px),
  rgba(28, 45, 155, 0.7);
  filter: blur(1px) saturate(1.1);
  clip-path: ellipse(70% 25% at 50% 100%);
  /* clip-path: polygon(20% 34%, 81% 34%, 100% 63%, 100% 100%, 0 100%, 0 63%); */
}

/* new lower/background shape */
body::after {
    bottom: 100%;
    content: "";
    position: fixed;    /* stays in viewport */
    inset: auto 0 0 0;  /* anchored to bottom: left/right 0, bottom 0 */
    height: 100%;      /* shape height */
    pointer-events: none;
    z-index: -1;        /* behind everything */
    background: 
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0 3px, transparent 0px 10px),
        /*repeating-linear-gradient(90deg, rgb(255, 0, 0) 0 1px, transparent 10px 41px), */
    rgba(255, 0, 0, 0.4);
        clip-path: polygon(47% 65%, 53% 65%, 56% 67%, 56% 80%, 44% 80%, 44% 67%);
    /* clip-path: polygon(20% 34%, 81% 34%, 100% 63%, 100% 100%, 0 100%, 0 63%); */
    filter: blur(2px) saturate(7);
}

.common-text {
    color: var(--color-text);
    text-shadow: var(--color-text-border) 0px 0px 2px,   var(--color-text-border) 0px 0px 2px,   var(--color-text-border) 0px 0px 2px,
             var(--color-text-border) 0px 0px 2px,   var(--color-text-border) 0px 0px 2px,   var(--color-text-border) 0px 0px 2px;
}

/* * {
    outline: 1px solid red;
 } */

.navbar-custom {
    display: grid !important;
    grid-template-columns: 10% 1fr auto 10%;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    max-width: 100% !important; 
    padding-left: 40px !important;
    padding-right: 40px !important;
    background: var(--color-secondary);
}

.navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border: none;
}


.navbar-brand {
    grid-column: 1 / 2;
}

@media (max-width: 768px) {
    .navbar-brand {
        display: none !important;
    }
}

.nav-links {
    grid-column: 3 / 4;
    gap: 20px;
}

.nav-link {
    border: 2px solid #000000;
    color: white;
}

.nav-link:hover {
    background-color: var(--color-secondary-hover);
}

 #season-dropdown {
    grid-column: 4 / 5;
    margin-left: auto;
    width: 100%;
    background: var(--color-bg);
 }

/* ensure game cards keep their horizontal layout */
.schedule-container {
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: var(--color-bg);
    max-width: 100%;
    box-sizing: border-box;
}

/* make both rows take the same inner width so they scroll together */
.dates-row,
.games-row {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width: 100%; /* will match the .horizontal-scroll__inner width */
    gap: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    /* force row height */
    grid-auto-rows: 120px;
}

.team-link {
    display: grid;
    border: 2px solid var(--team-primary, #000000); 
    text-align: center;
    font-weight: bold;
    /* force text to fit in box by changing font size */
    font-size: 1.2em;
    background-color: rgba(122, 122, 122, 0.3);
}

.team-link-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: #000 0px 0px 2px,   #000 0px 0px 2px,   #000 0px 0px 2px,
             #000 0px 0px 2px,   #000 0px 0px 2px,   #000 0px 0px 2px;
}

.team-link:hover {
    background-color: var(--team-secondary, #ffffff);
}

.team-name {
    padding-right: 2%;
    padding-left: 2%;
}

.team-logo {
    width: 80%;
    /* opacity: 50%; */
    overflow: hidden;
    position: relative;
    padding-left: 2%;

}

.team-name {
    margin: 0;
}




.schedule-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns of equal width */
    gap: 20px; /* Add spacing between grid items */
    justify-items: center; /* Center items horizontally */
    align-items: start; /* Align items at the top */
    margin: 20px auto; /* Center the grid within its container */
    width: 100%; /* Ensure the grid takes up the full width of the container */
}

@media (max-width: 1000px) {
    .schedule-grid-container {
        grid-template-columns: 1fr; /* One column per row on small screens */
    }
}

.schedule-grid-container .big-game-card {
    border: 1px solid #000000;
    min-width: 100%;
    min-height: 100%;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.schedule-grid-container a {
    width: 100%;
    padding: 1%;
}

.big-game-card:hover {
    background-color: var(--color-bg-hover);
}

.schedule-date {
    white-space: nowrap;        /* prevent wrapping */
    overflow: hidden;          /* hide overflow */
    text-overflow: ellipsis;   /* show ellipsis for long text */
    flex: 0 0 auto;            /* keep the element at its minWidth */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    box-sizing: border-box;
    border: 1px solid #000;
}

/* single scroll bar that controls both rows */
.horizontal-scroll__wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

/* an inner element sized to the combined width of items */
.horizontal-scroll__inner {
    display: inline-block;
    min-width: max-content; /* ensures it grows to fit children */
}

.game-card {
    min-width: 120px;
    height: 100%;
    border: 1px solid #000000;
    background: var(--color-bg);
    flex: 0 0 auto;
    
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-bottom: 0px;
    font-weight: bold;
}
.game-card:hover {
    background-color: var(--color-bg-hover);
}

.game-card .date {
    padding-top: 4px;
}

.game-card .teams {
    font-weight: bold;
    margin-bottom: 0px;
}

.game-card .score,
.game-card .time {
    margin-bottom: 3px;
    font-weight: normal;
    font-size: 12px;
}

.game-card .logos {
    margin-top: 5px;
}

.big-game-card {
    width: 100%;
    height: 100%;
    flex: 0 0 auto;
}

.table-responsive table {
    table-layout: auto; /* Enforce fixed layout for columns */
    width: 100%; /* Ensure the table takes up the full width of the container */
}

.table-responsive th, 
.table-responsive td {
    word-wrap: break-word; /* Break long words to prevent overflow */
    white-space: normal; /* Allow wrapping of text */
}

.scoresheet-card {
    width: 100%;
    box-sizing: border-box;
}

.floating-dropdown {
    position: fixed;         /* Take it out of the normal flow */
    top: 200px;               /* Adjust as needed */
    right: 10px;             /* Adjust as needed */
    width: 220px;
    background-color: var(--color-bg);
    border: 1px solid black;
    border-radius: 0;
}

.dropdown-and-schedule-container-wrapper {
    position: relative;
    overflow-y: hidden; /* Prevent vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.team-link-standings {
    white-space: nowrap !important;
    width: 1%;
    min-width: 120px;
    max-width: none;     
}

.home {
    padding: 10px;
    padding-top: 20px;
}

.home-left {
    padding: 10px;
    border: 1px solid black;
}

.home-right {
    padding: 10px;
    border: 1px solid black;
}











*,
*::before,
*::after {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	backface-visibility: hidden;
}

.ticket {
	background-color: var(--color-ticket);
	color: var(--color-secondary);
	width: 100%;

    display: grid;
	grid-template-columns: 20% 1fr;
	font-family: var(--font-body);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.ticket:hover{
    background-color: var(--color-ticket-hover);
}

.ticket-sub {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	text-align: center;
	padding: 10px 10px;
	border-right: 6px dotted var(--color-bg);
	position: relative;
	z-index: 1;
    border-bottom: 3px dotted var(--color-ticket-border);
    border-top: 3px dotted var(--color-ticket-border);

}
.ticket-sub::before,
.ticket-sub::after {
	background-color: var(--color-bg);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	content: "";
	position: absolute;
	z-index: 2;
	top: -14px;
	right: -14px;
}
.ticket-sub::after {
	top: unset;
	bottom: -14px;
}
.ticket-sub h3 {
	font-size: 30px;
	padding: 10px 8px 10px 4px;
	background: var(--color-tertiary);
	color: white;
    margin-bottom: 0px;
}
.ticket-sub h3::before,
.ticket-sub h3::after {
	background-color: var(--color-bg);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	content: "";
	position: absolute;
	z-index: 2;
	top: -18px;
	left: -22px;
}
.ticket-sub h3::after {
	top: unset;
	bottom: -18px;
}
.ticket-sub p {
	font-size: 18px;
	letter-spacing: 8px;
	font-weight: 500;
	padding: 14px 0px 14px 0;
	text-align: center;
    margin-bottom: 0px;
}
.ticket-sub p::before {
	content: "";
	width: 2px;
	height: 100%;
	position: absolute;
	top: 0;
	right: calc(100% - 3px);
	border-right: dotted 5px var(--color-bg);
}
.ticket-sub p::after {
	content: "";
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	box-shadow: inset 0 0 0 2px var(--color-secondary);
	position: absolute;
	top: 10px;
	left: 10px;
}

.ticket-main {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
    grid-template-rows: 80% 20%;
    width: 100%;
    border: 3px dotted grey;
    position: relative;
}

.ticket-main P {
    font-size: 32px;
    font-weight: bold;
    grid-column: 1 / -1; /* Span across both columns */
    text-align: center;
    margin-bottom: 0px;
    text-decoration: none;
}

.ticket-main .logos {
    grid-row: 1 / 2; /* Place in the first row */
    grid-column: 1 / -1; /* Span across both columns */
    display: flex;
    justify-content: center; /* Center logos horizontally */
    overflow: hidden; /* Hide any overflow from logos */
}

/* .ticket-main .logos::after {
    content: "";
    position: absolute;
    left: 50%; 
    width: 0px; 
    height: 100%; 
    transform: translateY(-20%); 
    border: 3px dotted grey;
} */

.ticket-main .logos img {
    max-height: 100%; /* Constrain the height of the logos */
    max-width: 70%; /* Ensure logos scale proportionally */
    object-fit: contain; /* Ensure logos fit within their container */
    transform: translateY(-10%);
    margin-left: -20px; /* Negative margin to overlap logos */
    margin-right: -20px; /* Negative margin to overlap logos */
    margin-bottom: -20px;
}

.ticket-main .game-time {
    grid-row: 2 / 3; /* Place in the second row */
    grid-column: 1 / -1; /* Span across both columns */
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    border-top: 3px dotted grey;
}

.interest-icons-home, .interest-icons-away {
    border: 3px dotted grey;
    background-color: rgba(13, 110, 253, 0.8);
    position: absolute; /* Position relative to the .ticket container */
    display: flex;
}

.interest-icons-away {
    position: absolute; /* Position relative to ticket-main */
    top: 10px; /* Adjust to move it closer to the top */
    left: 10px; /* Adjust to move it closer to the left */
    justify-content: space-between;
}

.interest-icons-home {
    position: absolute; /* Position relative to ticket-main */
    top: 10px; /* Adjust to move it closer to the top */
    right: 10px; /* Adjust to move it closer to the right */
    justify-content: space-between;
}

.interest-icon {
    font-size: 24px; /* Adjust size of the icons */
    margin: 0 10px; /* Add spacing between icons */
}

.card-body {
    border: 10px solid transparent;
    border-image: linear-gradient(44deg, #91f0ff, #d0d0d0, #91f0ff) 1;
    padding: 8px;
    background: #fff;
    margin-top: 2%;
    margin-bottom: 2%;
    margin-right: 5%;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
}

.card-text {
    font-size: 18px;
    margin-bottom: 8px;
}

.card-image {
    margin-bottom: 12px;
}

/* .player-details {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
} */





.team-NJD { --team-primary:#CE1126; --team-secondary:#000000; --team-tertiary:#FFFFFF; }
.team-NYI { --team-primary:#00539B; --team-secondary:#f47d30; --team-tertiary:#FFFFFF; }
.team-NYR { --team-primary:#0038A8; --team-secondary:#CE1126; --team-tertiary:#FFFFFF; }
.team-PHI { --team-primary:#F74902; --team-secondary:#000000; --team-tertiary:#FFFFFF; }
.team-PIT { --team-primary:#FCB514; --team-secondary:#000000; --team-tertiary:#CFC493; }
.team-BOS { --team-primary:#FFB81C; --team-secondary:#000000; --team-tertiary:#FFFFFF; }
.team-BUF { --team-primary:#003087; --team-secondary:#FFB81C; --team-tertiary:#FFFFFF; }
.team-MTL { --team-primary:#AF1E2D; --team-secondary:#192168; --team-tertiary:#FFFFFF; }
.team-OTT { --team-primary:#DA1A32; --team-secondary:#000000; --team-tertiary:#B79257; }
.team-TOR { --team-primary:#00205b; --team-secondary:#FFFFFF; --team-tertiary:#FFFFFF; }
.team-ATL { --team-primary:#041E42; --team-secondary:#5c88da; --team-tertiary:#862633; --team-extra-1:#b86125; --team-extra-2: #ffa300;}
.team-CAR { --team-primary:#CE1126; --team-secondary:#000000; --team-tertiary:#FFFFFF; --team-extra-1:#A4A9AD; }
.team-FLA { --team-primary:#041E42; --team-secondary:#c8102E; --team-tertiary:#B9975B; }
.team-TBL { --team-primary:#002868; --team-secondary:#FFFFFF; --team-tertiary:#FFFFFF; }
.team-WSH { --team-primary:#041E42; --team-secondary:#C8102E; --team-tertiary:#FFFFFF; }
.team-CHI { --team-primary:#CE1126; --team-secondary:#000000; --team-tertiary:#FFFFFF; }
.team-DET { --team-primary:#CE1126; --team-secondary:#FFFFFF; --team-tertiary:#FFFFFF; }
.team-NSH { --team-primary:#FFB81C; --team-secondary:#041E42; --team-tertiary:#FFFFFF; }
.team-STL { --team-primary:#002F87; --team-secondary:#FCB514; --team-tertiary:#041E42; }
.team-CGY { --team-primary:#C8102E; --team-secondary:#F1BE48; --team-tertiary:#000000; }
.team-COL { --team-primary:#6F263D; --team-secondary:#236192; --team-tertiary:#A2AAAD; --team-extra-1:#000000; }
.team-EDM { --team-primary:#041E42; --team-secondary:#FF4C00; --team-tertiary:#FFFFFF; }
.team-VAN { --team-primary:#00205B; --team-secondary:#00843d; --team-tertiary:#041C2C; --team-extra-1:#99999A; --team-extra-2:#FFFFFF; }
.team-ANA { --team-primary:#F47A38; --team-secondary:#000000; --team-tertiary:#FFFFFF; --team-extra-1:#B9975B; --team-extra-2:#C1C6C8; }
.team-DAL { --team-primary:#006847; --team-secondary:#000000; --team-tertiary:#111111; }
.team-LAK { --team-primary:#111111; --team-secondary:#A2AAAD; --team-tertiary:#FFFFFF; }
.team-PHX { --team-primary:#8C2633; --team-secondary:#ffffff; --team-tertiary:#154734; }
.team-SJS { --team-primary:#006D75; --team-secondary:#EA7200; --team-tertiary:#000000; }
.team-CBJ { --team-primary:#002654; --team-secondary:#ce1126; --team-tertiary:#A4A9AD; }
.team-MIN { --team-primary:#154734; --team-secondary:#A6192E; --team-tertiary:#EAAA00; --team-extra-1:#DDCBA4; }
.team-MNS { --team-primary:#009639; --team-secondary:#ffd100; --team-tertiary:#FFFFFF; }
.team-QUE { --team-primary:#005EB8; --team-secondary:#DA291C; --team-tertiary:#FFFFFF; }
.team-WIN { --team-primary:#041E42; --team-secondary:#AC162C; --team-tertiary:#FFFFFF; }
.team-HFD { --team-primary:#046A38; --team-secondary:#00205B; --team-tertiary:#FFFFFF; }
.team-CLR { --team-primary:#0038A8; --team-secondary:#CE1126; --team-tertiary:#FFB81C; }
.team-OAK { --team-primary:#00965e; --team-secondary:#00205b; --team-tertiary:#ffc72c; }
.team-AFM { --team-primary:#c8102e; --team-secondary:#ffffff; --team-tertiary:#ffd100; }
.team-KCS { --team-primary:#004687; --team-secondary:#E4002B; --team-tertiary:#FFFFFF; }
.team-CLE { --team-primary:#c8102e; --team-secondary:#ffffff; --team-tertiary:#000000; }
.team-WPG { --team-primary:#041E42; --team-secondary:#ffffff; --team-tertiary:#004C97; --team-extra-1:#AC162C; }
.team-ARI { --team-primary:#8C2633; --team-secondary:#ffffff; --team-tertiary:#154734; }
.team-VGK { --team-primary:#B4975A; --team-secondary:#333f42; --team-tertiary:#FFFFFF; --team-extra-1:#c8102E; }
.team-SEA { --team-primary:#001628; --team-secondary:#96d8d8; --team-tertiary:#e9072b; --team-extra-1:#639fb6; }
.team-CGS { --team-primary:#ffc72c; --team-secondary:#00965e; --team-tertiary:#FFFFFF; }
.team-UTA { --team-primary:#010101; --team-secondary:#6cace4; --team-tertiary:#FFFFFF; }