#tabella-container {
    margin-top: 16px;
}

button {
    font-family: Titillium Web;
}

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: .7vw;
    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;
}

hr {
    margin-top: 19px;
}

a {
    color: orange;
}

a.rossosott {
    color: red;
    text-decoration: underline;
}

h2 {
    margin-bottom: 12px;
}

h2.noreduction {
    margin-bottom: 16px;
}

nav#corsie-nav ul {
    justify-content: center;
}

nav#corsie-nav ul li a,
.styled {
    background-color: rgb(204, 132, 0);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    padding: 0px 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

nav#corsie-nav ul li a:hover,
.styled:hover {
    background-color: rgb(184, 119, 0);
}

nav#corsie-nav ul li a:active,
.styled:active {
    background-color: rgb(165, 107, 0);
}

#quick-container button.styled {
    display: inline-block;
    margin: 16px 0;
}

#quick-stops-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-wrap: anywhere;
}

.editor-nav-button {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.editor-nav-button:hover {
    text-decoration: underline;
}

nav#corsie-nav ul li {
    margin-left: 8px;
    margin-right: 7px;
}

.assign {
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid #5e5e5e;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    justify-content: center;
    margin-bottom: 12px;
    transition: border-color 0.1s ease;
}

.assign:hover,
.assign:active {
    border-color: rgb(204, 132, 0);
}

#search-bar,
#stop-code-bar {
    background-color: transparent;
    color: white;
    border: 2px #5e5e5e solid;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    width: 280px;
    margin: 0;
    transition: border-color 0.3s;
}

#search-bar:focus,
#stop-code-bar:focus {
    outline: none;
    border-color: rgb(204, 132, 0);
}

.search-result {
    border: 2px solid #5e5e5e;
    border-radius: 8px;
    width: 20vw;
    margin: auto;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 10px;
    cursor: pointer;
    display: inline-block;
    transition: border-color 0.1s;
}

.search-result:hover, .search-result:active {
    border-color: rgb(204, 132, 0);
}

.search-result.desc h3 {
    margin-top: 16px;
    margin-bottom: 12px;
}

.search-result.desc p {
    margin-top: 0px;
    font-size: 15px;
}

.quick-stop-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    margin-bottom: 12px;
}

.search-result.selected {
    background-color: rgb(204, 132, 0);
}

.search-result.selected .styled {
    background-color: rgb(255, 196, 0);
    color: #282828;
}

#current-container .search-result:not(.editable-stop) {
    cursor: default;
}

div#results-container {
    margin-top: 16px;
}

img {
    height: 300px;
}

/*Notizie cercaorario*/

#notizie-container {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    #quick-stops-container {
        flex-direction: column;
    }
    .search-result {
        display: block;
        width: unset;
    }

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

    nav#corsie-nav ul li a {
        font-size: 95%;
        margin: 0;
    }

    table {
        width: 100%;
    }

    #search-bar {
        width: 80%;
    }

    #stop-code-bar {
        width: 80%;
    }

    hr {
        margin-bottom: 19px;
    }

    img {
        width: 98%;
        height: auto;
    }

    #notizie-container {
        display: block;
    }
}

@media (max-width: 512px) {
    th,
    td {
        font-size: 3.5vw;
    }

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

    table {
        margin-top: 10px;
    }
}

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

footer div p {
    margin-top: 0;
}

.search-result > div {
    margin-left: 10px;
    margin-right: 10px;
}

.bold {
    font-weight: bold;
}

#current-container {
    margin-bottom: 16px;
}
