/*brackets style
------------------------------*/
.brackets_container *{
    box-sizing: border-box;
}
.brackets_container{
    padding: 10px;
}
.brackets_container a{
    text-decoration: none;
    color: #000;
}
.brackets_container table{
    width: 100%;
    table-layout: fixed;
}
.brackets_container th{
    font-size: 13px;
    padding: 10px 0;
    width: 10%;
    font-weight: normal;
    color: #777;
    text-align: center;
}
/*rounds style
------------------------------*/
.round_column{
    padding: 10px 5px;
    box-shadow: 0 -3px 0 rgba(0,0,0,.07);
}
.round_column.focus, .round_column:hover{
    box-shadow: 0 -3px 0 #ccc;
}
.r_16 .mtch_container{
    padding: 20px 0;
}
.r_16 .m_segment{
    height: 45px;
}
.r_8 .mtch_container{
    padding: 50px 0;
}
.r_8 .m_segment{
    height: 80px;
}
.r_4 .mtch_container{
    padding: 80px 0;
}
.r_4 .m_segment{
    height: 145px;
}
/*Match unite style
------------------------------*/

.match_unit{
    position: relative;
}
.match_unit:hover{
    box-shadow: 0 0 0 2px rgba(0,0,0,.15);
}
.match_unit:hover .m_dtls span{
    visibility: visible;
}
.round_column:not(.r_2) .match_unit:after{
    position: absolute;
    content: '';
    width: 15px;
    height: 2px;
    background-color: #eee;
    top: 50%;
    right: -13px;
}
.match_unit.highlight:after{
    background-color: #ccc;
}
.match_unit .highlight.loser:after{
    position: absolute;
    content: '';
    width: 15px;
    height: 2px;
    background-color: #eee;
    right: -15px;
    z-index: 99;
}
.match_unit .m_top.highlight.loser:after{
    bottom: -2px;
}
.match_unit .m_bottom.highlight.loser:after{
    top: 0;
}
.match_unit .m_top, .match_unit .m_botm{
    position: relative;
    width: 100%;
}
.match_unit .m_top.winner:hover, .match_unit .m_botm.winner:hover{
    border-right-color: #ccc;
}

.match_unit .m_segment.loser > span {
    background-color: #fbcccc;
}

.match_unit .m_segment.winner > span {
    background-color: #c6ffbe;
}

.match_unit .m_segment{
    border-right: solid 2px #eee;
}
.match_unit .m_segment:hover > span{
    background-color: #ccc;
    color: #eee;
}
.match_unit .m_segment > span a:hover {
    color: #47425d;
}
.match_unit .m_segment:hover.loser, .match_unit .m_segment.highlight .loser{
    border-right: solid 2px #eee;
}
.match_unit .m_segment.winner.highlight{
    border-right-color: #ccc;
}
.match_unit .m_segment.loser.highlight{
    border-right-color: #eee;
}
.match_unit .m_segment > span{
    position: absolute;
    left: 0;
    right: 0;
    display: block;
    background: #eee;
    font-size: 13px;
    z-index: 1;
    height: 30px;
    line-height: 29px;
    padding: 0 2px;
    cursor: default;
}
.match_unit .m_segment.highlight > span{
    background-color: #ccc;
    color: #000;
    box-shadow: 2px 0 0 #ccc;
}
.m_segment > span a{
    float: left;
    display: inline;
    padding: 0 3px;
    border-radius:2px;
    height: 26px;
    line-height: 25px;
    margin-top: 2px;
}
.match_unit .m_segment.highlight > span a{
    color: #000;
}
.match_unit .m_segment > span strong{
    float: right;
    color: #000;
    font-size: 13px;
    padding: 0 4px;
}
.match_unit .m_segment.highlight > span strong{
    color: #000;
}

.match_unit .m_segment > span strong.match-team-score a:hover {
    text-decoration: underline;
    color: #47425d;
}

.match_unit .m_segment > span img, .match_unit .m_segment > span span{
    vertical-align: middle;
}
.match_unit .m_top span{
    top:0;
}
.match_unit .m_botm span{
    bottom:0;
}
.m_dtls{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    padding: 0 5px;
}
.m_dtls span{
    font-size: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    display: block;
    visibility: hidden;
    width: 93%;
    text-align: center;
}

