﻿@font-face {
    font-family: MyriadProLight;
    src: url("fonts/MyriadProLight.otf") format("opentype");
}
@font-face {
    font-family: MyriadProBold;
    src: url("fonts/MyriadProBold.ttf") format("opentype");
}
@font-face {
    font-family: MyriadPro;
    src: url("fonts/MyriadProRegular.ttf") format("opentype");
}
@font-face {
    font-family: MyriadProBolder;
    src: url("fonts/MyriadProBlack.ttf") format("opentype");
}

:root{
    --main: #9e292f;
    --bckgr:#f9f9f9;
    --gray:#efefef;
    --tableLight:#fff8f9;
}

html{
     scrollbar-width: thin;
     scrollbar-color: var(--main) var(--bckgr);  
}

html::-webkit-scrollbar{
    width: .5vw;
}

html::-webkit-scrollbar-button{
    background-color: #ddd2;
}

html::-webkit-scrollbar-thumb{
    background-color: var(--main);
}
html::-webkit-scrollbar-thumb:hover{
    background-color: var(--main);
}

html::-webkit-scrollbar-track{
    background-color: #ddd2;
}

html::-webkit-scrollbar-track:hover{
    background-color: #ddd;
}
h1,h2{
    font-family: MyriadPro, Arial;
}
b{
    font-family: MyriadProBold, Arial;
}
body {
    background: var(--bckgr);
    margin: 0px;
    padding: 0px;
    font-family: MyriadProLight, Arial;
    font-weight: lighter;
}
    body.responsive {
        font-size:150%;
    }
a {
    color:inherit;
    text-decoration:none;
}
a.visible{
    color:var(--main);
    padding: .5rem;
}
p {
text-align:justify;
}
    p.responsive {
        padding: 0px 20px;
    }
ul {
    margin:0px;
    padding:0px 0px 20px;
}
li {
    margin:0px 0px 10px 0px;
    padding:0px;
    list-style:none;
}
em{
    font-style: normal;
    font-weight: bold;
    color: var(--main);
}
pre{
    max-width: 800px;
    margin: auto;
    padding: 1rem;
    text-align: justify;
    white-space: pre-line;       /* Since CSS 2.1 */
}
.holder {
    width: 100%;
    max-width: 1280px;
    margin:auto;
}
.holder.responsive{
    overflow: hidden;
}
.icon {
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    text-align:center;
}
    .icon.sub {
        max-width: 300px;
        margin: 0px auto 20px;
        border: 5px solid var(--main);
    }
    .icon img {
        width:100%;
    }
input[type="text"], input[type="password"], textarea {
    padding: 1rem;
    margin: .5rem auto;
    background: rgba(105,105,105,0.24);
    border: none;
    color: rgb(128, 128, 128);
    width: -moz-calc(100% - 2rem);
    width: -webkit-calc(100% - 2rem);
    width: -o-calc(100% - 2rem);
    width: calc(100% - 2rem);
}
    input[type="text"].responsive, input[type="password"].responsive, textarea.responsive, #captcha.responsive, input[type="submit"].responsive, select.responsive {
        display: block;
        margin: 1rem auto;
        font-size: 1.5rem;
    }
input[type="file"]{
    padding: 0 1rem .5rem 1rem;
}
input[type="datetime-local"],input[type="date"]{
    padding: .5rem;
    color: var(--main);
    border-color: var(--main);
}

label[for]{  
    margin-top: .5rem;
    display: inline-block;
}
label[for] img{
    max-width: 3rem;
}
label[for] svg{
    max-width: 3rem;
    fill: var(--main);
    display: inline-block;
}
select{
    padding: 1rem;
    margin: .5rem auto;
    background: rgba(105,105,105,0.24);
    border: none;
    border-radius: 0%;
    color: rgb(128, 128, 128);
    width: 100%
}
input[type="submit"] {
        margin: 1rem auto;
        display: block;
        background: var(--main);
        padding: 1rem 1.5rem;
        color: white;
        border: none;
        cursor: pointer;
    }
    input[type="submit"]:disabled{
        background: rgba(105,105,105,0.24);
        color: rgb(128, 128, 128);
    }
/* pretty checkbox */
input[type="checkbox"] {
    position: absolute;
    /* left: -9000px;
    top: -9000px; */
    visibility: hidden;
  }
  
  input[type="checkbox"] + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }
  
  input[type="checkbox"] + label::before {
    content: "";
    width: 3.3em;
    height: 1.7em;
    background-color: #efefef;
    border: 2px solid var(--main);
    border-radius: 1em;
    margin-right: .25em;
    transition: background-color 200ms ease-in-out;
  }
  
 input[type="checkbox"] + label::after {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    content: "\2715";
    font-size: .6em;
    left: .429em;
    width: 2.5em;
    height: 2.5em;
    background-color: #777;
    color: white;
    border-radius: 50%;
    transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
  }
  
  input[type="checkbox"]:focus + label::before {
    outline: 1px solid var(--main);
  }
  
  input[type="checkbox"]:checked + label::before {
    background-color: #efefef;
  }
  
  input[type="checkbox"]:checked + label::after {
    content: "\2713";
    transform: translateX(100%);
    background-color: var(--main)
  }
  
  input[type="checkbox"]:disabled + label {
    color: #777;
  }
  
  input[type="checkbox"]:disabled + label::before {
    background-color: #CCC;
  }
  
  input[type="checkbox"]:disabled + label::after {
    background-color: #777;
  }


    .loading{
        display: inline-block;
        width: 2rem;
        aspect-ratio: 1;
        transform: rotate(360deg);
        animation: spin 1s linear infinite alternate;
        fill: var(--main);
        margin: auto;   
        display: none;
        /* border: 3px solid var(--main); */
        /* background-color: var(--main);
        -webkit-mask-image: url(../img/liga/icon-tennis-ball.svg);
        mask-image: url(../img/liga/icon-tennis-ball.svg); */
    }

    @keyframes spin {
        0%{ rotate: 0deg; }
        100%{ rotate: 360deg; }
    }

