.tabs-wrapper {
    padding: 0 1px; /* Left and right spacing */
    width: 100%;
    max-width: 100vw; /* Don't exceed viewport width */
    overflow: hidden; /* Contains the scrolling element */
}

#tabs-container {
    display: flex;
    justify-content: left;
    overflow-x: auto; /* Enables horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Show thin scrollbar in Firefox */
    padding-bottom: 10px; /* Prevents scrollbar from overlapping content */
    margin: 10px 0px 0px 0px;
    width: auto; /* Ensure container takes full width */
}

/* Show scrollbar for Webkit browsers (Chrome, Safari) */
#tabs-container::-webkit-scrollbar {
  height: 4px; /* Thin scrollbar */
}

.tab {
    flex: 0 0 auto; /* Prevent tabs from shrinking/growing */
    white-space: nowrap; /* Prevent text wrapping */
    background-color: #fff;
    color: #000;
    padding: 8px 10px;
    margin: 0 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.tab:hover {
    background-color: #003E71;
    color: #fff;
}

.tab.active {
    background-color: #00a570;
    color: #fff;
}
        
/* Style to center the no games message */
.no-games-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Fill the parent container height */
    text-align: center;
    font-size: 18px;
    color: #333; /* Optional: Adjust color */
    font-weight: bold;
}

.leagues-container {
    margin: 0px 5px 0px 5px;
    min-height: 600px;
}

/* League Header Styles */
.league-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #f0f0f0;
    padding: 5px;
    border-style: solid;
    border-color: white;
    border-width: 0px 0px 3px 0px; /* border with match info */
    border-radius: 10px 10px 0px 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flag-container {
    margin-right: 10px;
}

.country-flag {
    width: 28px;
    height: 21px;
    object-fit: cover;
    border-radius: 5px;
}

.league-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.country-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-right: 5px;
}

.league-name {
    font-size: 14px;
    color: #777;
}

.group-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.scores-container {
    text-align: center;
    background-color: #fff;
    padding: 0px 3px 0px 3px; /* padding right and left for match info */
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 5px;
}

#live-scores {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
}

.status {
    font-size: 12px;
    color: #1264f4; /* #2245f4 Styling for status */
    font-weight: bold;
    text-align: center;
}

.team-name {
    font-weight: normal;
    font-size: 13px;
    color: black;
    text-align: left;
    cursor: pointer;
}

.main-score {
    font-weight: bold;
    font-size: 13px;
    color: black; /* Styling for finished scores, #d14545 */
    text-align: center;
}

.period-score {
    font-weight: normal;
    font-size: 13px;
    color: black;
    text-align: center;
}

#error-message {
    margin-top: 20px;
    font-size: 16px;
}

.not-live-status {
    color: #1264f4;
}

.live-period {
    color: red; /* #2245f4 Styling for live scores, #348af0 */
}

.live-status {
    color: red;  /* #1255f5 */
}

.cancel-status {
    color: peru;
}

.match-time {
   color: red;
   font-size: 12px;
   text-align: center;
   margin-right: 0px; /* Optional: Space between regular and extra time */
}

.start-time {
    display: block;
    margin-bottom: 2px;
    color: #777;
    font-size: 12px;
    font-weight: normal;
}

/* Extra time styling */
.extra-time {
    display: inline; /* Keep extra time inline with regular time */
    color: red; /* Optional: Extra time color, #1264f4 #1255f5 */
}

.live-status .blinking-apostrophe {
    color: red;
    animation: blink 1s step-end infinite;
}

/* Blinking effect */
@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.blinking-apostrophe {
    animation: blink 1s step-start infinite;
}

/* Optionally, hide the apostrophe when not live */
.blinking-apostrophe.hidden {
    display: none;
}

/* Mobile-first modal styles */
.modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
        opacity: 0; /* Start invisible for smooth fade-in */
        transition: opacity 0.3s ease-in-out; /* Smooth fade transition */
}

/* Modal visible state */
/* .modal.show {
    opacity: 1;
    visibility: visible; /* Make modal visible */
/*  transition: opacity 0.3s ease, visibility 0s 0s; */ /* Ensure visibility changes immediately after fade-in */
/*  } */

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0px 10px 40px 10px;
    width: 90%; /* Use percentage for responsiveness */
    max-width: 800px; /* Limit maximum width for larger screens */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-btn-1 {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    float: right;
}

.close-btn-2 {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    float: right;
}

.close-btn-1:hover,
.close-btn-1:focus {
    color: black;
    cursor: pointer;
}

.close-btn-2:hover,
.close-btn-2:focus {
    color: black;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table td {
color: black;
}

table th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #777;
}

/* table tr:hover {
    background-color: #d3eaff;
}

/* Standings content should be at the top */
#standings-content {
    padding-top: 0;  /* Remove any top padding */
}
    
.standings-link {
    text-decoration: none;
    color: #333; /* Blue color for the link */
    font-weight: normal;
}

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

/* Square styles */
.win-square,
.loss-square,
.draw-square,
.loss-overtime-square,
.win-overtime-square {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 4px;
    margin: 1px;
    text-align: center;   /* Center text horizontally */
    line-height: 18px;    /* Center text vertically by setting the line-height to match the height */
    color: white;         /* Optional: makes the letter color white to contrast against the squares */
}

/* Square styles */
.win-square {
    background-color: green;
}

.loss-square {
    background-color: red;
}

.draw-square {
    background-color: peru;
}

.win-overtime-square {
    background-color: darkgreen;
}

.loss-overtime-square {
    background-color: darkred;
}

.flag-container {
    display: flex; 
    align-items: center;
}

/* Event Modal styling */
.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
}

.event-table th, .event-table td {
    padding: 8px;
    text-align: center;
     /* border: 1px solid #ddd; /* Light border for separation */
}

.event-table th {
    background-color: #f2f2f2;
}

.event-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.event-title {
color: #333;
font-size: 18px;
font-weight: bold;
}

 td {
 color: black;
 }

td .assists-comment {
color: #777;
}

/* Container for the 3-column layout */
/* Table layout */
#gameDetails {
    width: 100%;
    border-collapse: collapse; /* Ensure no extra space between table cells */
    margin: 20px auto; /* Add some margin to the table */ /* and Center the table on the page */
    text-align: center; /* Center text in cells */
}

#gameDetails th, #gameDetails td {
    padding: 10px; /* Add some padding inside table cells */
    /* border: 1px solid #ddd; /* Light border for separation */
}

/* Style for the images inside the table */
#gameDetails img {
    margin-bottom: 10px;
}

/* Optional: Style the header row */
#gameDetails th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.favorite-star {
    font-size: 18px; /* Set a fixed size for the star icons */
    cursor: pointer; /* Make it clear the star is clickable */
    margin-right: 0px; /* Add some spacing between the star and the match details */
}

.favorite-star .fas {
    color: gold; /* Solid star color for favorited matches */
}

.favorite-star .far {
    color: lightgray; /* Outline star color for not-favorited matches */
}

.favorite-star .fas, .far:hover {
    color: orange;
}