@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* general */
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: rgba(54, 56, 61, 0.05);
    font-size: 16px;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

a.anchor {
    display: block;
    position: relative;
    top: -50px;
    visibility: hidden;
}

/* Bracket styles */
.bracket-name {
    text-align: center;
}

.bracket-notes {
    width: 100%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
    border: 1px solid rgba(54, 56, 61, 0.15)
}

.bracket-notes .note-head {
    font-weight: bold;
    display: block;
}

.bracket-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.CHSAA-logo {
    height: 60px;
    float: right;
}

.bracket {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 8px;
}

.bracket-menu {
    display: none;
}

.round {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 25%;
}

.round-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

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

    .round-list.second li {
        margin-top: 130px;
    }

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

    .round-list.third li {
        margin-top: 390px;
    }

    .round-list.fourth li {
        margin-top: 455px;
    }

.item {
    padding: 15px 10px;
    display: flex;
    align-items: center;
    position: relative;
    height: 100px;
}

/* Lines */
.item::after {
    position: absolute;
    right: 0;
    content: '';
    display: block;
    width: 10px;
    height: 50%;
    border-right: 1px solid rgb(205, 205, 205);
}

.second .item::after {
    height: 100%;
}

.third .item::after {
    height: 200%;
}

.fourth .item::after {
    content: none;
}

.second .item::before,
.third .item::before,
.fourth .item::before {
    content: '';
    position: absolute;
    top: 50%;
    border-top: 1px solid rgb(205, 205, 205);
    width: 10px;
    left: 0;
}

.item:nth-child(odd)::after {
    top: 50%;
    border-top: 1px solid rgb(205, 205, 205);
    border-radius: 0 8px 0 0;
}

.item:nth-child(even)::after {
    bottom: 50%;
    border-bottom: 1px solid rgb(205, 205, 205);
    border-radius: 0 0 8px 0;
}

