﻿
.brackets_container{
  padding: 10px;
  font-family: tahoma;
  min-width: 500px;
  position:relative;
}
.brackets_container * , .brackets_container *:after , .brackets_container *:before{
    box-sizing:border-box;
}
.brackets_container a{
  text-decoration: none;
  color: #000;
}
.brackets_container a:hover{
  background-color: #eee;
}
.brackets_container a:hover span{
  background-color: #eee;
}
.brackets_container table{
  width: 100%;
  min-height: 580px;
}
.brackets_container th{
  font-size: 13px;
  padding: 10px 0;
  width: 10%;
  font-weight: normal;
  color: #777;
}
.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 #f0a305;*/
}
.round_column.focus, .round_column:hover{
  /*background-color: rgba(0,0,0,.05);*/
}
.r_32 .mtch_container{
  padding: 20px 0;
}
.r_32 .m_segment{
  height: 45px;
}
.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_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;
}
.match_unit:after{
  position: absolute;
  content: '';
  width: 15px;
  height: 2px;
  background-color: #eee;
  top: 50%;
  left: -13px;
}
.match_unit.highlightTeam:after{
  background-color: #f0a305;
}
.match_unit .highlightTeam.loser:after{
  position: absolute;
  content: '';
  width: 15px;
  height: 2px;
  background-color: #eee;
  left: -15px;
  z-index: 99;
}
.match_unit .m_top.highlightTeam.loser:after{
  bottom: -2px;
}
.match_unit .m_bottom.highlightTeam.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-left-color: #f0a305;
}
.match_unit .m_segment{
  border-left: solid 2px #eee;
}
.match_unit .m_segment:hover > span{
  background-color: #f0a305;
  color: #eee;
 }
.match_unit .m_segment:hover.loser, .match_unit .m_segment.highlightTeam .loser{
  border-left: solid 2px #eee;
}
.match_unit .m_segment.winner.highlightTeam{
  border-left-color: #f0a305;
}
.match_unit .m_segment.loser.highlightTeam{
  border-left-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.highlightTeam > span{
  background-color: #f0a305;
  color: #eee;
}
.m_segment > span a{
  float: right;
  display: inline;
  padding: 0 3px;
  border-radius:2px;
  height: 26px;
  line-height: 25px;
  margin-top: 2px;
}
.match_unit .m_segment.highlightTeam > span a{
  color: #eee;
}
.match_unit .m_segment.highlightTeam > span a:hover{
  color: #f0a305;
}
.match_unit .m_segment > span strong{
  float: left;
  color: #000;
  font-size: 13px;
  padding: 0 5px;
}
.match_unit .m_segment.highlightTeam > span strong{
  color: #eee;
}
.match_unit .m_segment > span img, .match_unit .m_segment > span span{
  vertical-align: middle;
  margin-left: 2px;
}
.match_unit .m_segment > span img{
    width:24px;
    height:auto;
}
.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;
}
/*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 .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 .highlightTeam.loser:after{
  display: none;
}
.final .match_unit .m_segment.loser.highlightTeam{
  border: none;
}
/*winner team*/
.winner_team{
  position: absolute;
  top: 25px;
  text-align: center;
  right: 0;
  left: 0;
}
.winner_team > span{
  font-size: 13px;
color: #f0a305;
display: block;
}
.focus .winner_team > span{
  color: #f0a305;
}
.winner_team > span a{
  display: block;
  padding: 10px;
  margin: 10px auto;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  background-color: #eee;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.focus .winner_team > span a{
  box-shadow: 0 0 0 2px #f0a305;
}
.winner_team > span a img{
  display: block;
  margin: auto;
  width: 100%;
    height: auto;
}

.m_segment.first:after, .m_segment.second:after, .m_segment.third:after, .m_segment.fourth:after{
  content: '';
  position: absolute;
  top: -10px;
  border: solid 7px transparent;
  border-top-color: #bbb;
  left: 0;
  right: 0;
  margin: auto;
  width: 0;
  height: 0;
  display:none;
}
.m_segment.first:before, .m_segment.second:before, .m_segment.third:before, .m_segment.fourth:before{
  position: absolute;
  top: -23px;
  padding: 5px;
  font-size: 10px;
  color: #000;
  background-color: #E3E3E3;
  left: 0;
  right: 0;
  display: inline;
  width:100%;
  
}
.m_segment:hover:before, .m_segment.highlightTeam:before{
  background-color: #d6d6d6;
}
.m_segment:hover:after, .m_segment.highlightTeam:after{
  border-top-color: #444;
}
.m_segment.first:before{
  content: 'الأول';
}
.m_segment.second:before{
  content: 'الثاني';
}
.m_segment.third:before{
  content: 'الثالث';
}
.m_segment.fourth:before{
  content: 'الرابع';
}
.third_position{
  position: absolute;
  bottom: 20px;
  width: 94%;
  padding: 0;
}
.third_position .match_unit:after{
  display: none;
}
/*reversed tree*/
.reversed .match_unit:after{
  left: auto;
  right: -13px;
}
.reversed .match_unit .m_segment{
  border-right: solid 2px #eee;
  border-left: none;
}
.reversed .match_unit .m_segment:hover.loser,.reversed .match_unit .m_segment.highlightTeam .loser {
  border-right: solid 2px #eee;
  border-left: none;
}
.reversed .match_unit .m_segment:hover.winner,.reversed .match_unit .m_segment.highlightTeam .winner {
  border-right: solid 2px #f0a305;
}
.reversed .match_unit .highlightTeam.loser:after{
  left: auto;
  right: -15px;
}
.reversed .match_unit .m_segment.winner.highlightTeam {
  border-right-color: #f0a305;
}
.reversed .match_unit .m_segment.loser.highlightTeam {
  border-right-color: #eee;
}
.reversed  .match_unit .m_segment > span strong{
  float: right;
}
.reversed .m_segment > span a, .reversed .m_segment > span img{
  float: left;
}
.reversed .m_segment > span img{
  margin-left: 0;
  margin-right: 3px;
}

/*Mobile style*/
@media (max-width: 768px) {
  .match_unit .m_segment > span span{
    display: none;
  }
  .brackets_container th{
    font-size: 12px;
  }

}
@media (max-width: 900px) {
  .match_unit .m_segment > span{
    font-size: 11px;
  }
  .match_unit .m_dtls span{
    display: none;
  }
}