:root {
    --bg-darker: rgba(64, 64, 64, 0.3);
}

.leagues-main-tabs,
.match-schedules-tabs .weekly-tab, 
.match-schedules-tabs .weekly-ranking-tab,
.matchDate,
.standings-weekwise th,
.standings-weekwise .tab-list li table tbody tr,
.scheduled-matches-table tbody tr,
.third-pos,
.team-item > * {
    background-color: var(--bg-light);
}

.leagues-main-tabs a,
.match-schedules-tabs .weekly-tab, 
.match-schedules-tabs .weekly-ranking-tab,
#leagues-section .leagues-inner-section,
.scheduled-matches-table .team1-name,
.scheduled-matches-table .team2-name,
.team-name {
    color: var(--fr-text-dark);
}

.match-schedules-tabs .weekly-tab.active, 
.match-schedules-tabs .weekly-ranking-tab.active,
.match-schedules-tabs .weekly-tab:hover, 
.match-schedules-tabs .weekly-ranking-tab:hover {
    background-color: var(--bg-darker);
}

#leagues-section {
    background: transparent;
}

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

/* .wp-block-uagb-advanced-heading .uagb-desc-text, */
h1 {
    visibility: hidden;
}

.page table {
    border-collapse: collapse;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.match-content,
.teamwise-ranking-content,
.tabcontent {
    display: none;
}

.match-date-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.match-date-time__inner {
    text-align: left;
}

.match-content.active, .teamwise-ranking-content.active {
    display: block;
}

.match-schedules-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: flex-start;
    column-gap: 3rem;
    row-gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* .weekwise-rankings-table .team-logo img {
    height: 20px;
    width: auto;
} */

.matchDate {
    margin-bottom: 0;
    font-size: 12px;
    padding: 11px 10px;
    text-align: center;
}

tbody tr:first-child {
    box-shadow: 0px 5px 0px 0px #92929233 inset;
}

.weekwise-rankings-table table thead {
    border-bottom: 2px solid #000;
}

.match-timings {
    border-top: none;
}

.left-part > p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    row-gap: 1rem;
}

.first-three {
    font-size: 3rem;
    font-weight: 500;
    line-height: 4.5rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
}

.leagues-main-tabs {
    display: flex;
    column-gap: 13rem;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.leagues-main-tabs a {
    display: inline-block;
    padding: 1.5rem 1rem;
    border-bottom: .2rem solid transparent;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.4rem;
    text-transform: uppercase;
    text-decoration: none;
}

.leagues-main-tabs a.active {
    border-color: var(--action);
    color: var(--action);
}

.team-rank > span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7.8rem;
    height: 6.5rem;
    border-radius: 1rem;
    margin: 0 auto;
}

tr:first-child .team-rank > span,
tr:nth-child(3) .team-rank > span,
tr:nth-child(5) .team-rank > span {
    font-weight: 700;
}

tr:first-child .team-rank > span {
    background-color: var(--primary);
}

tr:nth-child(3) .team-rank > span {
    background-color: var(--action);
}

tr:nth-child(5) .team-rank > span {
    background-color: var(--bg-darker);
}

.match-schedules-tabs .weekly-tab, 
.match-schedules-tabs .weekly-ranking-tab {
    display: flex;
    justify-content: center;
    min-width: 15rem;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.4rem;
    padding: 1.4rem 2rem;
    border-radius: 1rem;
    text-transform: uppercase;
}

.standings-weekwise .tab-list{
    list-style:none;
    margin-left: 0;
}

.standings-weekwise th {
    border: none;
}

.standings-weekwise tr td.team-wins,
.standings-weekwise tr td.team-loses,
.standings-weekwise tr td.team-pa {
    font-weight: 700;
}

.standings-weekwise tr td.team-wins {
    color: var(--primary);
}

.standings-weekwise tr td.team-loses {
    color: var(--action);
}

tr.separator{
    height: 2px;
}

#leagues-section .leagues-inner-section{
    position: relative;
    z-index: 2;
    margin-right: auto;
    margin-left: auto;
}

.scheduled-matches-table .mobile {
    padding: 0 10px 50px;
}

