/* Player number container */
.player_number{
    width: 56px;
    height: 54px;
    background-color: var(--grey2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 14px;
    padding-right: 14px;
    position: relative;
}

/* Zalgiris player */
.player_number.zalgiris_player{
    background-color: var(--green2);
}

/* Player number */
.player_number .h4{
    color: var(--white1);
}

/* Triangle at match time */
.player_number .h4::after, .player_number .h4::after{
    content: " ";
    position: absolute;
    top: 50%;
    margin-top: -8px;
    border-width: 8px;
    border-style: solid;
}

/* Match time (first team player) (zalgiris team) */
.first_team_player .player_number.zalgiris_player .h4::after{
    border-color: transparent var(--green2) transparent transparent;
    right: 100%;
}

/* Match time (first team player) (other teams) */
.first_team_player .player_number .h4::after{
    border-color: transparent  var(--grey2) transparent transparent;
    right: 100%;
}

/* Match time (second team player) (zalgiris team) */
.second_team_player .player_number.zalgiris_player .h4::after{
    border-color: transparent transparent transparent var(--green2);
    left: 100%;
}

/* Match time (second team player) (other teams) */
.second_team_player .player_number .h4::after{
    border-color: transparent transparent transparent var(--grey2);
    left: 100%;
}

/* Data row in team composition */
.team_composition_row{
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Player text */
.player_info_div p{
    color: var(--white1);
}

/* Player row div */
.player_info_div, .player_info_icons{
    display: flex;
    align-items: center;
    gap: 10px;
}

.player_info_icons{
    flex-wrap: wrap;
}

/* Captain/goalkeeper icons */
.captain_icon, .goal_keeper_icon{
    width: 22px;
    height: 22px;
    background-color: var(--green2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Text for Captain/goalkeeper icons */
.captain_icon p, .goal_keeper_icon p{
    color: var(--white1);
}

/* Time (in event icons) */
.player_info_icons .h6{
    color: var(--white1);
}

/* Yellow/red/substitute/goal icon divs */
.player_info_icons .yellow_card_div, .player_info_icons .substitute_div, .player_info_icons .goal_div, .player_info_icons .red_card_div{
    display: flex;
    gap: 6px;
    align-items: center;
    position: relative;
}

/* All event icons tooltip (on hover) */
.player_info_icons .yellow_card_div:hover .event_tooltip, .player_info_icons .substitute_div:hover .event_tooltip, .player_info_icons .goal_div:hover .event_tooltip, .player_info_icons .red_card_div:hover .event_tooltip, .captain_icon:hover .event_tooltip, .goal_keeper_icon:hover .event_tooltip{
    visibility: visible;    
}

/* Goal/cards/substitute divs */
.goal_image_div, .card_image_div, .substitute_image_div{
    display: flex;
    align-items: center;
    position: relative;
}

/* Goal tooltip */
.goal_image_div .event_tooltip{
    right: -27px;
}

/* Own goal tooltip */
.own_goal_div .event_tooltip{
    right: -52px;
    width: 121px;
}

/* Card tooltip */
.card_image_div .event_tooltip{
    right: -59px;
}

/* Goalkeeper/captain tooltip */
.goal_keeper_icon .event_tooltip, .captain_icon .event_tooltip{
    bottom: 34px;
}

/* Substitute tooltip */
.substitute_image_div .event_tooltip{
    right: -33px;
}

/* Extra time text */
.time_div .h8{
    color: var(--white1);
}

/* Extra time div */
.time_div{
    display: flex;
    align-items: end;
    gap: 2px;
}

@media screen and (max-width:1000px) {
    .team_composition_row{
        gap: 20px;
    }
}

@media screen and (max-width:769px) {

    /* Match time (first team player) (zalgiris team) */
    .first_team_player .player_number.zalgiris_player .h4::after{
        border-color: transparent transparent transparent var(--green2);
        right: 0%;
        left: 100%;
    }

    /* Match time (first team player) (other teams) */
    .first_team_player .player_number .h4::after{
        border-color: transparent transparent transparent var(--grey2);
        right: 0%;
        left: 100%;
    }

    /* Match time (second team player) (zalgiris team) */
    .second_team_player .player_number.zalgiris_player .h4::after{
        border-color: transparent var(--green2) transparent transparent;
        left: unset;
        right: 100%;
    }

    /* Match time (second team player) (other teams) */
    .second_team_player .player_number .h4::after{
        border-color: transparent var(--grey2) transparent transparent;
        left: unset;
        right: 100%;
    }

    .first_team_player .player_info_icons, .second_team_player .player_info_div > .body2{
        order: 2;
    }
    .first_team_player .player_info_div > .body2, .second_team_player .player_info_icons{
        order: 1;
    }

    .player_number{
        max-width: 40px;
        height: 38px;
    }

    .player_number > .h4{
        font-size: 18px;
        line-height: 22px;
        font-weight: 600;
    }

    /* Triangle at match time */
    .player_number .h4::after, .player_number .h4::after{
        margin-top: -5px;
        border-width: 5px;
    }

    .player_info_div .body2{
        font-size: 12px;
        line-height: 17px;
        font-weight: 400;
    }

    .team_composition_row .goal_keeper_icon .event_tooltip{
        right: -35px;
    }

    .team_composition_row .captain_icon .event_tooltip{
        right: -32px;
    }

    .team_composition_row .card_image_div .event_tooltip{
        right: -52px;
    }

    .team_composition_row .goal_image_div .event_tooltip{
        right: -24px;
    }

    .time_div > .h6{
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
    }
}