/*
 * @file table.css
 * @author David Kvaček (davidkvacek@seznam.cz)
 * @brief Source code of the Firebase web app table page style.
 * @date 2025-02-28
 */

/* TABLE CONTENT */

main .table-content {
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    min-width: fit-content;
    padding: 8px;
    width: 976px;
}

body.light-mode main .table-content {
    background-color: #ffffff;
}

/* ANNOUNCEMENT */

main .announcement {
    background-color: #00141e;
}

main .announcement-icon {
    color: #c8cdcd;
    display: block;
    font-size: 64px;
    margin-bottom: 16px;
    margin-top: 64px;
    opacity: 0.3;
    text-align: center;
}

main .announcement-text {
    color: #c8cdcd;
    margin-bottom: 64px;
    text-align: center;
}

body.light-mode main .announcement {
    background-color: #ffffff;
}

body.light-mode main .announcement-icon, body.light-mode main .announcement-text {
    color: #555e61;
}

/* TABLE HEADER */

main .table-header {
    align-items: center;
    background-color: #01203e;
    border-radius: 8px;
    color: #ffcd00;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: fit-content;
    padding: 4px;
}

main .table-header .table-flag {
    height: 14px;
    margin-right: 8px;
    padding-left: 8px;
    width: auto;
}

main .table-header .table-name, main .table-header .table-season {
    font-size: 14px;
}

main .table-header .table-season {
    margin-right: 8px;
    text-align: right;
}

body.light-mode main .table-header {
    background-color: #eef7ff;
    color: #555e61;
}

/* TABLE PANEL */

main .table-panel {
    background-color: #001e28;
    border-radius: 4px;
    display: flex;
    margin-top: 2px;
    padding: 0 4px;
}

main .table-panel .panel, main .table-row .row {
    align-items: center;
    color: #eeeeee;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    width: 6%;
}

main .table-panel .rank, main .table-row .rank {
    width: 8%;
}

main .table-panel .team, main .table-row .participant {
    align-items: center;
    justify-content: flex-start;
    width: 38%;
}

main .table-panel .score, main .table-row .score {
    width: 24%;
}

main .table-panel .point, main .table-row .point {
    font-weight: bold;
}

body.light-mode main .table-panel {
    background-color: #eeeeee;
}

body.light-mode main .table-panel .panel {
    color: #00141e;
}

/* TABLE ROW */

main .table-row {
    border-bottom: 1px solid hsla(180, 5%, 79%, 0.25);
    display: flex;
    padding: 0 4px;
}

main .table-row .position {
    align-items: center;
    border-radius: 4px;
    display: flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

main .table-row .position.blue {
    background-color: rgb(0, 70, 130);
    color: white;
}

main .table-row .position.turquoise {
    background-color: rgb(30, 168, 236);
    color: white;
}

main .table-row .position.red {
    background-color: rgb(189, 0, 0);
    color: white;
}

main .table-row .team-link {
    align-items: center;
    display: flex;
    height: 28px;
    margin-right: 2px;
    width: 28px;
}

main .table-row .team-link:hover {
    cursor: pointer;
}

main .table-row .team-logo {
    height: auto;
    max-height: 28px;
    object-fit: contain;
    padding: 2px 2px 2px 0;
    width: 28px;
}

main .table-row a.team-name {
    color: #eeeeee;
    text-decoration: none;
}

main .table-row a.team-name:hover {
    cursor: pointer;
    text-decoration: underline;
}

body.light-mode main .table-row {
    border-bottom: 1px solid #eeeeee;
}

body.light-mode main .table-row .row, body.light-mode main .table-row a.team-name {
    color: #001e28;
}

/* TABLE LEGEND */

main .table-legend {
    margin-top: 12px;
    padding: 0 8px;
}

main .legend-row {
    align-items: center;
    color: #eeeeee;
    display: flex;
    font-size: 12px;
    margin-bottom: 4px;
}

main .legend-row .square {
    border-radius: 4px;
    height: 14px;
    margin-right: 8px;
    min-width: 14px;
    width: 14px;
}

main .legend-row .square.blue {
    background-color: rgb(0, 70, 130);
}

main .legend-row .square.turquoise {
    background-color: rgb(30, 168, 236);
}

main .legend-row .square.red {
    background-color: rgb(189, 0, 0);
}

body.light-mode main .legend-row {
    color: #00141e;
}

/* TABLE RULE */

main .table-rule {
    color: #c8cdcd;
    font-size: 12px;
    margin-top: 12px;
    padding: 0 8px;
}

body.light-mode main .table-rule {
    color: #555e61;
}

/* MEDIA QUERY (1024px) */

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

    /* TABLE CONTENT */

    main .table-content {
        margin-left: 8px;
        margin-right: 8px;
        width: auto;
    }
}

/* MEDIA QUERY (375px) */

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

    /* TABLE PANEL */

    main .table-panel #record {
        display: none;
    }

    main .table-panel .team {
        width: 48%;
    }

    main .table-panel .score {
        width: 32%;
    }

    /* TABLE ROW */

    main .table-row #record {
        display: none;
    }

    main .table-row .participant {
        width: 48%;
    }

    main .table-row .score {
        width: 32%;
    }
}
