body {
    font-family: Roboto, serif;
    font-size:16px;
    padding: 10px 40px;
    color: navy;
    background-color: #F3F3F3;
}

div#container-players {
    float: left;
    width: 70%;

    & table#players {
        border-spacing: 2px 0;
        width: 100%;

        & tr:nth-child(even) {
            background-color: #D6E8FE;
        }

        & tr:nth-child(odd) {
            background-color: #EBF3FF;
        }

        & tr {
            &.wanted {
                background-color: #CDCDCD;
            }

            &.out {
                background-color: #FFB09C;
            }

            &.owned {
                background-color: #FFFD8D;
            }
        }

        & th {
            color: white;
            background-color: navy;
            padding: 10px;
            margin: 0;
            border: 0;

            & span {
                font-size: 20px;
            }

            &.order-players {
                cursor: pointer;

                &.sel {
                    background-color: #6287AF;
                }

                &:hover {
                    background-color: #6287AF;
                }
            }
        }

        & td {
            padding: 10px;

            &:first-child {
                font-weight: bold;
            }

            &:first-child + td {
                font-style: italic;
            }

            & span {
                border-radius: 50%;
                color: white;
                font-weight: bold;
                width: 30px;
                height: 30px;
                line-height: 30px;
                display: inline-block;
                text-align: center;
                margin-right: 5px;

                &.por, &.p {
                    background-color: #EF9E24;
                }

                &.dd, &.ds, &.dc, &.b, &.d {
                    background-color: #479B14;
                }

                &.e, &.m, &.c {
                    background-color: #256EDB;
                }

                &.w, &.t {
                    background-color: #B401A5;
                }

                &.a, &.pc {
                    background-color: #B81621;
                }
            }

            &.status {
                cursor: pointer;
                text-align: center;

                & input {
                    display: none;

                    + label {
                        font-size: 20px;
                        -webkit-text-stroke: 1px navy;
                        color: white;
                        cursor: pointer;
                        pointer-events: none;
                    }

                    &:checked + label {
                        color: navy;
                    }
                }

                &:hover {
                    background-color: #FFF;
                }
            }
        }
    }

    & table#filters {
        border-spacing: 15px 0;
        font-weight: bold;
        margin: 0 0 20px -14px;
        width: calc(100% + 25px);

        & td {
            width: 38px;
            height: 38px;
            text-align: center;
            color: white;
            border-radius: 50%;

            &.por {
                background-color: #EF9E24;
                border: 2px solid #EF9E24;
            }

            &.dif {
                background-color: #479B14;
                border: 2px solid #479B14;
            }

            &.cen {
                background-color: #256EDB;
                border: 2px solid #256EDB;
            }

            &.wet {
                background-color: #B401A5;
                border: 2px solid #B401A5;
            }

            &.att {
                background-color: #B81621;
                border: 2px solid #B81621;
            }

            &.empty {
                background-color: transparent;
                border: 2px solid transparent;
                border-radius: unset;
                pointer-events: unset;
                &:hover {
                    border: 2px solid transparent;
                    cursor: auto;
                }
            }

            &.free {
                background-color: #D6E8FE;
                border: 2px solid #D6E8FE;
                color: navy;
                font-size: 20px;
            }

            &.wanted {
                background-color: #CDCDCD;
                border: 2px solid #CDCDCD;
                color: navy;
                font-size: 20px;
            }

            &.out {
                background-color: #FFB09C;
                border: 2px solid #FFB09C;
                color: navy;
                font-size: 20px;
            }

            &.owned {
                background-color: #FFFD8D;
                border: 2px solid #FFFD8D;
                color: navy;
                font-size: 20px;
            }

            &:hover {
                border: 2px solid navy;
                cursor: pointer;
            }

            & label {
                cursor: pointer;
            }

            &.sel {
                border: 2px solid navy;
            }
        }

        & td.filter-separator {
            background-color: navy;
            height: 100%;
            width: 1px;
            border-radius: unset;
            pointer-events: none;
        }

        & td#filter-team {
            text-align: left;

            & select {
                font-family: Roboto, serif;
                font-size: 20px;
                color: navy;
                width: 100%;
                height: 50px;
                cursor: pointer;
                border-color: navy;
                padding: 10px;
                background-color: #EBF3FF;
            }

            &:hover {
                border: none;
                cursor: auto;
            }
        }

        & td#filter-player {
            text-align: left;

            & input {
                font-family: Roboto, serif;
                font-size: 20px;
                color: navy;
                width: 100%;
                height: 28px;
                border: 1px solid navy;
                padding: 10px;
                background-color: #EBF3FF;
            }

            &:hover {
                border: none;
            }
        }

        & td.filter-button {
            & button {
                font-size: 20px;
                color: white;
                width: 100%;
                height: 100%;
                border: 1px solid navy;
                background-color: navy;
                cursor: pointer;

                &:hover {
                    background-color: #6287AF;
                }
            }

            &:hover {
                border: none;
            }
        }

        & td.filter-separator2 {
            width: 1px;
            height: 20px;
            border-radius: unset;
            pointer-events: none;
        }

        & td.filter-viewed {
            width: 529px;
            & label {
                padding: 0 10px;
                display: block;
                background-color: navy;
                color: white;
                line-height: 42px;
                height: 42px;
                text-align: right;
            }
            border-radius: unset;
            pointer-events: none;
        }

        @media screen and (max-width: 1920px) {
            & td.filter-viewed {
                width: 81px;
            }
        }

        & td#last-update {
            pointer-events: none;
            color: navy;
            text-align: right;
            font-style: italic;
            vertical-align: bottom;

            &:hover {
                border: none;
            }
        }
    }
}

