:root {
    --color1: #fbdd22;
    --color2: #1e539b;
    --color21: #1e539bef;
    --color3: #FFAD05;
    --color4: #3A7D44;
    --color5: #254D32;
    --color6: #f8be0c;
    --color7: #ff3333;
    --color8: #9ac9a2;
}







/* CSS PARA BRACKET */
.hideRound {
    display: none;
    animation: showRound .8s cubic-bezier(0.34, 1.56, 0.64, 1) 1 forwards;

}

.showRound {
    animation: hideRound .8s cubic-bezier(0.34, 1.56, 0.64, 1) 1 forwards;

}

.shake-vertical {
    display: inline-block;
    -webkit-animation: shake-vertical 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
    animation: shake-vertical 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

.hole-status.has-result {
    /*display: none;*/
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    height: 1.75rem;
    width: 1.75rem;
    font-size: .8em;
    font-variation-settings: "wght" 80, "wdth" 300;
    font-family: "Lexend", sans-serif;
    position: absolute;
    right: .7em;
    /* top: -.4em; */
    z-index: 10;
    border: 1px solid #1818185e;
}

.last-hole {
    display: flex;
    background-color: #c2daf7;
    color: #2c61a1;
}

.card-submitted {
    display: flex;
    background-color: #fed100;
    color: #a85c18;
}

@-webkit-keyframes shake-vertical {
    0%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    10%,
    30%,
    50%,
    70% {
        -webkit-transform: translateY(-8px);
        transform: translateY(-8px);
    }
    20%,
    40%,
    60% {
        -webkit-transform: translateY(8px);
        transform: translateY(8px);
    }
    80% {
        -webkit-transform: translateY(6.4px);
        transform: translateY(6.4px);
    }
    90% {
        -webkit-transform: translateY(-6.4px);
        transform: translateY(-6.4px);
    }
}
@keyframes shake-vertical {
    0%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    10%,
    30%,
    50%,
    70% {
        -webkit-transform: translateY(-8px);
        transform: translateY(-8px);
    }
    20%,
    40%,
    60% {
        -webkit-transform: translateY(8px);
        transform: translateY(8px);
    }
    80% {
        -webkit-transform: translateY(6.4px);
        transform: translateY(6.4px);
    }
    90% {
        -webkit-transform: translateY(-6.4px);
        transform: translateY(-6.4px);
    }
}

@keyframes hideRound {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes showRound {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.normal-badge {
    background-color: rgba(229,231,235);
}

.winner-badge {
    background-color: rgba(167,243,208);
    border: 1px solid #1ec277;
    color: #30923c;
}



/* CSS PARA INDEX */
.pairing .bando .result {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding-right: .7em;
    padding-left: 1.2em;
    animation-delay:1s;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 1em 100%);
    background: #e6e6e6;
}

.pairing .bando.pending .result {
    background: #ffad05;
    color: white;
}

.pairing .bando.no-match .result {
    background: #e6e6e6;
}

.pairing .bando.winner .result {
    background:  var(--color4);
    color: white;
}


.result.no-result {
    display: none !important;
}

.player, .tournament-bracket__match {
    cursor: pointer;
}

.player:hover {
    background-color: #ffad05;
    color: black
}

.tournament-bracket__match:hover {
    background-color: #ffe000;
    transition: .24s ease all;
    border: 1px solid #907f0b;
    box-shadow: none;
}

.looser-badge{
    visibility: hidden;
    display: none;
}

#modal-ecard-viewer-bracket .modal__container {
    width: 100vw;
    max-width: 95%;

    height: 100vh;
    background: #b9cffd99;
    padding: 3em;
    border-radius: 1em;
    overflow: hidden;
}

#modal-ecard-viewer-bracket .modal__container #container-ecard iframe {
    width: 100%;
    height: 100vh;
    max-height: 90vh;

    border-radius: .5em;
}

#modal-ecard-viewer-bracket {
    position: relative;

}

#modal-ecard-viewer-bracket .modal__close {
    background: white;
    padding: .5em 1em;
    position:absolute;
    right: .3em;
    top: .3em;
    border-bottom-left-radius: 1em;
    transform: scale(1.4);
    width: fit-content;
}

@media screen and (max-width: 1000px) {
    #modal-ecard-viewer-bracket .modal__container {
        max-width: 100%;
        padding: 0;
        border-radius: unset;
    }

    #modal-ecard-viewer-bracket .modal__content {
        margin: 0;
    }

    #modal-ecard-viewer-bracket .modal__container #container-ecard iframe {
        max-height: 100vh;

        border-radius: unset;
    }

    #modal-ecard-viewer-bracket .modal__close {
        border-radius: unset;
        border-bottom-left-radius: 1em;
        transform: scale(1);
        top:0;
        right:0;
        border-left: 1px solid #00449e;
        border-bottom: 1px solid #00449e;
    }

}
