* {
    margin: 0;
/*    padding: 0; why? This hides <li> bullets */
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
}

/* Sticky Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.header-content {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nav-main a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9em;
}

.nav-main a:hover {
    background-color: rgba(223, 23, 0, 0.7);
    transform: translateY(-2px);
}

.nav-main a.cta-primary {
    background-color: transparent;
    border: 2px solid #df1700;
    color: #df1700;
    font-weight: bold;
}

.nav-main a.cta-primary:hover {
    background-color: #df1700;
    color: white;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9em;
    background-color: transparent;
}

.dropdown-toggle:hover {
    background-color: rgba(223, 23, 0, 0.7);
    transform: translateY(-2px);
}

/* Active state for dropdown toggle */
.dropdown.active .dropdown-toggle {
    background-color: #df1700;
    color: white;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: rgba(223, 23, 0, 0.7);
}

/* Hero/Rink Section */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/images/rink_1k.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 25%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.100);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-punchy {
    flex-shrink: 0;
}

.hero-punchy img {
    height: 150px;
    width: auto;
}

.hero-text {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section {
    padding: 80px 20px;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Welcome Section */
.welcome-section {
    background: white;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.welcome-image {
    flex: 1;
    min-width: 300px;
}

.welcome-image img {
    width: 100%;
    height: auto;
    max-height: 258px;
    object-fit: contain;
}

.welcome-text {
    flex: 1;
    min-width: 300px;
}

.welcome-text h2 {
    font-size: 2.5em;
    color: #df1700;
    margin-bottom: 20px;
}

.welcome-text p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Features Grid */
.features-section {
    background: #f8f8f8;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #df1700;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-image {
    width: 300px;
    height: 300px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

.feature-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-btn {
    background: #df1700;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.feature-btn:hover {
    background: #b81400;
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #df1700;
    margin-bottom: 50px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: #f8f8f8;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e8e8e8;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

.faq-answer a {
    color: #df1700;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8f8f8;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #df1700;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4em;
    color: #df1700;
    opacity: 0.3;
}

.testimonial p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: #df1700;
    text-align: right;
}

/* Mailing List Section */
.mailing-section {
    background: #333;
    color: white;
    text-align: center;
}

.mailing-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.mailing-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.mailing-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.mailing-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
}

.mailing-form button {
    background: #df1700;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mailing-form button:hover {
    background: #b81400;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    margin-bottom: 10px;
}

/* Constrain table containing marquee to parent width */
#headlines table {
    width: 100%;
    table-layout: fixed;
}

#headlines td {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    background-color: #f0f0f0; /* Optional: Add a background color */
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee 80s linear infinite;
}

.marquee-content .message {
    margin-right: 40px; /* Space between messages */
}

@keyframes marquee {
    0% {
        transform: translateX(0); /* Start scrolling immediately */
    }
    100% {
        transform: translateX(-100%); /* End scrolling when the content is fully off-screen */
    }
}

/* Simple responsive design */
@media (max-width: 768px) {
    .header {
        padding: 8px 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-main {
        justify-content: center;
        width: 100%;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .hero-punchy img {
        height: 120px;
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .mailing-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 5px 10px;
    }
    
    .header-logo img {
        height: 40px;
    }

    .nav-main {
        gap: 8px;
    }

    .nav-main a {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}

/* Active page styling */
.nav-active {
    background-color: #df1700 !important;
    color: white !important;
    cursor: default !important;
    pointer-events: none !important;
}

.nav-active:hover {
    transform: none !important;
    background-color: #df1700 !important;
}

/* Responsive Stats Table - REMOVED */
/* Responsive table layout has been removed to allow tables to display at their natural width */


/* Login Page Styles */
.login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    margin: -20px;
    padding: 40px 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.login-title {
    text-align: center;
    color: #df1700;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.login-table {
    width: 100%;
    border-collapse: collapse;
}

.login-table td {
    padding: 15px;
    vertical-align: top;
}

.login-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    width: 200px;
    transition: border-color 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: #df1700;
    box-shadow: 0 0 0 3px rgba(223, 23, 0, 0.1);
}

.admin-box {
    border: 2px solid #df1700;
    border-radius: 8px;
    padding: 15px;
    background: #f8f8f8;
}

.admin-box .head {
    background: none !important;
    border: none !important;
    padding: 5px 0;
}

.login-button {
    background: #df1700;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #b81400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 23, 0, 0.3);
}

.help-link {
    color: #df1700;
    text-decoration: none;
    font-style: italic;
}

.help-link:hover {
    text-decoration: underline;
}

.help-text {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .login-table {
        display: block;
    }
    
    .login-table td {
        display: block;
        width: 100% !important;
        padding: 10px 0;
    }
    
    .login-input {
        width: 100%;
        box-sizing: border-box;
    }
}


/* Stats Page Styles */
.stats-container {
    padding: 20px 0;
}

.stats-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.stats-section h2 {
    background: #000000;
    color: white;
    margin: 0;
    padding: 7px 10px;
    font-size: 1.5em;
    cursor: pointer;
}

.stats-content {
    padding: 20px;
    overflow-x: auto;
}

.table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.truncation-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    color: #856404;
    text-align: center;
    font-style: italic;
}

.ellipsis-row {
    background: #f8f9fa;
    text-align: center;
    font-style: italic;
    color: #6c757d;
}

/* Team highlighting */
.highlighted-team {
    background: #fff3cd !important;
    border-left: 4px solid #df1700;
}

/* Responsive table handling - REMOVED */
/* All responsive table column hiding has been removed to allow natural table width */

/* Enhanced table styles for stats page */
table {
    width: auto;
    border-collapse: collapse;
    margin: 10px 0;
}

table.sortable th {
    cursor: pointer;
    user-select: none;
}

table.sortable th:hover {
    background: #e9ecef;
}

/* Sortable table specific styles */
table.sortable a.sortheader {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    display: block;
}

table.sortable span.sortarrow {
    color: black;
    text-decoration: none;
}

table.tictoc,
table.sortable {
    border-collapse: collapse;
}

/* Alternate row colors */
table.tictoc tbody tr:nth-child(odd):not(.head):not(.sortbottom),
table.sortable tbody tr:nth-child(odd):not(.head):not(.sortbottom) {
    background-color: #ffffff;
}

table.tictoc tbody tr:nth-child(even):not(.head):not(.sortbottom),
table.sortable tbody tr:nth-child(even):not(.head):not(.sortbottom) {
    background-color: #eeeeee;
}

/* Table borders and padding */
table.sortable th, table.sortable td {
    border: 2px solid #dddddd;
    /* text-align: left; we are going to let other classes decide this */
}

table.tictoc th, table.tictoc td {
    border: 2px solid #dddddd;
}

/* Header and sortbottom row styling */
table.tictoc tr.head,
table.sortable tr.head,
table.sortable tr.sortbottom,
table.tictoc tr.sortbottom {
    background-color: #ccd9b6;
}

/* Header and footer cell borders */
table.sortable tr.head th,
table.sortable tr.sortbottom td {
    border: 2px solid #ffffff;
    /* text-align: left; we are going to let other classes decide this Oct 31, 2025 */
}

table.tictoc tr.head th,
table.tictoc tr.sortbottom td {
    border: 2px solid #ffffff;
}

/* Additional THP-specific table cell classes */
.head,
.sortbottom,
.headr { 
    font-size: 9pt; 
    /* text-align: left;  we are goint to let other classes decide this */
    font-weight: bold; 
    border: 2px solid #ffffff !important; 
}

.sortbottom,
.head { 
    background-color: #ccd9b6; 
} 

.headr { 
    background-color: #d9ccb6; 
}

.headc { 
    background-color: #ccd9b6;
    text-align: center;
}

/* Ellipsis row styling for truncated tables */
.ellipsis-row td {
    text-align: center;
    font-style: italic;
    background: #f8f9fa;
    color: #6c757d;
} 

.pts,
.psc { 
    font-size: 9pt; 
    text-align: right !important; 
    font-weight: bold; 
    background-color: #cddbb8; 
}

.plead { 
    font-size: 9pt; 
    text-align: right !important; 
    font-weight: bold; 
    background-color: #88ff88; 
}

.inj { 
    color: blue;
}

/* Text and link styling */
.txt {
    font-size: 9pt; 
    text-align: left !important;
}

.txt a {
    color: #007bff;
    text-decoration: underline;
}

.txt a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Numeric and cell alignment classes */
.num { 
    font-size: 9pt; 
    text-align: right !important; 
}

.numr { 
    font-size: 9pt; 
    text-align: right; 
    font-weight: bold;
    color: #ff0000; 
}

.numg { 
    font-size: 9pt; 
    text-align: right; 
    background-color: #ccddcc; 
}

.tic { 
    font-size: 9pt; 
    text-align: right; 
    background-color: #eeeeee; 
}

.cen,
.nsc,
.scr { 
    font-size: 9pt; 
    text-align: center; 
}

.tsc { 
    font-size: 9pt; 
    text-align: left; 
}

.tac { 
    font-size: 9pt; 
    text-align: right; 
}

.tec { 
    font-size: 9pt; 
    text-align: center; 
    background-color: #eeeeee; 
}

.tfc { 
    font-size: 9pt; 
    text-align: center; 
    background-color: #ffffff; 
}

.ttc { 
    font-size: 9pt; 
    text-align: left; 
    background-color: #eeeeee; 
}

.toc { 
    font-size: 9pt; 
    text-align: right; 
    background-color: #dddddd; 
}

.rotate-90 {
  transform: rotate(90deg);
  transform-origin: left center;
  white-space: nowrap;
}

/* Special formatting classes */
.plr { font-size: 9pt; text-align: left; min-width: 190px;}
.plp { font-size: 9pt; text-align: left; color: red; width: 190px;}
.pli { font-size: 9pt; font-style: italic; background-color: #ffff55; text-decoration: underline; text-align: left; width: 190px;}
.bred { 
    font-size: 1.2em; 
    color: red; 
    font-weight: bold; 
}

.big { 
    font-size: 1.2em; 
    font-weight: bold; 
}

.cst { 
    font-size: 16pt; 
    font-weight: bold; 
}

.ttl { 
    font-size: 16pt; 
    font-weight: bold; 
    background-color: #ffffff; 
    color: #000000; 
}

.tmh { 
    font-size: 12pt; 
    background-color: #ffffff; 
}

.dull { 
    font-size: 8pt; 
    color: #777777; 
}
/* Base button style */
.but, .but:visited, a.but:visited {
    font-size: 1em;
    padding: 10px 20px;
    color: white;
    border: none;
    cursor: pointer;
    position: relative;
    margin-bottom: 2px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-block; /* useful if applied to <a> */
    text-decoration: none; /* remove underline on <a> */
}

/* Shared hover effects */
.but:hover, .but:visited:hover, a.but:visited:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Color variants */
.but-blue       { background-color: #007BFF; }
.but-blue:hover { background-color: #0056b3; }

.but-green       { background-color: #00BB7F; }
.but-green:hover { background-color: #00a16e; }

.but-yellow       { background-color: #ffc400c7; color: black; }
.but-yellow:hover { background-color: #eeb30b; }

.bbb { background-color: #dddddd; }

          .team-selection-container {
              max-width: 1200px;
              margin: 40px auto;
              padding: 20px;
              background: white;
              border-radius: 10px;
              box-shadow: 0 5px 15px rgba(0,0,0,0.1);
          }
          .team-selection-title {
              color: #df1700;
              font-size: 2em;
              margin-bottom: 20px;
              text-align: center;
          }
          .team-selection-subtitle {
              text-align: center;
              color: #666;
              margin-bottom: 30px;
              font-size: 1.1em;
          }
          .team-grid {
              display: grid;
              grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
              gap: 15px;
              margin-top: 20px;
          }
          .team-button {
              background: #f5f5f5;
              border: 2px solid #ddd;
              padding: 20px;
              border-radius: 8px;
              cursor: pointer;
              transition: all 0.3s ease;
              text-align: center;
              font-size: 1.1em;
          }
          .team-button:hover {
              background: #df1700;
              color: white;
              border-color: #df1700;
              transform: translateY(-2px);
              box-shadow: 0 4px 8px rgba(0,0,0,0.2);
          }
          .team-number {
              font-weight: bold;
              font-size: 0.9em;
              color: #999;
              margin-bottom: 5px;
          }
          .team-button:hover .team-number {
              color: rgba(255,255,255,0.8);
          }
          .team-name {
              font-weight: bold;
          }
          input[type="submit-hide"] {
              display: none;
          }

.score-tile-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;                /* space between tiles */
  justify-content: flex-start; /* or center, if you prefer */
  margin: 10px 0;
}

.score-tile-container table {
  width: 120px;             /* fixed width, overrides HTML width=120 if desired */
  border: 1px solid #999;
  border-collapse: collapse;
  background: #fff;
  flex: 0 0 auto;           /* prevent shrinking/stretching */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.score-tile-container td {
  padding: 4px;
  text-align: center;
}

