/* GLOBAL VARIABLE  */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');
* {
  box-sizing: border-box;
}

:root {
  --bg-border: #e0e0e0;
  --bg-item: #f5f5f5;
  --font-family-sans-serif: 'Vazirmatn', sans-serif;
}

/* START OF GLOBAL STYLE  */

body {
  /* background-color: var(--body-bg-color); */
  font-family: var(--font-family-sans-serif);
  margin: 0;
  padding: 0;
}

form,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.main_wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.error_accrued {
  text-align: center;
}

.cup_diagram {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-row-gap: 24px;
}
@media screen and (min-width: 1000px) {
  .cup_diagram {
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 24px;
  }
}

.detail_item {
  background-color: var(--bg-item);
  padding: 8px 8px 0 8px;
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
}
.detail_item_semi_final {
  background-color: var(--bg-item);
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
}

@media screen and (min-width: 1000px) {
  .detail_item:nth-child(2n+1)::after {
    border-left-style: solid;
    border-top-style: solid;
    height: 100%;
    top: 50%;
  }
}

@media screen and (min-width: 1000px) {
  .col2 .detail_item:nth-child(2n+1)::after  {
    height: 234%;
  }
  .col2 .list_col2_three .detail_item:nth-child(2n+1)::after  {
    height: 222%;
  }
  .list_col2_second .detail_item:nth-child(2n+1)::after,
  .list_col2_four .detail_item:nth-child(2n+1)::after {
    border-top-style: solid;
    height: unset;
    top: 50%;
  }

}

@media screen and (min-width: 1000px) {
  .col3 .detail_item:nth-child(2n+1)::after {
    height: 424%;
  }
}

.col3 ul li {
  min-height: 99px;
}

@media screen and (min-width: 1000px) {
  .detail_item:nth-child(2n)::after {
    border-bottom-style: solid;
    border-left-style: solid;
    height: 100%;
    top: -50%;
  }
}

@media screen and (min-width: 1000px) {

  .detail_item::after {
    border-color: var(--bg-border);
    border-width: 2px;
    content: "";
    display: block;
    left: -12px;
    position: absolute;
    width: 10px;
  }
}


@media screen and (min-width: 1000px) {

  .col2 .detail_item::before,
  .col2 .list_col2_four::before,
  .col3 .detail_item::before,
  .col4 .final_section li::before   {
    border-top: 2px solid var(--bg-border);
    content: "";
    height: 2px;
    position: absolute;
    right: -12px;
    top: 50%;
    width: 12px;
  }
}

.date {
  padding-bottom: 16px;
  color: #757575;
  font-size: .8em;
  display: flex;
  justify-content: space-between;
}
.header_section {
  text-align: center;
  margin-bottom: 24px;
}
.header_section h2 {
  display: inline-block;
  background: #750132;
  padding: 2px 40px 4px;
  color: #fff;
  border-radius: 6px;
  font-size: .9em;
}

@media screen and (max-width: 999px) {
  .col1 .header_section {
    margin-top: 24px;
  }
}

@media screen and (min-width: 1000px) {
  .header_section {
    margin-top: 24px;
  }
}

.home_team_score,
.away_team_score {
  font-size: .8em;
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

@media screen and (min-width: 1000px) {
  .col2 .list_col2_first {
    margin-top: 76px;
  }
}

@media screen and (min-width: 1000px) {
  .col2 .list_col2_second {
    margin-top: 135px;
  }
}

@media screen and (min-width: 1000px) {
  .col2 .list_col2_three {
    margin-top: 136px;
  }
}

@media screen and (min-width: 1000px) {
  .col2 .list_col2_four {
    margin-top: 122px;
  }
}

@media screen and (min-width: 1000px) {
  .col3 .content_section .detail_item:nth-child(1) {
    margin-top: 182px;
  }
}

@media screen and (min-width: 1000px) {
  .col3 .content_section .detail_item:nth-child(2) {
    margin-top: 324px;
  }
}

@media screen and (min-width: 1000px) {
  .col4 .final_section li {
    margin-top: 370px;
  }
}

.header_item {
  border-bottom: 2px solid #fff;
  color: #777;
  font-size: .8em;
  margin-bottom: 8px;
  padding-bottom: 8px;
  background-color: #e8e8e8;
  padding: 8px;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.col4 .content_item {
  padding: 8px 8px 0 8px;
}

.penalty_score::after {
  content: "(";
  position: absolute;
  right: -32px;
  top: 0px;
}


.penalty_score::before {
  content: ")";
  position: absolute;
  right: -16px;
}

.penalty_score {
  position: relative;
}

.penalty_score span {
  position: absolute;
  left: 18px;
}

.list_col2_four {
  position: relative;
  background: var(--bg-item);
  min-height: 97px;
  border-radius: 8px;
}

