.league-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding-bottom: 0; /* Reset padding if any */
}

.status {
   width: 38px;
}

.start-time {
   width: 38px;
}

.score {
    display: grid;
    grid-template-columns: 1fr 1fr 30fr 1fr 1fr 1fr 1fr 1fr 1fr; /* 8 columns: Status | Teams | Main Score | Period Scores */
    grid-gap: 10px;
    align-items: center;
    text-align: center;
    font-size: 13px;
    color: black;
    padding: 5px;
    margin-bottom: 3px;
    background-color: white;
    border-radius: 8px;
}

.score:last-child {
    padding-bottom: 5px; /* Ensures extra spacing for the last row */
}

/* Default background colors for odd and even rows */
.score:nth-child(odd) {
    background-color: #ffffff; /* Light gray */
}

.score:nth-child(even) {
    background-color: #f9f9f9; /* White */
}

/* Hover effect for odd rows */
.score:nth-child(odd):hover {
    background-color: #d3eaff; /* light green color #e3fbcc */
    /* cursor: pointer; */ /* Change the cursor to indicate interaction */
}

/* Hover effect for even rows */
.score:nth-child(even):hover {
    background-color: #d3eaff;
    /* cursor: pointer; */
}

/* Optionally, you can add a smooth transition for the hover effect */
.score {
    transition: background-color 0.3s ease; /* Smooth transition */
}

/* Apply color background for rows with goal-scored class */
.score.goal-scored {
    background-color: #c6f790; !important;  /* Override default background */
    transition: background-color 0.3s ease; /* Smooth transition */
}

/* Optional: If you want to apply the hover effect only for live games, you can add a more specific rule */
.score.live-status:hover {
    background-color: rgba(255, 0, 0, 0.1); /* Light red background for live matches */
}

/* On mobile portrait mode (screen width <= 768px and in portrait orientation) */
@media (max-width: 768px) and (orientation: portrait) {
    .modal-content {
        margin: 5% auto;
        width: 95%; /* Makes modal responsive on small screens */
        max-width: 100%;
    }
    /* Add this CSS to enable horizontal scrolling on smaller screens */
    .table-wrapper {
        overflow-x: auto; /* Enable horizontal scroll */
        -webkit-overflow-scrolling: touch;  /* Ensures smooth scrolling on iOS devices */
        max-width: 100%; /* Ensures the wrapper does not overflow beyond the viewport */
    }
    table {
        min-width: 700px; /* Make sure table is wide enough to cause overflow */
    }
    table td {
    font-size: 12px;
    }
}

table th, table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}