body {
    padding-bottom: 0;
}

.preloader {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    color: #9CA0AB;
    gap: 16px;
}

.preloader img {
    width: 50px;
    height: 50px;
}

.the-preloader {
    width: 50px;
    height: 50px;
    margin: 32px auto;
}

main {
    display: none;
}

main .header {
    background: #E41827;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 16px 10px;
}

main .header i {
    font-size: 24px;
    cursor: pointer;
}

main .header .left {
    display: flex;
    gap: 16px;
    align-items: center;
}

main .header .right {
    display: flex;
    align-items: center;
    gap: 16px;
}

main .header .left span {
    font-family: "Play", sans-serif;
    font-size: 18px;
}

main .teams {
    padding: 32px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

main .teams .heading {
    display: flex;
    justify-content: space-between;
    color: #9CA0AB;
    text-align: center;
    padding: 16px;
    font-size: 12px;
}

main .teams .heading .timer {
    color: #32CE62;
    display: none;
}

main .teams .heading .league {
    text-align: center;
    flex: 1;
}

main .teams .team-container .left-team-img {
    position: absolute;
    width: 150px;
    height: 150px;
    left: -75px;
    filter: blur(3px);
}

main .teams .team-container .right-team-img {
    position: absolute;
    width: 150px;
    height: 150px;
    right: -75px;
    filter: blur(3px);
}

main .teams .team-container .content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-block: 32px;
    gap: 16px;
}

main .teams .team-container .content .left,
main .teams .team-container .content .right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    width: 35%;
    text-align: center;
}

main .teams .team-container .content .left img,
main .teams .team-container .content .right img {
    width: 70px;
    height: 70px;
}

main .teams .team-container .content .center {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    color: white;
}

main .container .body>.tabbars {
    display: flex;
    align-items: center;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 16px;
    background: #353A45;
}

main .container .body>.tabbars::-webkit-scrollbar {
    display: none;
}

main .container .body>.tabbars .tabbar {
    color: #9CA0AB;
    white-space: nowrap;
    cursor: pointer;
}

main .container .body>.tabbars .tabbar.active {
    color: white;
}

main .tabs {
    padding-bottom: 32px;
}

main .tabs .filters {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    display: none;
}

main .tabs .filters select {
    background: transparent;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #353A45;
    outline: none;
    color: #9CA0AB;
}

main .tabs .tab {
    display: none;
    text-align: center;
}

main .tabs .tab.active {
    display: block;
}

main .tabs .tbbrs {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: white;
    border-bottom: 1px solid #353A45;
    margin: 16px;
}

main .tabs .tbbrs .tbbr {
    cursor: pointer;
    text-align: center;
    width: 100%;
    padding-block: 16px;
    border-bottom: 4px solid transparent;
}

main .tabs .tbbrs .tbbr.active {
    color: #32CE62;
    border-color: #32CE62;
}

main .floating-action {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: #E41827;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* H2H TAB */
#h2h-tab {
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#h2h-tab .league-name {
    font-size: 12px;
    background: #ff626d;
    color: #000000;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

#h2h-tab .team-names {
    display: flex;
    justify-content: space-between;
    color: white;
    font-weight: 500;
    width: 100%;
    padding-inline: 16px;
    font-size: 12px;
    border-bottom: 1px solid #353A45;
    padding-bottom: 16px;
    margin-top: 16px;
}

#h2h-tab .fp-title {
    font-size: 12px;
    color: #9CA0AB;
    margin-block: 16px;
    text-align: center;
}

#h2h-tab .form-position-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-inline: 16px;
}

#h2h-tab .last-x-matches-container {
    margin-top: 16px;
    width: 100%;
}

#h2h-tab .last-x-matches-container .last-x-matches-title {
    background: #353A45;
    color: #9CA0AB;
    font-size: 12px;
    text-align: center;
}

#h2h-tab .last-x-matches-container .last-x-matches-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 16px;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-left,
#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-outcome {
    background: #414c65;
    color: black;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-outcome.lxm-win {
    background: #32CE62;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-outcome.lxm-lose {
    background: #1b4428;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-side {
    color: #a1a1a1;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-team-code {
    color: white;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-left .lxm-score-line {
    color: white;
    font-weight: 300;
    display: inline-block;
    margin-left: 16px;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-right .lxm-score-line {
    color: white;
    font-weight: 300;
    display: inline-block;
    margin-right: 16px;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-spacer-left {
    height: 10px;
    width: 3px;
    background: #32CE62;
    margin-left: 8px;
}

#h2h-tab .last-x-matches-container .last-x-matches-list .lxm-row .lxm-spacer-right {
    height: 10px;
    width: 3px;
    background: #32CE62;
    margin-right: 8px;
}

/* PREVIOUS MEETING CHART */
#h2h-tab .previous-meetings-container {
    width: 100%;
    margin-top: 16px;
}

#h2h-tab .previous-meetings-container .pm-title {
    background: #353A45;
    color: #9CA0AB;
    text-align: center;
    font-size: 12px;
}

#h2h-tab .previous-meetings-container .pm-chart {
    padding-block: 16px;
}

/* HIGHEST WIN */
#h2h-tab .highest-win-container {
    margin-top: 8px;
}