.scheduled-matches-table .mobile.court-no {
    padding: 0;
}

.scheduled-matches-table .mobile > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.scheduled-matches-table .mobile > div > * {
    width: 20%;
    text-align: center;
}

.scheduled-matches-table .mobile .team1-name,
.scheduled-matches-table .mobile .team2-name {
    width: 30%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
}

.scheduled-matches-table .mobile .team1-logo img,
.scheduled-matches-table .mobile .team2-logo img {
    width: 100%;
    max-width: 30px;
}

.scheduled-matches-table .mobile .team-score span {
    font-size: 16px;
}

.scheduled-matches-table tr.separator {
    height: 4px;
    background-color: transparent;
}

.leagues-schedules-standings-teams td,
.leagues-schedules-standings-teams th {
    text-align: center;
}

.leagues-schedules-standings-teams,
.leagues-schedules-standings-teams tr,
.leagues-schedules-standings-teams td,
.leagues-schedules-standings-teams th  {
    border: none;
}

.leagues-schedules-standings-teams td,
.leagues-schedules-standings-teams th {
    padding: 3.7rem;
}

.leagues-schedules-standings-teams th {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.leagues-schedules-standings-teams th:first-child,
.leagues-schedules-standings-teams .team-rank {
    padding-right: 0;
}

.leagues-schedules-standings-teams th:nth-child(2),
.leagues-schedules-standings-teams .team-logo {
    padding-left: 15%;
    text-align: left;
}

#teams_list .team-tagline, #teams_list .teams-rankings{
    width:100%;
    clear: both;
}

#teams_list .team-tagline .team-tagline-div-one-fourth{
    width: 25%;
}

#teams_list .team-tagline .team-tagline-div-one-half{
    margin: 0 auto 77px auto;
    text-align: center;
}

#teams_list .team-tagline .team-tagline-div-one-half p {
    width: 50%;
    font-size: 22px;
    margin: 0 auto;
}

#teams_list .team-tagline h2{
    font-family: 'Raleway';
    font-weight: 600;
    font-size: 50px;
    color: #FCEFD8;
}

.team-list {
    display: grid;
    gap: 4rem;
    grid-template-columns: 1fr 1fr;
}

.team-item:first-child {
    grid-column-start: 1;
    grid-column-end: span 2;
}

.team-item > * {
    border-radius: 2rem;
    padding: 4.2rem 2.5rem;
    width: 100%;
    height: 100%;
}

.team-item:first-child > * {
    width: 50%;
    margin: 0 auto;
}

.team-item ul,
.team-name {
    text-align: center;
}

.team-item ul {
    margin-top: 2rem;
}

.team-name {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1em;
    margin-top: 0;
}

#teams_list .teams-rankings .team-list .team-item .left-part img{
    position: relative;
    top: 8px;
    padding-right: 10px;
}

.first-pos {
    background-color: var(--primary);
}

.sec-pos {
    background-color: var(--action);
}

.third-pos {
    background-color: var(--bg-darker);
}

.team-item ul{
    list-style: none;
    margin: 18px 0;
}

.team-item ul li{
    display: inline-block;
}

.left-part span:last-child {
    font-size: 14px;
}

.scheduled-matches-table .team1-result,
.scheduled-matches-table .team2-result {
    padding-left: 0;
    padding-right: 0;
}

.scheduled-matches-table .team-score {
    padding-left: 1rem;
    padding-right: 1rem;
    min-width: 70px;
}

.page-template-template-leagues .site.grid-container .home-sec1 {
    background: transparent;
    padding: 200px 20px 90px;
	margin: auto;
}

.page .please-read {
    padding-top: 0;
    margin-bottom: 10px;
    text-align: center;
    color: #4EC1B2;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 60px;
}

.wp-block-uagb-section .fluentform {
    max-width: 700px;
    margin: 40px auto 0;
}

.home-sec1 p > a {
    text-decoration: underline;
    font-weight: 700;
}

.home-sec1 p > a:hover {
    text-decoration: underline;
    color: hsl(0, 0%, 60%);
}

.home-sec2 {
    margin-top:100px;
}

