/* styles.css */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
}

tr:hover {
    background-color: #f1f1f1;
}

@media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    td:nth-of-type(1):before { content: "Rank"; }
    td:nth-of-type(2):before { content: "Team"; }
    td:nth-of-type(3):before { content: "Points"; }
    td:nth-of-type(4):before { content: "Played"; }
    td:nth-of-type(5):before { content: "Won"; }
    td:nth-of-type(6):before { content: "Drawn"; }
    td:nth-of-type(7):before { content: "Lost"; }
    td:nth-of-type(8):before { content: "GF"; }
    td:nth-of-type(9):before { content: "GA"; }
    td:nth-of-type(10):before { content: "GD"; }
}
