@import "16-team.css";

.game,
.bracket ul {
    width: 100%;
}

.round-name {
    width: unset;
}

.main-draw .round {
    width: 25%;
}

.playbacks .round {
    width: 33%;
}

    .playbacks .round.third-only {
        width: 25%;
    }

.info,
.more {
    font-size: unset;
    align-self: unset;
    justify-content: unset;
    color: unset;
}

.info {
    font-size: 0.7em;
    color: #a0a0a0;
    justify-content: space-between;
}

.more {
    font-size: 0.9em;
    justify-content: center;
    color: grey;
}

.team {
    gap: 5px;
    position: relative;
}

.Doubles .team .seed {
    display: none;
}

.team.matchup-data:hover:before {
    content: attr(data-card-info);
    position: absolute;
    padding: 5px;
    background-color: #183345;
    color: #fff;
    border-radius: 8px;
    z-index: 1;
    transition: all 0.3s ease;
    font-weight: normal;
    font-size: 0.8em;
    left: 10px;
    right: 10px;
    opacity: 1;
}

.separator {
    color: #d00;
}

/* Download button */
.download {
    border-radius: 8px;
    padding: 7px;
    border: 1px solid grey;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9em;
    display: block;
}

/* Live animation */
.status.live {
    color: #d00;
}

.live .separator {
    animation: blink-animation 2s linear infinite;
    -webkit-animation: blink-animation 2s linear infinite;
    -moz-animation: blink-animation 2s linear infinite;
    -o-animation: blink-animation 2s linear infinite;
}

@keyframes blink-animation {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes blink-animation {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-moz-keyframes blink-animation {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-o-keyframes blink-animation {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Playbacks */
.playbacks {
    margin-top: 25px;
}

.playbacks .first .item::after {
    height: 0;
}

.playbacks .first .item:nth-child(odd)::after,
.playbacks .first .item:nth-child(even)::after {
    border-radius: unset;
}

.playbacks .round-list.second li:first-child,
.playbacks .round-list.second li {
    margin-top: unset;
}

.playbacks .second .item::after {
    height: 50%;
}

.playbacks .round-list.third li:first-child {
    margin-top: 65px;
}

.playbacks .third .item::after,
.playbacks .third-only .item::before {
    content: none;
}

.playbacks .third-only .round-list.third li:first-child {
    margin: 0;
}

/* Positions */
.position-select {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    align-items: center;
}

.position-select button {
    background-color: white;
    padding: 7px;
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid rgba(54, 56, 61, 0.15);
    font-weight: bold;
}

.position-select button a {
    text-decoration: none;
    color: black;
    font-weight: 800;
}

.position-select span {
    font-size: 0.8em;
    color: grey;
}

.current-position {
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    border-radius: 8px;
    background-color: #183345;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    border: 1px solid rgba(54, 56, 61, 0.15);
}

    .current-position span {
        color: white;
    }

/* Playbacks */
.playbacks {
    margin-top: 25px;
}
    .playbacks .first .item::after {
        height: 0;
    }

    .playbacks .first .item:nth-child(odd)::after,
    .playbacks .first .item:nth-child(even)::after {
        border-radius: unset;
    }

    .playbacks .round-list.second li:first-child,
    .playbacks .round-list.second li {
        margin-top: unset;
    }

    .playbacks .second .item::before {
        top: 50%;
    }

        .playbacks .second li:nth-child(2).item::before {
            top: 49%;
        }

    .playbacks .second .item::after {
        height: 50%;
    }

    .playbacks .round-list.third li:first-child {
        margin-top: 65px;
    }

    .playbacks .third .item::after {
        content: none;
    }

button {
    cursor: pointer;
}

@media screen and (max-width: 797px) {
    .round-name {
            margin: 25px 0 0;
        }

    .playbacks .round-list.third li:first-child {
        margin: unset;
    }

    .CHSAA-logo {
        height: 50px;
    }

    .bracket-notes {
        margin-bottom: 10px;
    }

    .position-select {
        gap: 3px;
        margin-bottom: 0;
    }

    .position-select span {
        display: none;
    }

    .round {
        width: 100%!important;
    }
}