input[type="text"].search{
    border-radius: 2rem;
    position: relative;
    width: 10rem;
}

.error {
    border: 1px solid red !important;
    background-color: #fcd7d7;    
}
span.error{
    background: none;
    border:none !important;
    color: red;
    font-size: .8rem;
}

.menu{
    padding-top: 1rem !important;
}

.menu .holder div, .menu .holder ul {
    display: inline-block;
    vertical-align: middle;
}
.menu .holder ul {
    width: 100%;
    max-width: -moz-calc(100% - 160px);
    max-width: -webkit-calc(100% - 160px);
    max-width: -o-calc(100% - 160px);
    max-width: calc(100% - 160px);
    text-align:center;
}
    .menu .holder ul.responsive {
        max-width:100%;
        margin:0px auto;
        display:none;
    }
    .menu .logo {
        width: 30%;
        max-width: 150px;
    }
    .menu .logo img {
        max-width:150px;
        cursor:pointer;
    }
.menu .menuButton {
    width: 30%;
    display:none !important;
}
    .menu .menuButton.responsive {
        display: block !important;
        float: right;
        text-align: right;
        margin: 20px 0px;
    }
.menu li {
    display:inline-block;
    margin:10px 20px;
    font-size:150%;
}
    .menu li.responsive {
        width: 100%;
        border-bottom: 1px solid var(--main);
        display:block;
        margin: 0px;
        padding: 20px 0px;
    }
    .menu li:first-child.responsive {
        border-top: 1px solid var(--main);
        border-bottom: 1px solid var(--main);
    }


.banner {
    width: 100%;
    margin: 0px;
}
.banner.responsive{
    padding: 2rem 0px;
}
    .banner h2{
        text-align: center;
    }
    .banner.title {
        border: solid var(--main);
        border-width: 5px 0px;
        margin: 80px auto;
        position: relative;
     /*   background-color: #efefefae;
        background-blend-mode: lighten; */
    }
    .banner.title:before{
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.6);
        z-index: 1;
    }
        .banner.title.responsive {
            margin: 10rem auto 0px;
        }
        .banner.title h1 {
            font-size: 300%;
            color: black;
            text-transform: uppercase;
            text-align: inherit;
            padding: 0px;
            margin: 0px;
        }
            .banner.title h1 em {
                color: var(--main);
                font-style:normal;
            }
                .banner.title h1 em.responsive{
                    letter-spacing:normal !important;
                }
        .banner.title p {
            font-size: 130%;
            margin: 0px;
            color: black;
            text-align: inherit;
        }
        .banner.title .holder {
            opacity: 1.0;
            margin:-40px auto;
            text-align:center;
            position: relative;
            z-index: 2;
        }
        .banner.title .holder.userProfile{
            text-align:left;
            margin:-1rem auto;
            display: flex;
        }
        .banner.title .holder.userProfile h1.responsive{
            font-size: 2rem;
        }
            .banner.title .holder.responsive {
                margin:-10rem auto 0px;
                text-align:center;
                display: flex;
                flex-direction: column;
            }
        .banner.title .icon {
            border: 5px solid var(--main);
            width: 300px;
            display:inline-block;
            vertical-align:middle;
            position: relative;
            z-index: inherit;
        }
        .banner.title .holder.userProfile .icon{
            width: 10rem;
            aspect-ratio: 1;
            margin: 0 1rem;
        }
            .banner.title .icon.responsive {
                width:60% !important;
                margin:auto !important;
                display:block !important;
            }
        .banner.title .text {
            display: inline-block;
            vertical-align: middle;
            margin: 0px 0px 0px 20px;
            max-width:200px;
            position: relative;
            z-index: inherit;
        }
            .banner.title .text.responsive{
                width: 100%;
                display: block;
                margin: auto;
                text-align: center !important;
                max-width:none;
            }
        .banner.title .holder.userProfile .text{
            max-width: none;
            text-align: left;
            padding: 2rem 0;
        }
     .banner .holder.gallery {
            border: solid var(--main);
            border-width: 5px 0px;
            margin: 20px auto;
            padding: 20px 20px;
            text-align: center;
        }
        .banner .holder.gallery.responsive {
            padding: 20px 0px;
        }
        .banner .holder.gallery .icon {
            width: 20%;
            display: inline-block;
            vertical-align: middle;
        }
            .banner .holder.gallery .icon:not(:first-child) {
                margin-left: 5%;
            }
    .banner .holder.content {
        max-width: 30% !important;
        margin: 50px auto;
        border: 5px solid var(--main);
        background-color: #efefef;
        text-align: center;
        font-size: 1.2rem;
        padding: 1rem;
    }
    .banner .holder.content.voucher{
        padding: 0;
    }
        .banner .holder.content h1 {
            font-variation-settings: 'wdth' 80;
        }
        .banner .holder.content.responsive {
            max-width: 90% !important;
        }
      /*  .banner .holder.content:nth-of-type(2n+1) {
            border: 5px solid #efefef;
            background-color: var(--main);
        }*/
         .banner .gallery ul{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            align-content: stretch;
            gap: 20px;
        }
        .banner .gallery ul.responsive{
            flex-direction: column;
        }
        .banner .gallery ul li{
            flex-grow: 4;
            flex-shrink: 2;
            margin: 0px;
            text-align:center;
        }
        .banner .gallery ul li img{
            border: 5px solid var(--main);
            border-radius: 50%;
            width: 10rem;
            aspect-ratio: 1;
            padding: .2rem;
        }
        .banner .gallery ul li img.responsive{
            width: 15rem;
            margin-top: 5rem;
        }
        .banner .holder.content ul li img{
            width: 80px;
            display: none;
        }
        .banner h2.subtitle{
            font-size: 3rem;
        }

    .contact h2 {
        text-align: center;
        font-variation-settings: 'wght' 600;
        font-size: 200%;
    }
    .contact br.responsive {
        display:none;
    }