/*BYES style*/
.match_unit .BYES.m_segment > span, .match_unit .BYES.m_segment:hover > span{
    background-color: #d5d5d5;
}
.match_unit .BYES.m_segment span a, .match_unit .BYES.m_segment span strong {
    color: #888;
    pointer-events: none;
}
.match_unit .BYES.m_segment{
    border-right: solid 2px #d5d5d5;
}
.reversed .match_unit .BYES.m_segment{
    border-left: solid 2px #d5d5d5;
}

/*final-round style
------------------------------*/
.final{
    position: relative;
}
.final .match_unit{
    display: flex;
    background-color: #eee;
}
.final .match_unit .m_segment{
    width: 50%;
    height: 75px;
    display: inline-flex;
    border: none;
    text-align: center;
}
.final .match_unit .m_segment.first, .final .match_unit .m_segment.third {
    border-right: solid 3px white;
}

.final .m_segment span{
    height: 100%;
    display: block;
    line-height: normal;
    padding-bottom: 3px;
}
.final .match_unit .m_segment > span strong{
    display: block;
    padding: 5px;
    float: none;
}
.final .m_segment span a{
    float: none;
    display: block;
    height: auto;
}
.final .m_dtls{
    bottom: -20px;
    top: auto;
    overflow: visible;
}
.final .match_unit .highlight.loser:after{
    display: none;
}
.final .match_unit .m_segment.loser.highlight{
    border: none;
}
.final .match_unit .m_segment.highlight > span{
    box-shadow: none;
}
/*winner team style
------------------------------*/
.winner_team {
    position: absolute;
    top: 25px;
    text-align: center;
    right: 0;
    left: 0;
}
.winner_team.single_final {
    position: initial;
    padding-bottom: 20px;
}

.winner_team > span{
    font-size: 11px;
    color: #777777;
    display: block;
}
.focus .winner_team > span{
    color: #777777;
}
.winner_team > span a{
    display: block;
    margin: auto;
    width: 200px;
    height: 100px;
    border-radius: 50px;
    background-color: #c6ffbe;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
    border: solid 1px #000;
    font-weight: bold;
    word-break: break-word;
    line-height: 100px;
}
.focus .winner_team > span a{
    box-shadow: 0 0 0 2px #ccc;
}
.winner_team > span a img{
    display: block;
    margin: auto;
}
.m_segment:hover:before, .m_segment.highlight:before{
    background-color: #444;
}
.m_segment:hover:after, .m_segment.highlight:after{
    border-top-color: #444;
}

.third_fourth_position {
    position: absolute;
    bottom: 20px;
    width: 98%;
    padding: 0;
}

.third_fourth_cleared_position {
    position: inherit;
    width: 100%;
    padding: 50px 0;
}
.third_fourth_position .match_unit:after{
    display: none;
}
/*reversed tree style
------------------------------*/
.reversed .match_unit:after{
    right: auto;
    left: -13px;
}
.reversed .match_unit .m_segment{
    border-left: solid 2px #eee;
    border-right: none;
}
.reversed .match_unit .m_segment:hover.loser,.reversed .match_unit .m_segment.highlight .loser {
    border-left: solid 2px #eee;
    border-right: none;
}
.reversed .match_unit .m_segment:hover.winner,.reversed .match_unit .m_segment.highlight .winner {
    border-left: solid 2px #ccc;
}
.reversed .match_unit .highlight.loser:after{
    right: auto;
    left: -15px;
}
.reversed .match_unit .m_segment.winner.highlight {
    border-left-color: #ccc;
}
.reversed .match_unit .m_segment.loser.highlight {
    border-left-color: #eee;
}
.reversed  .match_unit .m_segment > span strong{
    float: left;
}
.reversed .m_segment > span a, .reversed .m_segment > span img{
    float: right;
}
.reversed .m_segment > span img{
    margin-right: 0;
    margin-left: 3px;
}
.reversed .match_unit .m_segment.highlight > span{
    box-shadow: -2px 0 0 #ccc;
}

/*smaller screens style
------------------------------*/
@media (max-width: 2000px) {
    .brackets_container {
        min-width: 1024px;
    }
}

/*ie specific style
------------------------------*/
.ie9 .final .match_unit .m_segment,.ie8 .final .match_unit .m_segment{
    width: 48%;
    display: inline-block;
}

.tree-1st-title, .tree-3rd-title, .tree-winner-title {
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #47425d;
}