#h2h-tab .highest-win-container .hw-title {
    color: #9CA0AB;
    text-align: center;
    font-size: 12px;
}

#h2h-tab .highest-win-container .hw-body {
    display: flex;
    justify-content: space-between;
    padding-inline: 16px;
    align-items: center;
}

#h2h-tab .highest-win-container .hw-body h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

#h2h-tab .highest-win-container .hw-body h2 img {
    width: 30px;
    height: 30px;
}

#h2h-tab .highest-win-container .hw-body h2 span {
    font-weight: 500;
    font-size: 18px;
}

#h2h-tab .highest-win-container .hw-body .hwb-left h2 span {
    color: #32CE62;
}

#h2h-tab .highest-win-container .hw-body .hwb-right h2 span {
    color: #E41827;
}

#h2h-tab .highest-win-container .hw-body .hwb-right h2 {
    justify-content: end;
}

#h2h-tab .highest-win-container .hw-body p {
    color: #9CA0AB;
    font-weight: 400;
    font-size: 14px;
}

/* AVERAGES */
#h2h-tab .averages-container {
    margin-top: 32px;
    padding-inline: 16px;
}

#h2h-tab .averages-container .averages-title {
    text-align: center;
    color: #9CA0AB;
    font-size: 12px;
}

#h2h-tab .averages-container .averages-body {
    margin-top: 8px;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-title {
    text-align: center;
    font-size: 12px;
    color: #9CA0AB;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-left {
    flex: 1;
    display: flex;
    align-items: start;
    justify-content: end;
    gap: 2px;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-right {
    flex: 1;
    display: flex;
    align-items: start;
    gap: 2px;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-value {
    color: #000000;
    background: #414c65;
    font-size: 12px;
    display: inline-block;
    width: 34px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-line {
    width: 0%;
    height: 1px;
    background: #414c65;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-left .avg-ir-value {
    background: #32CE62;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-right .avg-ir-value {
    background: #E41827;
    color: white;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-left .avg-ir-line {
    background: #32CE62;
}

#h2h-tab .averages-container .averages-body .avb-item .avb-i-row .avg-ir-right .avg-ir-line {
    background: #E41827;
}

#h2h-tab .averages-container .averages-body .avb-item.points .avb-i-row .avg-ir-left .avg-ir-line {
    width: 0%;
}

#h2h-tab .averages-container .averages-body .avb-item.points .avb-i-row .avg-ir-right .avg-ir-line {
    width: 0%;
}

/* LAST 5 MATCHES (PREVIOUS MEETING) */
#h2h-tab .pm-lxm-container {
    margin-top: 16px;
    padding-inline: 16px;
}

#h2h-tab .pm-lxm-container .pm-lxm-title {
    text-align: center;
    color: #9CA0AB;
    font-size: 12px;
}

#h2h-tab .pm-lxm-container .pm-lxm-list {
    padding-block: 16px;
    font-size: 12px;
    color: #9CA0AB;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#h2h-tab .pm-lxm-container .pm-lxm-list .pm-lxm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    width: 100%;
    gap: 5px;
}

#h2h-tab .pm-lxm-container .pm-lxm-list .pm-lxm-row span {
    white-space: nowrap;
}

#h2h-tab .pm-lxm-container .pm-lxm-list .pm-lxm-row .pm-lxm-left-team,
#h2h-tab .pm-lxm-container .pm-lxm-list .pm-lxm-row .pm-lxm-right-team {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

#h2h-tab .pm-lxm-container .pm-lxm-list .pm-lxm-row .line-spacer {
    width: 100%;
    height: 1px;
    background: #353A45;
}

#h2h-tab .pm-lxm-container .pm-lxm-list .pm-lxm-item .pm-lxm-info {
    text-align: left;
}

/* NEXT 5 MATCHES */
#h2h-tab .next-x-matches {
    width: 100%;
}

#h2h-tab .next-x-matches .nxm-title {
    text-align: center;
    color: #9CA0AB;
    font-size: 12px;
    background: #353A45;
}

#h2h-tab .next-x-matches .nxm-body {
    padding: 16px;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#h2h-tab .next-x-matches .nxm-body .nxm-item {
    display: flex;
    align-items: center;
    height: 50px;
}

#h2h-tab .next-x-matches .nxm-body .nxm-item .nxmi-left,
#h2h-tab .next-x-matches .nxm-body .nxm-item .nxmi-right {
    flex: 1;
    color: #9CA0AB;
}

#h2h-tab .next-x-matches .nxm-body .nxm-item .nxmi-vr {
    height: 100%;
    width: 1px;
    background: #353A45;
}

#h2h-tab .next-x-matches .nxm-body .nxm-item .nxmi-left {
    text-align: left;
}

#h2h-tab .next-x-matches .nxm-body .nxm-item .nxmi-right {
    text-align: right;
}

#h2h-tab .next-x-matches .nxm-body .nxm-item span {
    color: white;
    font-weight: 500;
}

@media(min-width: 768px) {
    body {
        background-image: url(../images/hero.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    main .container .body {
        margin-inline: 20%;
        background: rgba(36, 39, 46, .9);
    }
}