@charset "UTF-8";

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

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* general */
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #fff;
    font-size: 18px;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

ul.games-list {
    padding-inline-start: 0;
    list-style-type: none;
    display: flex;
    margin-block: 0;
    flex-wrap: wrap;
}

.game {
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    flex-basis: 25%;
    box-sizing: border-box;
    border-right: 1px solid rgb(205, 205, 205);
    gap: 5px;
}

.game-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: space-evenly;
}

li:last-child.game {
    border-right: none;
}

.class {
    font-size: 0.8em;
    font-weight: bold;
    width: 100%;
    text-align: center;
}

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

        .class a::before {
            content: 'Class ';
        }

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

.teams {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 85%;
}

.top,
.bottom {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9em;
}

.logo {
    display: flex;
    align-items: center;
}

.score {
    margin-left: auto;
}

.inning {
    color: Grey;
    font-size: 0.8em;
    width: 15%;
    text-align: center;
    display: flex;
    flex-direction: column;
}


    .bracket-link::after {
        font-family: 'FontAwesome';
        content: '\f105';
        color: #183345;
    }

.inning .up::before {
    font-family: 'FontAwesome';
    content: '\f0d8';
    color: #d00;
    animation: blink-animation 3s linear infinite;
    -webkit-animation: blink-animation 3s linear infinite;
    -moz-animation: blink-animation 3s linear infinite;
    -o-animation: blink-animation 3s linear infinite;
}

.inning .down::before {
    font-family: 'FontAwesome';
    content: '\f0d7';
    color: #d00;
    animation: blink-animation 3s linear infinite;
    -webkit-animation: blink-animation 3s linear infinite;
    -moz-animation: blink-animation 3s linear infinite;
    -o-animation: blink-animation 3s linear infinite;
}

.inning.Top .down::before,
.inning.Bottom .up::before,
.inning.Final.Top ::before,
.inning.Final.Bottom ::before,
.inning.Pregame ::before
{
    content: none!important;
}

/* Live animation */

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

@media screen and (max-width: 700px) {
    ul.games-list {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .game {
        border-bottom: 1px solid rgb(205, 205, 205);
        border-right: none!important;
        flex-direction: row;
        padding: 15px 5px;
        align-items: center;
        margin-bottom: 0;
    }

    li:last-child.game {
        border-bottom: none;
    }

    .class {
        font-size: 1.2em;
        width: 15%;
    }

    .class a::before {
        content: none;
    }
}