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

.status {
   width: 44px;
}

.start-time {
   width: 44px;
}

.score {
    display: grid;
    grid-template-columns: 1fr 1fr 30fr 1fr 1fr 1fr 1fr; /* 6 columns: Status | Teams | Main Score | Halftime | ET | Pen. */
    grid-gap: 10px;
    align-items: center;
    text-align: center;
    font-size: 13px;
    color: black;
    padding: 5px;
    margin-bottom: 3px; /* margin for match info */
    background-color: white;
    border-radius: 8px;
 /* border-bottom: 1px solid #ddd; /* Optional: Adds a separator */
}

.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 blue color #f3f2f8 #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 */
    }
    
    #standings-content table {
        min-width: 700px; /* Make sure table is wide enough to cause overflow */
    }
    
    table td {
    font-size: 12px;
    }
}

#wg-api-football-game table th, table td {
    text-align: left; !important;
    font-size: 13px;
}

#standings-content table th, table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#wg-api-football-game .wg_header {
    padding: 5px;
    font-size: 12px;
    font-weight: 600;
    background-color: #f0f0f0;
    color: #333;
    border-bottom: 1px solid #ddd; /* border bottom on the header */
    text-transform: uppercase;
}

#wg-api-football-game .wg_logo {
    width: 20px;
    vertical-align: middle;
}

#wg-api-football-game .wg_logo_game {
    /*height: 90%;*/
    vertical-align: middle;
    max-width: 90%;
    max-height: 90%;
}


#wg-api-football-game .wb_img_block {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    width: 85px;
    height: 85px;
    border-radius: 5px;
}

#wg-api-football-game .wg_flag {
    width: 28px;
    height: 21px;
    vertical-align: middle;
    margin-right: 5px;
}