h3 {
    font-size: 20px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    min-width: 85%;
    max-width: 100%;
    text-align: left;
    margin-top: 18px;
    margin-top: 1rem;
}

th {
    background-color: rgb(204, 132, 0);
}

td.uguale {
    width: 50%;
}

th,
td {
    padding: .6vw;
    padding-top: .6vw;
    padding-bottom: .6vw;
    text-align: left;
}

tr.even {
    background-color: rgb(60, 60, 60);
}

.bus-card-red {
    background-color: rgb(55, 14, 14) !important;
}

tr.even .bus-card-red {
    background-color: rgb(75, 14, 14) !important;
}

.bus-card-yellow {
    background-color: rgb(55, 55, 0) !important;
}

tr.even .bus-card-yellow {
    background-color: rgb(75, 75, 0) !important;
}

.bus-card-green {
    background-color: rgb(14, 55, 14) !important;
}

tr.even .bus-card-green {
    background-color: rgb(14, 75, 14) !important;
}

a {
    color: orange;
}

#filter-container {
    justify-content: space-evenly;
    margin-top: 5px;
    margin-bottom: 5px;
    max-width: 85%;
    margin: auto;
    background-color: #333;
    padding: 20px;
    border-radius: 12px;
}

#filter-container h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

#filter-container select {
    flex: 1;
    width: 100%;
    margin-left: 4px;
    margin-right: 4px;
    outline: none;
    font-size: 16px;
}

#filter-container select:focus {
    border-color: rgb(204, 132, 0);
}

#filter-container button {
    background-color: rgb(204, 132, 0);
    color: white;
    border: none;
    border-radius: 8px;
    margin-right: 15px;
    margin-left: 15px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#filter-container button:hover {
    background-color: rgb(184, 119, 0);
}

#filter-container button:active {
    background-color: rgb(165, 107, 0);
}

div.select-container {
    display: flex;
    justify-content: center;
    row-gap: 8px;
}

select,
input {
    padding: 10px 15px;
    width: auto;
    background-color: #333;
    color: white;
    border-radius: 8px;
    border: 2px solid rgb(100, 100, 100);
}

@media (max-width: 768px) {
    p.scaled {
        font-size: 2vw;
    }

    table {
        margin-top: 10px;
        min-width: 100%;
    }

    div.content-background {
        max-width: 100%;
    }

    th,
    td {
        font-size: 2vw;
    }

    table {
        width: 100%;
        max-width: 100% !important;
    }

    .select-container {
        flex-direction: column;
    }

    #filter-container select {
        margin: 0;
    }

    #filter-container input,
    #filter-container select,
    #filter-container button {
        flex: unset;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
}

@media (max-width: 512px) {
    p.scaled {
        font-size: 3.2vw;
    }

    th,
    td {
        font-size: 3.5vw;
    }

    td:first-child,
    th:first-child {
        padding-left: 5px;
    }

    table {
        margin-top: 0;
    }

    #tabella-container {
        overflow-x: scroll;
    }
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
}