.stats_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: -150px;
    z-index: 10;
}

.stats_wrapper .stat {
    background-color: var(--white);
    width: calc((100% - 30px) / 3);
    padding: 15px;
    box-sizing: border-box;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat .square_icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    background-color: var(--red);
    color: var(--white);
    box-sizing: border-box;
    margin-right: 20px;
}

.stat h4 {
    margin: 15px 0 0 0;
    font-size: 36px;
}

.stat h5 {
    margin: 0;
    font-size: 20px;
}

.stat p {
    color: var(--black);
    width: 100%;
}

.result_stat p {
    text-align: left;
}

.result_stat .result,
.result_stat .goals {
    display: flex;
    justify-content: center;
    align-items: center;
}

.result_stat .result {
    background-color: var(--light-grey);
    flex-grow: 1;
    margin-top: 15px;
    justify-content: space-between;
    padding: 15px;
    box-sizing: border-box;
}

.result_stat .result .goals {
    height: 46px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background-color: var(--red);
    color: var(--white);
    margin: 0 10px;
}

.result_stat .result .goals .horizontal_divider {
    height: 2px;
    width: 5px;
    background-color: var(--white);
    margin: 0 10px;
}

.stat .header_flex,
.stat .table_flex {
    padding: 10px 15px;
}

.league_stat .table_flex {
    padding-right: 0;
}

.league_stat .club {
    text-align: left;
    margin-left: 7px;
}

.league_stat .number {
    height: 26px;
    width: 30px;
}

.league_stat .red_bg .club {
    color: var(--white);
}

.match_stat .match {
    background-color: var(--red);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 15px;
    margin-top: 15px;
}

.match_stat .match p {
    width: max-content;
    font-weight: 700;
}

.match_stat .match_date {
    background-color: var(--light-grey);
    color: var(--black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 15px;
}

@media (max-width: 1700px) {
    .result_stat .result {
        flex-direction: column;
    }
}

@media (max-width: 1550px) {
    .match_stat .match {
        flex-direction: column;
        padding: 15px 15px;
    }
}

@media (max-width: 1250px) {
    .stats_wrapper {
        flex-wrap: wrap;
    }

    .stats_wrapper .stat {
        width: calc((100% - 15px) / 2);
    }

    .stats_wrapper .stat:last-of-type {
        display: none;
    }
}

@media (max-width: 750px) {
    .stats_wrapper .stat {
        width: 100%;
        margin-bottom: 15px;
    }

    .stats_wrapper .stat:last-of-type {
        display: flex;
    }

    .result h5 {
        margin: 5px auto;
    }
}

@media (max-width: 500px) {
    .stat h4 {
        font-size: 30px;
    }
}