.teams{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.teams .team{
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--teamColor);
    box-shadow: 0 0 3px 3px white,
                0 0 .5rem .5rem var(--teamColor);
    margin: 1rem;
}
.teams .team span{
    display: none;
}
.teams .team:hover span{
    display:block;
}
.teams .team.responsive{
    
    max-width: -moz-calc(100% - 4.5rem);
    max-width: -webkit-calc(100% - 4.5rem);
    max-width: -o-calc(100% - 4.5rem);
    max-width: calc(100% - 4.5rem);
}

.teamsPos{
    width: fit-content;
    margin: 20px auto;
    display: grid;
    grid-template-columns: max-content min-content min-content;
}
.teamsPos span{
    padding: .5rem;
}

.fixture{
    max-width: 1280px;
    margin: auto;
}
.fixture .program{
    display: grid;
    grid-template-columns: repeat(4,max-content);
    gap: .1rem;
}
.fixture .program span{
    padding: .5rem;
}
.fixture .program span.score{
    background-color: var(--gray);
    border-radius: .5rem;
    text-align: center;
}

.teams .team h3{
    margin: 0px;
    padding: 0px;
    color: var(--teamColor);
}

.article h1 {
    color:var(--main);
    text-align:center;
}
.article h2 {
    font-weight:normal;
    text-align:center;
}
.article em {
    font-style:normal;
    font-weight:bold;
    color:var(--main)
}
.centered {
    text-align:center;
}
.article.squared {
    max-width: 30% !important;
    margin: 50px auto;
    border: 5px solid var(--main);
    background-color: #efefef;
    text-align: center;
    font-size: 120%;
    text-transform: uppercase;
    padding:20px;
}
    .article.squared.responsive {
        max-width:none !important;
        width:auto !important;
        margin:50px 20px;
    }
    .article.squared h2 {
        color: var(--main);
    }

.display {
    padding:20px;
}
    .display .icon {
        width:40%;
        max-width: 200px;
        margin: 0px 20px 0px 0px;
        border: 5px solid var(--main);
        display:inline-block;
        vertical-align:top;
    }
    .display .info {
        display: inline-block;
        width: 55%;
        text-align:justify;
        vertical-align: top;
    }
    .display ul {
        padding:0px;
        margin:0px;
    }

#map {
    width: 100%;
    height: 300px;
    margin: 50px auto;
    display: block;
    border: 5px solid var(--main);
    max-width: 600px;
}
    #map.responsive {
        max-width: 90% !important;
    }

.footer {
    text-align:center;
    color:var(--main);
    margin:50px auto;
}
    .footer img {
        margin:5px;
        max-height:50px;
    }

form.register{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}
form.login{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}
form.new{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}

