/* Code by : Beeplove Bhandari */
body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #e8e8e8;
    margin: 0;
    padding: 0;

}

.container {
    width: 652px;
    margin: 0 auto;
    background-color: #242832;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

}

.header-logo {
    width: 50px;
    height: auto;
}

h1 {
    margin: 0;
    color: #FFD700;
    font-size: 1.5em;

}

.season-dropdown {
    padding: 5px;
    border: 1px solid #444746;
    background-color: #1f1f1f;
    color: #e8e8e8;
    border-radius: 4px;
}


.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #e8e8e8;
}

th,
td {
    padding: 10px;
    border: 1px solid #444746;
    text-align: left;
}

th {
    background-color: #1f1f1f;
    color: #FFD700;
}

td {
    background-color: #2c2c2c;
}

.bold {
    font-weight: bold;
}

.team-logo {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

.position {
    margin-right: 5px;
}


footer {
    margin-top: 20px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}

.social-media {
    margin-top: 10px;
}

.social-media a {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 24px;
    margin: 0 10px;
}


.live-ticker {
    position: unset;
    bottom: 0;
    left: 0;
    width: 90%;
    color: #FFD700;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    animation: ticker 15s linear infinite;
    background-color: #1e1e1e;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


@media (max-width: 768px) {

    th,
    td {
        font-size: 12px;
        padding: 6px;
    }

    .team-logo {
        width: 20px;
    }

    .header-logo {
        width: 40px;
    }
}




.live-animation {
    font-size: 18px;
    color: #e74c3c;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.header-right {
    justify-content: flex-end;
    align-items: flex-end;
    flex: 1;
    display: flex;
    justify-content: last baseline
}

footer p a {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}


footer a:not(:last-child) {
    margin-right: 10px;
}

footer .designer-link {
    font-size: 14px;
    color: inherit;
}


a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
    color: #FFD700;
}





/* Blue left border for top 4 teams */
.top-4 td:first-child {
    border-left: 5px solid #1E90FF;
}

/* Orange left border for 5th place */
.fifth td:first-child {
    border-left: 5px solid #FFA500;
}

/* Green left border for 6th place */
.sixth td:first-child {
    border-left: 5px solid #008000;
}

/* Red left border for 18th, 19th, and 20th places */
.bottom-three td:first-child {
    border-left: 5px solid #FF0000;
}

td {
    padding: 10px;
    position: relative;
    vertical-align: middle;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}


/* 5th place */
.fifth-place {
    background-color: #FFA500;
    /* Orange */
}

/* 6th place */
.sixth-place {
    background-color: #008000;
    /* Green */
}

/* 18th to 20th places */
.relegation {
    background-color: #FF0000;
    /* Red */
}



@keyframes blink-winner {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}


.winner .points-cell::before {
    content: "\1F3C6";
    position: absolute;
    right: 10px;
    font-size: 1.2em;
    animation: blink-winner 2s infinite;
}

td {
    height: 50px;
    vertical-align: middle;
    padding: 10px;
    position: relative;
}

td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

/* Code by : Beeplove Bhandari */