div#container-summary {
    float: left;
    width: 27%;
    margin-left: 3%;
    & table#owned {
        width: 100%;
        border-spacing: 2px 0;
        color: white;
        & tr {
            &:first-child {
                background-color: #FFFD8D;
                color: navy;
                font-weight: bold;
                font-size: 20px;

                & td {
                    text-align: center !important;
                }
            }

            &:nth-child(2) {
                background-color: #EF9E24;
            }

            &:nth-child(3) {
                background-color: #479B14;
            }

            &:nth-child(4) {
                background-color: #256EDB;
            }

            &:nth-child(5) {
                background-color: #B401A5;
            }

            &:nth-last-child(0n + 2) {
                background-color: #B81621;
            }

            &:last-child {
                background-color: navy;

                & td:first-child {
                    text-align: right;
                    font-weight: normal !important;
                }

                & td:last-child {
                    font-weight: bold;
                }
            }

            & td {
                padding: 10px;
                width: 16.5%;

                &:nth-child(odd) {
                    text-align: right;
                    font-weight: bold;
                }
            }
        }
    }

    & table#wanted {
        width: 100%;
        border-spacing: 2px 0;
        color: white;
        margin-top: 40px;
        & tr {
            &:first-child {
                background-color: #CDCDCD;
                color: navy;
                font-weight: bold;
                font-size: 20px;

                & td {
                    text-align: center !important;
                }
            }

            &:nth-child(2) {
                background-color: #EF9E24;
            }

            &:nth-child(3) {
                background-color: #479B14;
            }

            &:nth-child(4) {
                background-color: #256EDB;
            }

            &:nth-child(5) {
                background-color: #B401A5;
            }

            &:last-child {
                background-color: #B81621;
            }

            & td {
                padding: 10px;
                width: 16.5%;

                &:nth-child(odd) {
                    text-align: right;
                    font-weight: bold;
                }
            }
        }
    }
}

& table#login {
    & td.login-input {
        & label {
            display: inline-block;
        }

        & input {
            font-family: Roboto, serif;
            font-size: 20px;
            color: navy;
            width: 95%;
            height: 28px;
            border: 1px solid navy;
            padding: 10px;
            background-color: #EBF3FF;
        }
    }

    & td.login-button {
        & button {
            font-size: 20px;
            color: white;
            width: 50px;
            height: 50px;
            border: 1px solid navy;
            background-color: navy;
            cursor: pointer;

            &:hover {
                background-color: #6287AF;
            }
        }
    }

    & td.login-separator  {
        width: 50px;
        height: 30px;
    }
}

div#error {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}

& div.flot-clear {
    clear: both;
}