.layout{
    display: flex;
    background-color: white;
    padding: 0;
    min-height: 80vh;
}
.layout .sidebar{
    background-color: var(--main);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    color: white;
    max-width: 15rem;
}
.layout .sidebar .userData{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 1rem;
}
.layout .sidebar .userData .name{
    width: 100%;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: capitalize;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.layout .sidebar .userData .data{
    font-size: .8rem;
}
.layout .sidebar .userData .userIcon{
    max-width: 150px;
    fill: white;
    border: 2px solid white;
    border-radius: 50%;
    aspect-ratio: 1;  
    width: 100%;
    position: relative;
    overflow: hidden;
}
.layout .sidebar .userData .userIcon img{
    max-width: 150px;
}

svg.userIcon{
    fill: #CCC;
    aspect-ratio: 1;  
    border-radius: 50%;
}
.layout .sidebar ul.action{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 0 0;
}
.layout .sidebar ul.action li{
    width: 100%;
    margin: 0;
}
.layout .sidebar ul.action li a{
    display: inline-block;
    width: 100%;
    padding: 1rem;
}
.layout .sidebar ul.action li a:hover, .layout .sidebar ul.action li a.current{
    background-color: var(--bckgr);
    color: var(--main);
}

.layout .content{
    padding: 1rem;
    background-color: var(--bckgr);
    flex-grow: 1;
}

.stats{
    display: flex;
    flex-direction: column;
}
.stats .additionalData{
    padding: 0 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
    .stats .additionalData.responsive{
        padding-top: 2rem;
    }
.stats .additionalData .data{
    display: flex;
    border: 1px solid var(--main);
    margin: .5rem;
    text-transform: capitalize;
    border-radius: 1.5rem;
    overflow: hidden;
}
.stats .additionalData .data .atr{
    color: var(--main);
    padding: .5rem;
    align-self: center;
}

.stats .additionalData .data .val{
    background-color: var(--main);
    color: white;
    padding: 1rem;
    align-self: center;
}


.stats .rates{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.stats .rates.left .stat .bar{
    flex-direction: row-reverse;
    justify-content: right;
}
.stats .rates.left .stat .bar .fill{
    text-align: left;
}
.stats .rates.left .stat .name, .stats .rates.right .stat .name{
    visibility: collapse;
    display: none;
}
.stats .rates.center .stat .bar{
    visibility: collapse;
    display: none;
}
.stats .rates.left .stat .bar .tag.responsive{
    padding-right: 1rem;
}
.stats .rates.center .stat .name{
    text-align: center;
}
.stats .rates.center .stat .name.responsive{
    height: 2rem;
    line-height: 2rem;
    width: 8rem;
}

.stats .numbers{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1rem;
}
.stats .stat{
    display: flex;
    flex-direction: column;
    padding: .5rem;
    width:10rem;
}
.stats .rates .stat{
    flex-direction: row;
    width: auto;
}
.stats .rates .stat span.name{  
    width: 15rem;
    text-align: left;
  }
.stats .rates .stat .bar{
    display: flex;
    justify-items: left;
    flex-grow: 1;
}

.stats .rates .stat .bar .tag{
    width: 3.5rem;
}
.stats .rates .stat .bar .fill{
    margin-right: .5rem;
    /* border: 2px solid var(--main); */
    background-color: var(--main);
    border-radius: 1.5rem;
    padding: 0.2rem;
    text-align: right;
    min-width: 1.5rem;
}
.stats .rates .stat .bar .fill svg{
    fill:white;
    width: 1.5rem;
    vertical-align: middle;
}

.stats .stat span{
    align-self: center;
    text-align: center;
}
.stats .stat span.value{
    font-size: 3rem;
    font-weight: bold;
}
.stats .stat span.name{
    font-size: 1.5rem;
    color: var(--main);
}

.nxtMatches{
    vertical-align: top;
    display:inline-block; 
    margin:1rem; 
    /* border: 2px solid var(--main);  */
    border-radius:1rem; 
    box-shadow:0px 0px 5px 1px rgba(0,0,0,0.34);
    overflow: hidden;
    background-color: white;
    text-align: left;
}
.nxtMatches.responsive{
    display: block;
}
.nxtMatches .leagueName{
    color: white;
    background-color: var(--main);
    padding: .3rem 1rem;
    font-size: .6rem;
}
.nxtMatches .round{
    padding: 0 1rem;
    color: var(--main);
    border-bottom: 1px var(--main) solid;
}

.nxtMatches .player{
    padding: .5rem 1rem;
    display: flex;
}
.nxtMatches .player .data{
    display: flex;
    flex-direction: column;
}
.nxtMatches .player .results span{
    display: inline-block;
    padding: 0 .5rem;
    margin: 0 .1rem;
    background-color: #efefef;
}
.nxtMatches .player .playerName{
    width: 9rem;
    font-size: 1rem;
    text-transform: capitalize;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.nxtMatches .player .playerName a{
    overflow: hidden;
    text-overflow: ellipsis;
}
.nxtMatches .player.winner{
    font-weight: bold;
}
.nxtMatches .player .playerContactData{
    display: none;
}

.nxtMatches .player:hover  .playerContactData{
    display: flex;
    flex-direction: row;
}

.nxtMatches .player .playerContactData svg{
    width: 2rem;
    aspect-ratio: 1;
    margin-right: .5rem;
}
.nxtMatches input[type="text"]{
    display: inline-block;
    width: 1rem;
    padding: .5rem;
    margin: 0 .1rem;
    border-radius: .5rem;
    background-color: #efefef;
}
.nxtMatches input[type="submit"]{
    display: inline-block;
    padding: .5rem;
    margin: 0 .1rem;
}
.nxtMatches textarea{
    display: block;
    width: auto;
}
.nxtMatches a[data-loader]{
    display: block;
    padding: 0 .5rem;
    margin: 0 1rem .5rem 1rem;
    background-color: var(--main);
    color: white;
    border-radius: .3rem;
    float: right;
}
.nxtMatches .comments{
    font-size: .6rem;
    padding: 0 1rem .5rem;
    color: #777;
    text-align: right;
}
.nxtMatches .comments a.visible{
    font-size: 1rem;
}

/*tabla de posiciones*/
.positions{
    display: flex;
    justify-content: center;
}
.positions.responsive{
    flex-direction: column;
}

.lazyloader svg{
    display: inline-block !important;
    width: 5rem;
    margin: 3rem auto;
}

.positions .leaguePositions{
    display: flex;
    flex-direction: column;
    margin:1rem;
    box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.34);
    /* border-radius: 1rem; */
    overflow: hidden;
    background-color: white;
    /* border: 1px solid #9e292f; */
}
.positions .leaguePositions h2{  
    background: var(--main);
    padding: 1rem;
    color: white;
    text-align: center;
    font-size: 1rem;
    margin: 0;
    text-transform: capitalize;
}
.positions .leaguePositions a{
    padding: .2rem .5rem;
    text-align: right;
    margin: 0;
}
.positions .leaguePositions .rules{
    text-align: right;
    padding: 1rem;
    background: var(--main);
    color: white;
    margin-top: auto;
}
.positions .leaguePositions .sponsorLogo{
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    max-width: 6rem;
    aspect-ratio: 1;
    padding: 1rem;
    align-self: center;
    border-radius: 50%;
    /* padding: 1rem;
    box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.34); */
}
.positions .leaguePositions .sponsorLogo img{
    max-width: 6rem;
    /* border: 2px solid var(--main); */
    /* border-radius: 50%; */
}
.positions.playerView .leaguePositions .playerList{
    max-height: 11rem;
    overflow-y: scroll;
    scrollbar-width: thin;
}
.positions .leaguePositions.ascend .playerList .player:nth-child(1),
.positions .leaguePositions.ascend .playerList .player:nth-child(2){
    background-color: rgba(123, 255, 61, 0.39);
    border-bottom: 1px solid #7772;
}
.positions .leaguePositions.ascend .playerList .player:nth-child(1)::before,
.positions .leaguePositions.ascend .playerList .player:nth-child(2)::before{
    content: '↑';
}

.positions .leaguePositions.ascend .playerList .player:nth-child(3),
.positions .leaguePositions.ascend .playerList .player:nth-child(4){
    background-color: rgba(255, 210, 61, 0.39);
    border-bottom: 1px solid #7772;
}
.positions .leaguePositions.ascend .playerList .player:nth-child(3)::before,
.positions .leaguePositions.ascend .playerList .player:nth-child(4)::before,
.positions .leaguePositions.descend .playerList .player:nth-last-child(3)::before,
.positions .leaguePositions.descend .playerList .player:nth-last-child(4)::before{
    content: '?';
}
.positions .leaguePositions.descend .playerList .player:nth-last-child(1),
.positions .leaguePositions.descend .playerList .player:nth-last-child(2){
    background-color: rgba(255, 132, 61, 0.39);
    border-bottom: 1px solid #7772;
} 
.positions .leaguePositions.descend .playerList .player:nth-last-child(1)::before,
.positions .leaguePositions.descend .playerList .player:nth-last-child(2)::before{
    content: '↓';
}
.positions .leaguePositions.descend .playerList .player:nth-last-child(3),
.positions .leaguePositions.descend .playerList .player:nth-last-child(4){
    background-color: rgba(255, 210, 61, 0.39);
    border-bottom: 1px solid #7772;
}


.positions .leaguePositions .player{
    display: flex;
    background-color: #fff8f9;
    padding: .5rem 0;
}
.positions .leaguePositions .player span{
    align-self: center;
}

.positions .leaguePositions .player:nth-child(even){
    background-color: white;
}
.positions .leaguePositions .player:hover{
    background-color: var(--bckgr) !important;
}

.positions .leaguePositions .player.me::after {
    content: '';
    width: 0; 
    height: 0; 
    border-top: .5rem solid transparent;
    border-bottom: .5rem solid transparent; 
    
    border-right:.5rem solid var(--main); 
  }
  
  .positions .leaguePositions .player.me::before {
    content: '';
    width: 0; 
    height: 0; 
    border-top: .5rem solid transparent;
    border-bottom: .5rem solid transparent;
    
    border-left: .5rem solid var(--main);
  }

.positions .leaguePositions .player .position{
    width: 2rem;
    text-align: center;
    font-weight: bold;
}
.positions .leaguePositions .player .name{
    flex-grow: 1;
    text-transform: capitalize;
}
.positions .leaguePositions .player .points{
    width: 2.5rem;
    text-align: center;
    font-weight: bold;
}
.positions .leaguePositions .head{
    display: flex;
    color: #777;
}
.positions .leaguePositions .head .position{
    width: 2rem;
    text-align: center;
    font-weight: bold;
}
.positions .leaguePositions .head .name{
    flex-grow: 1;
    text-transform: capitalize;
}
.positions .leaguePositions .head .points{
    width: 2rem;
    text-align: center;
    font-weight: bold;
}
.profile{
    display: flex;
    padding-bottom: 3rem;
}

.profile .photo{
    display: flex;
    flex-direction: column;
}
.profile .photo svg{
    max-width: 10rem;
    fill: #CCC;
    border: 2px solid var(--main);
    border-radius: 50%;
    aspect-ratio: 1;
}
.profile .photo .userIcon:not(svg){
    max-width: 10rem;
    fill: #CCC;
    border-radius: 50%;
    border: 2px solid var(--main);
    aspect-ratio: 1;
    overflow: hidden;    
    position: relative;
}
.userIcon img{
    width: 100%;
    position: absolute;
    top:-100%; left:0; right: 0; bottom:-100%;
    margin: auto;
}
.profile .personalData{
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
}
.personalData label{
    width: 8rem;
}
.personalData input[type="text"],.personalData select {
    width: 20rem;
    background-color: #CCC;
    color: black;
    margin-left: 1rem;
    margin-right: 0;
    text-transform: capitalize;
}
.personalData input[type="radio"]{
    margin: 1.5rem 1rem;
}
.personalData input[type="submit"]{
    margin: 1rem 0;
}
.personalData div{
    display: flex;
}
.personalData div *{
    align-self: center;
}

.matchHighlight{
    display: flex;
    flex-direction:row;
    justify-content: center;
    align-items: center;
    width: 60%;
    margin: auto;
}
.matchHighlight.responsive{
    width: 100%;
}

.matchHighlight h2{
    text-transform: capitalize;
    text-align: inherit;
    font-size: 2.5rem;
}
.matchHighlight .pic1, .matchHighlight .pic2 {
    text-align: center;
    overflow: hidden;
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
    border: 3px solid var(--main);
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-repeat: no-repeat;  
    box-shadow: 0 0 10px 0px gray;
}

.matchHighlight .pic1.responsive, .matchHighlight .pic2.responsive {
    max-width: 100px;
}
 .matchHighlight .data{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 2rem;  
    align-content: center;
    align-items: center;
    max-width: 20%;
 }
 .matchHighlight .data.responsive{
    padding: 0;
    align-self: baseline;
 }
 .matchHighlight .name{
     text-align: center;
 }
 .matchHighlight .name.responsive{
    max-height: 11rem;
    overflow: hidden;
}
 .matchHighlight .data .vs{
     text-align: center;
     font-size: 2rem;
     min-width: max-content;
 }
 .matchHighlight .data.result{
    font-size: 700%;
    font-weight: bold;
    align-self: center;
}
.matchHighlight .data.responsive{
    font-size: 500%;
}

 .matchHighlight img{
   max-width: 100%;
    max-height: 100%;
 }
 .matchHighlight.stats.responsive{
    flex-direction: row;
    margin: 0;
    padding: 1rem;
 }
 .matchHighlight.stats .p1, .matchHighlight.stats .p2{
    flex-grow: 1;
    width: 50%;
    padding: 1rem;
 }
 /* .matchHighlight.stats .p1.responsive{
    width: 100%;
    padding: 1rem;
} */
 /* .matchHighlight.stats .p2{
    border-left: 1px dashed var(--main);
    padding-left: 1.5rem;
 } */
 /* .matchHighlight.stats .p2.responsive{
    border: none;
    width: 100%;
    padding: 1rem;
 } */
 .matchHighlight.stats .rates h2{
    display: none;
 }
 .matchHighlight.stats .rates h2.responsive{
    display:inline;
    margin:none;
    font-size: 1.5rem;
 } 
 .matchHighlight.comments{
    flex-direction: column;
    margin-top: 1rem;
 }
 .matchHighlight.comments.responsive{
    padding: 1rem;
 }
 .matchHighlight.comments .post{
    margin-bottom: 1rem;
    width: 100%;
    /* border-bottom: 1px solid var(--main); */
 }
 .matchHighlight.comments .post h2{
    font-weight: normal;
    font-size: 1rem;
    margin: 0px;
    color: var(--main);
    padding: .5rem;
 }
 .matchHighlight.comments .post p{
    padding: 0 1rem;
    margin: 0 0 .5rem 0;
 }
 .matchHighlight.results{
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 1rem;

 }
 .matchHighlight.results .p1,.matchHighlight.results .p2{
    display: flex;
    flex-direction: row;
 }
 .matchHighlight.results .p1.responsive,.matchHighlight.results .p2.responsive{
    width: 90%;
 }
 .matchHighlight.results .p1 span,.matchHighlight.results .p2 span{
    margin: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 1rem;
    width: 2rem;
    background-color: var(--gray);
    border-radius: 1rem;
 }
 .matchHighlight.results .p1 span:first-child,.matchHighlight.results .p2 span:first-child{
    background-color: unset;
    text-transform: capitalize;
    font-weight: bold;
    width: 6rem;
    aspect-ratio: unset;
    flex-grow: 1;
    justify-content: left;
 }

 .matchHighlight.results .p1.winner,.matchHighlight.results .p2.winner{
    background-color: white;
    box-shadow: 1px 1px 10px 0px #777;
    border-radius: 1rem;
 }

 .poll{
    background-color: white;
    padding: 2rem;
    border-radius: 2rem;
 }

/* Admin */

.adminList{
    display: inline-table;
    width: 100%;
}
.status{
    display: flex;
}
.status em{
    padding: .3rem;
    border-radius: 1rem;
    border: 1px solid white;
}
.adminList .loading{
    visibility: visible;
    display: block;
    margin: auto;
    max-width: 100px;
    aspect-ratio: 1;
}
.adminList .row{
    display: table-row;
    white-space: nowrap;
    background-color: var(--bckgr);
}
.adminList:not(.noBackground) .row:nth-child(2n){
background-color: var(--tableLight);
}
.adminList .row:hover{
    background-color: var(--gray);
}
.adminList .row.head{
    font-weight: bold;
}
.adminList .row span{
    display: table-cell;
    padding: .5rem;
    vertical-align: middle;
}
.adminList .row.striked span:not(.actions):not(.status){
    text-decoration: line-through;
}
.adminList .row span img{
    max-height: 40px;
}
.adminList .row span svg{
    fill: var(--main);
    height: 0.8rem;
    aspect-ratio: 1;
    vertical-align: middle;
}
.adminList .row span a{
    display: block;
    padding: .2rem 0;
    font-size: 80%;
}
.actions a{
    display: block;
    padding: .5rem;
}
.actions a svg{
    fill: var(--main);
    max-width: 1rem;
    margin: .25rem;
    vertical-align: middle;
}

/*fin admin*/
.pages{
    width: 100%;
    text-align: center;
}
.pages a{
    margin: .5rem; 
    padding: .5rem;   
    display: inline-block;
}
.pages a.current{
    border-bottom: 5px solid var(--main);
}

.leaguePositions.full{
    max-width: 800px;
    display: table;
}
.leaguePositions.full.responsive{
    font-size: 80%;
}
.leaguePositions.full .title{
    display: table-row;
    font-weight: bold;
    color: white;
    background-color: var(--main);
}
.leaguePositions.full .player{
    display: table-row;
    position: relative;
    background-color: white;
}
.leaguePositions.full .player:nth-child(2n+1){
    background-color: var(--tableLight);
}
.leaguePositions.full.ascend .player:nth-child(2),
.leaguePositions.full.ascend .player:nth-child(3){
    background-color: rgba(123, 255, 61, 0.39);
    border-bottom: 1px solid #7772;
}

.leaguePositions.full.ascend .player:nth-child(4),
.leaguePositions.full.ascend .player:nth-child(5){
    background-color: rgba(255, 210, 61, 0.39);
    border-bottom: 1px solid #7772;
}
.leaguePositions.full.descend .player:nth-last-child(1),
.leaguePositions.full.descend .player:nth-last-child(2){
    background-color: rgba(255, 132, 61, 0.39);
    border-bottom: 1px solid #7772;
}
.leaguePositions.full.descend .player:nth-last-child(3),
.leaguePositions.full.descend .player:nth-last-child(4){
    background-color: rgba(255, 210, 61, 0.39);
    border-bottom: 1px solid #7772;
}
.leaguePositions.full .player:hover{
    background-color: var(--gray);
}
.leaguePositions.full span{
    display: table-cell;
    position: relative;
    text-align: center;
    vertical-align: middle;
    padding: .5rem;
}
.leaguePositions.full span[data-tooltip]:hover::after{
    position: absolute;
    display: inline-block;
    background-color: white;
    color: var(--main);
    border: 1px solid var(--main);
    border-radius: .5rem .5rem .5rem 0;
    content: attr(data-tooltip);
    padding: .25rem;
    top: -110%;
    z-index: 99;
}
.leaguePositions.full span.userName{
    text-align: left;
    text-transform: capitalize;
}
.leaguePositions.full span.points{
    font-weight: bold;
}
.leaguePositions.full span .img{
    width: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    position: relative;
}
.leaguePositions.full span .img img{
    width: 100%;
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    bottom: -100%;
    margin: auto;
}
.leaguePositions.full .player span[class^="place"] svg{
    max-width: 2rem;
    display: block;
    position: absolute;
    top: -100%;
    bottom: -100%;
    left: 1px;
    margin: auto;
}
.leaguePositions.full .player:not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)) span[class^="place"] svg{
    display: none;
}
.leaguePositions.full .player span[class^="place"] svg.responsive{
    position: relative;
    width: 6rem !important;
    margin-top: -1.8rem;
    margin-left: -3px;
}
.leaguePositions.full .player:nth-child(2) span[class^="place"] svg{
    fill: #fdd700;
}
.leaguePositions.full .player:nth-child(3) span[class^="place"] svg{
    fill: #c0c0c0;
}
.leaguePositions.full .player:nth-child(4) span[class^="place"] svg{
    fill: #B87333;
}
.leaguePositions.full .player:nth-child(2) span[class^="place"],
.leaguePositions.full .player:nth-child(3) span[class^="place"],
.leaguePositions.full .player:nth-child(4) span[class^="place"]{
    font-weight: bold;
    font-family: MyriadPro;
}
.pastLeagues{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;;
}
.pastLeagues.responsive{
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pastLeagues .league{
    display: flex;
  border: 1px solid var(--main);
  /* border-radius: 2rem; */
  padding: 1rem;
  margin: 1rem;
  box-shadow: 0 0 1rem 0 #0004;
  background-color: white;
  flex-basis: 0;
  /* flex-grow: 1; */
  min-width: 20rem;
}

.pastLeagues .league.responsive{
    margin: 0px;
    width: 90%;
}

.pastLeagues .league .sponsorLogo{
    width: 5rem;
    margin-right: 1rem;
    top: -100%;
    bottom: -100%;
}
.pastLeagues .league .data{
    flex-grow: 1;
}
.pastLeagues .league .data .name{
    font-size: 110%;
    font-family: MyriadPro;
    color: var(--main);
    text-transform: capitalize;
}
.pastLeagues .league .data .level{
    font-size: 120%;
    color: #777;
}
.pastLeagues .league .data .rules{
    font-size: 90%;
}
.pastLeagues .league .data .rules svg{
    fill: var(--main);
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
    width: auto;
}
.pastLeagues .league .data .action {
    text-align: right;
}
.pastLeagues .league .data .action a{
    display: inline-block;
    padding: .5rem;
    margin-top: .5rem;
    background-color: var(--main);
    color: white;
    border-radius: 1rem;
}
.pastLeagues .league .data .leagueChampion {
    display: flex;
    padding-top: .5rem;
    position: relative;
}
.pastLeagues .league .data .leagueChampion .userData{
    display: flex;
    flex-direction: column;
    padding-left: .5rem;
}
.pastLeagues .league .data .leagueChampion .userData .winnerName{
    font-family: MyriadPro;
    text-transform: capitalize;
}
.pastLeagues .league .data .leagueChampion .userData span:not(.winnerName){
    font-size: 70%;
    color: #777;
}
.pastLeagues .league .data .leagueChampion .userIcon{
    width: 1.5rem;
    margin: .5rem 1rem 1rem .8rem;
    aspect-ratio: 1;
    border-radius: 50%;
    fill: var(--main);
}
.pastLeagues .league .data .leagueChampion .decoration{
    width: 3rem;
    aspect-ratio: 1;
    display: block;
    position: absolute;
    top: -100%;
    bottom: -100%;
    margin: auto;
    fill: #fdd700;
}

.leagueTitle{
    display: flex;
    flex-direction: row;
}
.leagueTitle.responsive{
    flex-direction: column;
}
.leagueTitle .logo{
    padding: 0 1rem 0 0;
}
.leagueTitle .logo.responsive{
    text-align: center;
    padding: 1rem 1rem 1rem 0;
}
.leagueTitle .logo img{
    max-height: 7.5rem;
    margin: auto;
}
.leagueTitle .data h1,
.leagueTitle .data h2{
    margin: 0 0 .5rem 0;
}

.confirm.wrapper{
    background-color: #0006;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

div.confirm:not(.wrapper){
    background-color: white;
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 0 0 1rem #0008;
    display: flex;
    flex-direction: column;
    min-width: 20rem;
}
div.confirm:not(.wrapper).responsive{
    min-width: none;
    width: 100%;
    margin: 1rem;
}
.confirm:not(.wrapper) .box{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.confirm:not(.wrapper) .box .icon{
    max-width: 4rem;
}
.confirm:not(.wrapper) .box .icon img{
    width: 100%;
}
.confirm:not(.wrapper) .box .message{
    padding-left: 1rem;
}
.confirm:not(.wrapper) .actions{
    text-align: right;
    margin-top: 1rem;
}
.confirm:not(.wrapper) .actions a{
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 1rem;
    color: var(--main);
    border: 1px solid var(--main);
}
.confirm:not(.wrapper) .actions a.cancel:not([href]){
    background-color: white;
    background-color: var(--main);
    color: white;
    cursor: pointer;
}
.searchResult{
    display: block;
    box-shadow: 0 0 10px 10px black;
    position: absolute;
    background: white;
    box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.34);
    padding: 1rem;
    border-radius: 0 1rem 1rem;
}
.searchResult a{
    display: flex;
    flex-direction: column;
}
.searchResult a span:first-child{
    color: var(--main);
    font-weight: bold;
}
.searchResult a span:last-child{
    text-transform: capitalize;
}
.filter{
    display: flex;
    align-items: center;
    align-content: center;
    padding-bottom: 1.5rem;
}
.filter.responsive{
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-left: 1rem;
}
.filter.responsive span{
    padding: .5rem;
}
.filter span{
    padding: 1rem;
    text-transform: capitalize;
    cursor: pointer;
}
.filter span.active{
    border-bottom: 3px solid var(--main);
}

.voucher{
    display: flex;
    width: max-content;
    border: 2px solid var(--main);
    align-items: stretch;
    background-color: white;
    box-shadow: 0 0 1rem 0 rgba(0,0,0,.3);
    margin: 1rem;
    position: relative;
}
.voucher.responsive{
    display: inline-block;
    text-align: center;
    padding-bottom: 4rem;
    width:max-content;
    margin: 2rem auto;
}

.voucher.responsive h1{
    writing-mode:inherit;
}

.voucher.used{
    color: lightgray !important;
    border: 2px solid lightgray;
}
.voucher.used h1{
    background: lightgray;
}

.voucher h1{
    background: var(--main);
    color: white;
    writing-mode: sideways-lr;
    -webkit-writing-mode: vertical-lr;
    font-size: 1.2rem;
    margin: 0;
    padding: .5rem;
    text-transform: capitalize;
}
.voucher .qr{
    display: flex;
    align-items: center;
    padding: 1rem;
}
.voucher .qr img{
    width: 150px;
    height: 150px;
}
.voucher .text{
    padding: 1rem 1rem 1rem 0;
}
.voucher .text h2{
    margin: 0;
}
.banner .holder.voucher form div{
    text-align: left;
    display: grid;
    grid-template-columns: max-content max-content;
    padding: .5rem 0;
}
.banner .holder.voucher form div em{
    padding-left: 1rem;
}

.banner .sponsors{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap:4rem;
}

.banner .sponsors img.main{
    max-height: 150px;
}
.banner .sponsors img.sub{
    max-height: 100px;
}

.matches.results{
    display: grid;
    grid-template-columns: auto auto auto;
    border-top: 1px solid var(--gray);
}
.matches.results.responsive{
    display: grid;
    grid-template-columns: auto;
    border-top: 1px solid var(--gray);
}
.matches.results .nxtMatches{
    margin: 0;
    display: grid;
    box-shadow: none;
    border-radius: 0;
    grid-template-columns: 20px auto 5rem;
    border-bottom: 1px solid var(--gray);
    overflow: visible;
}
.matches.results .nxtMatches div{
    display: flex;
    flex-wrap: wrap;
}

.matches.results .nxtMatches .leagueName{
    align-items: center;
    padding: 0;
    text-align: center;
    justify-content: center;
    font-size: 90%;
    font-weight: bold;
}
.matches.results .nxtMatches .players{
    display: grid;
    grid-template-columns: auto;
    padding: .5rem .2rem;
}
.matches.results .nxtMatches .players .player{
    display: grid;
    grid-template-columns: 10rem auto;
    padding: 0;
}
.matches.results .nxtMatches .players .player .results{
    display: grid;
    grid-template-columns: 3.5rem 3.5rem 3.5rem;
    padding: 0;
    justify-content: right;
}
.matches.results .nxtMatches .players .player .results span{
    padding: 0;
    margin: 0;
    text-align: center;
}
.matches.results .nxtMatches .players .player .playerName{
    width: 100%;
}
.matches.results .nxtMatches .comments{
    padding: 0;
    margin: 0;
    justify-content: center;
}

.matches.scheduled{
    display: grid;
    grid-template-columns: auto auto auto;
    border-top: 1px solid var(--gray);
}
.matches.scheduled.responsive{
    display: grid;
    grid-template-columns: auto;
    border-top: 1px solid var(--gray);
}
.matches.scheduled .nxtMatches{
    margin: 0;
    display: grid;
    box-shadow: none;
    border-radius: 0;
    grid-template-columns: 20px auto 5rem;
    border-bottom: 1px solid var(--gray);
    overflow: visible;
}
.matches.scheduled .nxtMatches div{
    display: flex;
    flex-wrap: wrap;
}

.matches.scheduled .nxtMatches .leagueName{
    align-items: center;
    padding: 0;
    text-align: center;
    justify-content: center;
    font-size: 90%;
    font-weight: bold;
}
.matches.scheduled .nxtMatches .players{
    display: flex;
    flex-direction: column;
    padding: .5rem .2rem;
}
.matches.scheduled .nxtMatches .players .player{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-transform: capitalize;
}
.matches.scheduled .nxtMatches .players .player a{
    text-align: center;
    font-family: MyriadPro;  
    display: inline-block;
    padding: .5rem;
}
.matches.scheduled .nxtMatches .players .datetime{
    text-align: center;
    font-family: MyriadPro;  
    display: inline-block;
    padding: .5rem;
    font-size: 150%;
}
.matches.scheduled .nxtMatches .comments{
    padding: 0;
    margin: 0;
    justify-content: center;
}




*[data-tooltip]:hover::after{
    position: absolute;
    display: inline-block;
    background-color: white;
    color: var(--main);
    border: 1px solid var(--main);
    border-radius: .5rem .5rem .5rem 0;
    content: attr(data-tooltip);
    padding: .25rem;
    left: 100%;
    z-index: 99;  
    top: -1rem;
}