/* Matchups */
.game {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid rgba(54, 56, 61, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.game a {
    text-decoration: none;
    color: #183345;
}

.game a:hover {
    color: #1b7ea6;
}

.info,
.more {
    font-size: 0.7em;
    padding: 5px 10px;
    align-self: flex-start;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    color: #a0a0a0;
}

.info .status {
    color: #202020;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    gap: 2px;
}

.team {
    box-sizing: border-box;
    color: #000;
    padding: 5px 10px;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 3px;
}

.team .seed {
    font-size: 0.8em;
    width: 15px;
    color: rgb(101, 102, 103);
}

.team .logo {
    width: 20px;
    height: 20px;
}

.team .score {
    width: 25px;
    margin-left: auto;
}

.team.winner .school,
.team.winner .score {
    font-weight: bold;
}

.team .school {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.separator {
    color: #a0a0a0;
    font-size: 0.9em;
}

/* Headers */

.round-name {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    text-align: center;
    margin: 0 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.round-date {
    color: #a0a0a0;
    font-size: 0.9em;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Big scoreboard */

.live-finals {
    width: 100%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
    border: 1px solid rgba(54, 56, 61, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scoreboard-title {
    font-weight: bold;
    font-size: 1.2em;
}

.main-scoreboard {
    display: flex;
    padding: 10px;
}

.team1 {
    display: flex;
    flex-direction: column;
    padding: 10px;
    align-items: center;
}

.team1-logo, .team2-logo {
    display: flex;
    gap: 5px;
    align-items: center;
    color: grey;
}

.team1-score, .team2-score {
    font-size: 1.5em;
    font-weight: bold;
}

.by-position {
    display: flex;
    gap: 20px;
    width: 100%;
}

.position {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(54, 56, 61, 0.15);
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(54, 56, 61, 0.05);
    width: calc(100%/7);
    align-items: center;
    min-width: 100px;
    flex-grow: 1;
}

    .position .linescore {
        color: grey;
    }

.pos {
    font-weight: bold;
}

.smaller {
    display: none;
}

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

.live .separator, .live-now {
    color: #d00;
    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;
}

.score-info,
.player-info {
    align-items: center;
    min-width: 100px;
    flex-grow: 1;
}

.score-info {
    flex-direction: column;
    display: flex;
    gap: 5px;
}

.position:hover {
    color: white;
    background-color: #1b7ea6;
}

.position:hover .score-info,
.player-info {
    display: none;
}

.position:hover .player-info {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 20px;
}

.logo-sm {
    width: 20px;
}

.players {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pl {
    display: flex;
    gap: 10px;
    align-items: center;
}

[data-bracket="1D"] .player-name,
[data-bracket="2D"] .player-name,
[data-bracket="3D"] .player-name,
[data-bracket="4D"] .player-name {
    font-size: 0.9em;
}

@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;
    }
}

/* Responsive styles */
@media screen and (max-width: 1505px) {
    body,
    button {
        font-size: 14px;
    }

    .round-name {
        margin: 0 10px 10px;
    }

    .CHSAA-logo {
        height: 55px;
    }
}

@media screen and (max-width: 1360px) {
    body,
    button {
        font-size: 13px;
    }

    .game,
    .round-name {
        width: 270px;
    }

    .round-name {
        margin: 0 10px 5px;
    }

    .CHSAA-logo {
        height: 50px;
    }
}

@media screen and (max-width: 1230px) {
    body,
    button {
        font-size: 12px;
    }

    .game,
    .round-name {
        width: 225px;
    }

    .more {
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .CHSAA-logo {
        height: 45px;
    }
}

@media screen and (max-width: 1005px) {
    body,
    button {
        font-size: 11px;
    }

    .game,
    .round-name {
        width: 200px;
    }

    .round-name {
        margin: 0 7px 5px;
    }

    .item {
        padding: 15px 7px;
    }

    .item::after {
        width: 7px;
    }

    .second .item::before,
    .third .item::before,
    .fourth .item::before {
        width: 7px;
    }

    .CHSAA-logo {
        height: 40px;
    }
}

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

    .game,
    .round-name {
        width: 175px;
    }

    .round-name {
        margin: 0 5px 5px;
    }

    .logo {
        display: none;
    }

}


@media screen and (max-width: 797px) {
    .bracket {
        flex-direction: column;
        max-width: 100%;
        align-items: center;
    }

    .bracket-menu {
        display: flex;
        justify-content: center;
        padding: 10px;
    }

    .bracket-menu select {
        font-family: 'Inter', Arial, sans-serif;
        font-size: 16px;
        border-radius: 8px;
        border: none;
        padding: 2px;
        color: #183345;
    }

    .bracket-header {
        width: 100%;
        position: sticky;
        background-color: #183345;
        top: 0;
        z-index: 99;
        margin-bottom: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
        flex-direction: column;
    }

    .bracket-name {
        margin: 0;
        padding: 10px;
    }

    body,
    button {
        font-size: 16px;
    }

    .bracket-notes {
        margin: 0;
    }

    .game,
    .round-name,
    .round,
    .round-list {
        width: 100%;
    }

    .round-name {
        margin: 10px 0 0;
    }

    .round-1 .round-name {
        margin: 20px 0 0;
    }

    .item {
        padding: 10px 0;
    }

    .item::after {
        content: none;
    }

    .second .item::before,
    .third .item::before,
    .fourth .item::before {
        content: none;
    }

    .round-list.second li:first-child,
    .round-list.third li:first-child,
    .round-list.second li,
    .round-list.third li,
    .round-list.fourth li {
        margin: unset;
    }

    .second.round-name,
    .third.round-name {
        margin: 10px 0 0;
    }

    .logo {
        display: block;
    }

    .CHSAA-logo {
        height: 65px;
    }
}

@media screen and (max-width: 797px) {
    .CHSAA-logo {
        height: 50px;
    }

    .smaller {
        display: block;
    }

    .longer {
        display: none;
    }

    .live-finals {
        margin-top: 20px;
        margin-bottom: 0;
    }

    .main-scoreboard {
        width: 100%;
    }

    .team1 {
        width: 50%;
        gap: 10px;
    }

    .by-position {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 400px) {
    .position {
        width: 100%;
    }
}