.scheduled-matches-table td,
.scheduled-matches-table td p,
.matchDate,
.standings-weekwise th,
.weekwise-rankings-table tbody > tr > td,
.scheduled-matches-table td p,
.scheduled-matches-table .mobile span {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.4rem;
    text-transform: uppercase;
}

.match-time {
    font-weight: 400;
}

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

    .team-list {
        gap: 3rem;
    }

    .weekwise-rankings-table {
        overflow-x: auto;
    }

    .leagues-schedules-standings-teams td,
    .leagues-schedules-standings-teams th{
        padding: 2rem;
    }

    .leagues-schedules-standings-teams th:nth-child(2),
    .leagues-schedules-standings-teams .team-logo {
        padding-left: 4rem;
    }

    .leagues-main-tabs {
        column-gap: 5rem;
    }

    .match-schedules-tabs {
        column-gap: 2rem;
    }

    .match-schedules-tabs .weekly-tab,
    .match-schedules-tabs .weekly-ranking-tab {
        min-width: 0;
    }
}

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

    .match-date-time {
        margin-bottom: 2rem;
    }

    .match-date-time__inner {
        text-align: center;
    }

    .team-list {
        grid-template-columns: 1fr;
    }

    .team-item:first-child {
        grid-column-start: initial;
        grid-column-end: initial;
    }

    .team-item:first-child > * {
        width: 100%;
    }

    .leagues-main-tabs {
        row-gap: 2rem;
    }

    .leagues-schedules-standings-teams th:nth-child(2),
    .leagues-schedules-standings-teams .team-logo {
        padding-left: 3rem;
    }

    .page .fluentform .ff-el-group {
        margin-bottom: 15px;
    }

    .scheduled-matches-table .mobile-hide {
        display: none !important;
    }

    .scheduled-matches-table tbody > tr {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }
    
    .scheduled-matches-table tbody > tr > * {
        -webkit-box-flex: 1;
            -ms-flex: 1 0 100%;
                flex: 1 0 100%;
    }

    .scheduled-matches-table tbody > tr > *:first-child {
        text-align: center;
        padding: 35px 10px 21px;
    }

    #teams_list .team-tagline .team-tagline-div-one-half {
        display: none;
    }

    #teams_list .teams-rankings .team-list .team-item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    #teams_list .teams-rankings .team-list .team-item {
        width: 100%;
    }

    .teamwise-ranking-content {
        position: relative;
    }

    .teamwise-ranking-content::before {
        position: absolute;
        content: 'Scroll >';
        pointer-events: none;
        right: 1rem;
        top: 7rem;
        border-radius: 1rem;
        background-color: hsla(172, 48%, 53%, 0.6);
        padding: .6rem;
        line-height: 1;
        text-transform: uppercase;
        font-size: 1rem;
        font-weight: 700;
        animation-name: pklLeftRight;
        animation-duration: 1.5s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;
    }
}

@media screen and (max-width: 480px) {
    .leagues-main-tabs {
        padding: 3rem 2rem;
        column-gap: 2rem;
        row-gap: 2rem;
        padding: 3rem 2rem;
    }

    .leagues-main-tabs a {
        padding: 0 0 1rem;
    }

    .team-name {
        font-size: 3rem;
    }
}

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

    .page .please-read {
        margin-top: 100px;
    }

    .page-template-template-leagues .site.grid-container .home-sec1 {
        padding: 200px 50px 90px;
    }

    .home-sec2 {
        margin-top:120px;
    }

    .team1-result img,
    .team2-result img {
        display: block;
        margin: 0 auto;
    }

    .left-part img {
        margin-bottom: 15px;
    }

    .left-part span:last-child {
        font-size: 18px;
    }

    .scheduled-matches-table td p:nth-child(2) {
        font-size: 16px;
    }

    .weekwise-rankings-table table thead,
    .matchDate {
        border-bottom: none;
    }

    tr.separator {
        height: 7px;
    }

    #leagues-section .leagues-inner-section {
        padding-top: 0;
    }

    .scheduled-matches-table .mobile {
        display: none !important;
    }
}