.header {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}
#eloChart {
    margin-top: 20px;
}

.matches-played {
    color: var(--primary-color);
}

/* ============  Statistic headers   ================*/

.statistic-info-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 8px;
    border: 1px dashed #dcdcdc;
    border-radius: 4px;
    gap: 8px;
}

.statistic-info-block .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 51, 102, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.statistic-info-block .icon.primary  {
    background: rgba(0, 51, 102, 0.05);
    svg path {
        fill:  #003366;
    }
}

.statistic-info-block .icon.danger  {
    background: rgba(255, 165, 0, 0.1);
    svg path {
        fill:  #FFA500;
    }
}

.statistic-info-block .icon.success  {
    background: rgba(0, 128, 0, 0.05);
    svg path {
        fill: #008000;
    }
}

.statistic-info-block .icon.error  {
    background: rgba(255, 0, 0, 0.05);
    svg path {
        fill: #FF0000FF;
    }
}

.statistic-info-block .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    .title {
        font-size: 12px;
        color: #878787;
    }
}

.statistic-info-block-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.game-history {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 21px;
    span {
        display: block;
        min-width: 2px;
        min-height: 12px;
        height: 12px;

    }
    .win {
        background: var(--success-color);
    }
    .loose {
        background: var(--danger-color);
    }
}

@media (max-width: 758px) {
    .statistic-info-block-wrapper {
        grid-template-columns: repeat(2, 1fr); /* Creates 3 equal columns */
    }
}


/* ================== Table ============== */
.opacity-70 {
    opacity: 0.60;
}

.team-data {
    display: flex;
    flex-direction: column;
    p {
        margin: 0;
    }
}

.match-date {
    margin-block: auto;
    display: flex;
    align-items: center;
    min-height: 42px;
}

.team-data-wrapper {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    .team-data-name {
        font-weight: 600;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

.team-elo-dynamic-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;


    .elo-dynamic {
        width: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        p {
            min-width: 33px;
            margin: 0;
        }
        span {
            text-align: right;
        }
    }
}

.team-score {
    margin: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    /*gap: 4px;*/
    padding: 0 4px;
    border-radius: 4px;
    width: 32px;
    background: rgba(234, 234, 234, 0.6);
    justify-content: space-between;
    .divider {
        width: 100%;
        border-bottom: 1px solid #b1b1b1;
    }
    p {
        margin: 0;
        color: #838383;
    }
}

@media (max-width: 1200px) {
    .team-data-wrapper {
        max-width: 180px;
    }
}

@media (max-width: 758px) {
    .team-data-wrapper {
        max-width: 180px;
        .team-data-name {

            font-weight: 400;
        }
    }
}

@media (max-width: 576px) {
    .team-data-wrapper {
        max-width: 120px;
    }

    .team-elo-dynamic-wrapper {
        .elo-dynamic {
            width: 60px;
            gap: 4px;
            p {
                min-width: 27px;
            }
        }
    }


}