@import url("config.css");

.match-updates, .match-players, .away-team-goals{
    display: none;
}

.match-details table{
    margin-top: 10px;
    width: 100%;
    border-collapse: collapse;
}

.match-details tr{
    border-bottom: 1px solid var(--primeGreen);
}

td{
    padding: 5px;
    text-align: center;
}

td:first-child {
    font-weight: bold
}

.fixture{
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: var(--mainGrey);
    margin-top: 10px;
    border: 1px solid var(--primeGreen);
}

.fixture a{
    text-align: center;
    text-decoration: none;
    padding: 5px;
}

.fixture-teams{
    padding-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.home-team, .away-team{
    display: flex;
    align-items: center;
    max-width: 50%;
}

.away-score, .home-score{
    padding: 5px;
    font-weight: bolder;
    border: 1px solid var(--primeBlue);
}

.away-score{
    left: 0;
}

.home-score{
    float: right;
}

.match-players table, .match-goals table{
    border-collapse: collapse;
    width: 100%;
}

.match-players thead, .match-goals thead {
    background-color: var(--primeGreen);
}

.match-players th, .match-players td, .match-goals th, .match-goals td{
    padding: 5px;
    text-align: center;
}

.match-players tr, .match-goals tr{
    border-bottom: 1px solid var(--primeGreen);
}

.player-add-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
    width: 100%;
}

.match-players-list, .match-events-list {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.home-team-events,
.away-team-events,
.home-team-players, 
.away-team-players {
    flex: 1; /* Each takes equal space */
    min-width: 0; /* Prevents overflow issues */
    max-width: 50%; /* Maximum 50% width */
    box-sizing: border-box; /* Include padding in width */
}

.title{
    font-weight: bold !important;
    text-align: center;
}

.second-yellow-card-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(to right, yellow 50%, red 50%) !important;
    display: inline-block;
}

.match-highlights {
    overflow-x: hidden;
    overflow-y: scroll;
    margin-top: 2px;
}

.match-highlights video, 
.match-highlights iframe, 
.match-highlights img {
  /* width: auto; */
  max-width: 100%;
  height: auto;
  /* object-fit: cover; */
  /* margin-bottom: 4px;  */
  /* display: block;  */
  padding: 1px;
}