#div-tournament-header-container {
    margin: auto;
    max-width: 1400px;
    padding-left: 50px;
    padding-right: 50px;
    height: 200px;
}

#div-tournament-header {
    align-items: center;
    display: flex;
    background-color: #007EA7;
    height: 200px;
    justify-content: center;
}

#img-tournament-header {
    display: block;
    object-fit: cover;
    object-position: 100% 43%;
    width: 100%;
    height: 100%;
}

#img-tournament-header-logo {
    position: absolute;
}

#div-overview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#div-overview-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.overview-card {
    height: 100px;
    width: 150px;
}

.overview-card-header {
    align-items: center;
    background-color: #007EA7;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 12px;
}

.overview-card-body {
    align-items: center;
    display: flex;
    height: 75px;
    justify-content: center;
}

.overview-card-body h6 {
    font-size: 1.5rem; 
    font-weight: 900; 
    text-align: center;
    line-height: 1.25rem;
}

#div-final-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#div-participants {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#div-participants-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.participant-card {
    max-width: 200px;
    min-width: 200px;
}

.participant-card-header {
    background-color: #007EA7;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: -20px;
    height: 60px;
}

.participant-card-name {
    align-items: center;
    display: flex;
    height: 40px;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.participant-card-name p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participants-card-player-count {
    color: grey;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
}

.participants-card-players {
    align-items: center;
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 25px;
}

.team-player {
    align-items: center;
    background-color: #E8F0F2;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    height: 40px;
    min-width: 100%;
    max-width: 100%;
    padding-left: 10px;
}

.team-player-username {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 0;
    width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#div-bracket-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#div-bracket, #div-group-stage-round-matches {
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-x: scroll;
    overflow-y: auto;
    max-height: 1000px;
    min-height: 500px;
    padding-bottom: 25px;
    position: relative;

}

#div-group-stage {
    display: flex;
    flex-direction: column;
}

#div-group-stage-group-tables {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 50px;
}

.group-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.div-bracket-matches-container {
    overflow-x: scroll;
}

.div-bracket-rounds {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    gap: 30px;
}

.bracket-round {
    align-items: center;
    background-color: #E8F0F2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
    min-height: 50px;
}

.h6-bracket-round-name {
    font-size: 1.2rem;
}

.p-bracket-round-series-length {
    color: #007EA7;
    font-family: "eurostile", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-top: -5px;
}

.div-bracket-matches {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    gap: 30px;
    min-height: 100%;
}

.round-matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-around;
}

.round-matches.grand-final {
    flex-direction: row;
    margin-top: auto;
    margin-bottom: auto;
    gap: 15px;
}

.round-match {
    border: 1px solid #B0B0B0;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 298px;
    max-width: 298px;
    min-height: 75px;
    max-height: 75px;
}

.round-match-team {
    align-items: center;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 50%;
}

.round-match-team.winner {
    background-color: white;
}
.round-match-team.winner p {
    font-weight: 700;
}

.round-match-team.loser {
    background-color: #E8F0F2;
}

.round-match-team-seed {
    align-items: center;
    display: flex;
    padding-left: 10px;
    padding-right: 5px;
    height: 100%;
    width: 5px;
}

.round-match-team-seed p {
    font-size: 0.75rem;
    font-weight: 700;
}

.round-match-team-name {
    align-items: center;
    display: flex;
    height: 100%;
    min-width: 0;
    padding-left: 12px;
    width: 80%;
}

.round-match-team-name p  {
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.round-match-team-score {
    align-items: center;
    border-left: 1px solid #B0B0B0;
    display: flex;
    justify-content: center;
    height: 100%;
    min-width: 12%;
    text-align: center;
}

.round-match-team-score.winner {
    background-color: #007EA7;
    color: white;
}

.round-match-separator {
    background-color: #B0B0B0;
    min-height: 2px;
    max-height: 2px;
    width: 100%;
}

/* Match details */
#div-match-games-container {
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
}

#div-match-games-container.hidden {
    display: none;
}

#div-match-games {
    background: white;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
    border-radius: 10px;
    min-width: 500px;
    min-height: 300px;
    position: relative;
    justify-content: space-between;
}

#div-match-games-header {
    align-items: center;
    background-color: #F2F6F8;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: -20px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    min-height: 75px;
    min-width: 100%;
}

.match-games-team {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 45%;
}

.match-games-team p {
    font-size: 0.9rem;
    font-weight: 600;
}

#div-match-score {
    align-items: center;
    background-color: #007EA7;
    border-radius: 15px 15px 15px 15px;
    display: flex;
    justify-content: center;
    max-height: 25px;
    min-height: 25px;
    min-width: 10%;
    max-width: 10%;
}

#p-match-score {
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-left: 3px;
}

#div-match-games-body {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.match-game {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 75px;
}

.match-game-map {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.match-game-result {
    align-items: center;
    display: flex;
    gap: 5px;
    justify-content: center;
    min-width: 50px;
}

.match-game-result.left {
    flex-direction: row;
}

.match-game-result.right {
    flex-direction: row-reverse;
}

.span-match-game-result {
    border-radius: 3px;
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    min-width: 15px;
    padding: 3px;
    text-align: center;
}

.span-match-game-result.winner {
    background-color: #D6F5D6; 
    color: #145214;
}

.span-match-game-result.loser {
    background-color: #FDEBEB;
    color: #B81414;
}

.span-overtime {
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 10px 10px 10px 10px;
    background-color: #E8F0F2;
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    height: 10px;
    padding: 5px;
    width: 60px;
}

span.qualified {
    border-radius: 3px;
    background-color: #145214;
    color: white;
    font-size: 0.75rem;
    margin-left: 8px;
    padding: 5px;

}

span.eliminated {
    border-radius: 3px;
    background-color: #B81414;
    color: white;
    font-size: 0.75rem;
    margin-left: 8px;
    padding: 5px;
}

#div-match-games-footer {
    align-items: center;
    background-color: #F5FAFA;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    gap: 8px;
    min-height: 60px;
    justify-content: center;
    margin: -20px;
}

.div-match-game-vod {
    align-items: center;
    background-color: white;
    border: 1px solid #E8F0F2;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    padding: 5px;
    width: 50px;
}

#bracket-connectors {
    height: 100%;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

@media (max-width: 768px) {
    table {
        width: 100%;
    }

    #div-match-games {
        min-width: 80%;
    }

    #div-match-score {
        min-width: 50px;
    }
}