@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: 13px;
    margin: 0;
}

.bracket-container {
    padding: 10px;
}

.main-bracket {
    display: flex;
    justify-content: space-between;
    gap: 2em;
}

.draw-label {
    padding: 10px;
    border-radius: 8px;
    background-color: #e8e8e8;
    font-weight: bold;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(54, 56, 61, 0.15);
    box-sizing: border-box;
}

.tournament-info {
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.5em;
    flex-wrap: wrap;
}

.tournament-info span {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
}

/* card */

.match-card {
    border: 1px solid rgba(54, 56, 61, 0.15);
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: 100%;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7em;
}

.match-details {
    display: flex;
    justify-content: center;
}

.match-details-text {
    font-size: 0.8em;
    color: #a0a0a0;
}

.match-number,
.school-name {
    color: #a0a0a0;
}

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

/* teams */

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.team-info {
    display: flex;
    gap: 1em;
    align-items: center;
    width: 100%;
}

.team-info .name {
    position: relative;
}

.school-logo {
    display: none;
}

.seed {
    color: #a0a0a0;
    font-size: 0.8em;
}

.score {
    display: flex;
    gap: 0.5em;
}

.score span {
    font-size: 0.9em;
}

.winner .school {
    font-weight: bold;
}

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

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

/* draws */
.draw-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

[data-draw="Final 4"] {
    justify-content: center;
}

/* rounds */

.rounds {
    display: flex;
}

.round {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5em;
}

.r1 .post-bracket,
.r5 .post-bracket {
    display: none;
}

.round-name {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-direction: column;
    padding: 10px;
}

.round-name-text {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.round-date {
    font-size: 0.8em;
    color: #a0a0a0;
}

.matchups,
.pod {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    width: 100%;
    gap: 2em;
}

.school a {
    color: #00205c;
    text-decoration: none;
}

.live {
    color: #d00000;
}

.pod-wrapper {
    display: flex;
    height: 100%;
}

.matchup-wrapper {
    display: flex;
}

.post-bracket {
    height: 50%;
    min-width: 8px;
    align-self: center;
    border: 2px solid rgb(205, 205, 205);
    border-left: unset;
    border-radius: 0 6px 6px 0;
}

.pre-bracket {
    min-width: 8px;
    height: 2px;
    align-self: center;
    background-color: rgb(205, 205, 205);
}

.round:last-child .post-bracket,
.round:first-child .pre-bracket {
    display: none;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #000;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: white;
    padding: 7px;
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid rgba(54, 56, 61, 0.15);
    cursor: pointer;
}

.btn:hover {
    background-color: #f0f0f0;
}

.btn:disabled {
    background-color: #1b7ea6;
    color: #fff;
}

.full-label {
    display: inline;
}

.abbr-label {
    display: none;
}

.bottom-button {
    display: none;
}

.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    text-align: center;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.draw-brackets {
    width: 100%;
}

.draw-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1401px) {
[data-draw="Contenders"] .rounds {
        flex-direction: row-reverse;
    }

    [data-draw="Contenders"] .post-bracket {
        order: 1;
        height: 50%;
        min-width: 8px;
        align-self: center;
        border: 2px solid rgb(205, 205, 205);
        border-right: unset;
        border-radius: 6px 0 0 6px;
    }

    [data-draw="Contenders"] .pod,
    [data-draw="Contenders"] .pre-bracket {
        order: 2;
    }
}

@media (max-width: 1400px) {
    [data-draw="Final 4"] {
        order: 3;
        width: 100%;
        flex-grow: 1;
    }

    [data-draw="Winners"] {
        order: 2;
    }

    [data-draw="Contenders"] {
        order: 3;
    }

    .main-bracket {
        flex-wrap: wrap;
        gap: 3em;
    }
}

/* Media query for screens below 1000px */
@media (max-width: 1200px) {
    .full-label {
        display: none;
    }

    .abbr-label {
        display: inline;
    }
}

@media (max-width: 1000px) {
    [data-draw="Contenders"] {
        width: 100%;
        flex-grow: 1;
    }
}

@media (max-width: 900px) {
    body {
        font-size: 16px;
    }

    .rounds,
    .main-bracket,
    [data-draw="Contenders"] .rounds {
        flex-direction: column;
        gap: 2em;
    }

    .post-bracket,
    .pre-bracket {
        display: none;
    }

    .position-label {
        font-size: 1.5em;
    }

    .draw-label {
        font-size: 1.2em;
    }

    .matchups,
    .pod {
        gap: 1em;
    }

    .team-info {
        gap: 0.5em;
    }

    .school-logo {
        display: block;
    }

    .team {
        gap: 0.5em;
    }

    .tournament-info span {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .tournament-info span {
        font-size: 1.5em;
    }

    .class-label,
    .tournament-label {
        display: none;
    }

    .position-group {
        gap: 0.25em;
    }
}