body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1em;
    font-weight: 700;
}


.navbar {
    width: 100%;
    background-color: #1a3a5e;
    padding: 15px 0;

    display: flex;
    justify-content: center;

    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;

}

.inner-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}

.navbar-logo img {
    height: 4vh;
    filter: brightness(0) invert(1);
}

.hamburger-menu {
    display: none;
    background: none;
    width: 40px;
    height: 35px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
    border: none;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}


.navbar-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;

    gap: 25px;
}

.navbar-links li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;

    align-items: center;

}

.navbar-links li a:hover {
    color: #a0c2e6;
}


.dropdown {
    position: relative;


}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;

}

.dropdown-arrow.open {
    transform: rotate(180deg);

}


.navbar-links .dropdown .submenu {
    display: none;

    position: absolute;
    top: 100%;

    left: 0;
    background-color: #1a3a5e;

    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1002;

    list-style: none;
    padding: 0;
    min-width: 150px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);


}

.navbar-links .dropdown .submenu.show {
    display: block;

}

.submenu li a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;

    white-space: nowrap;

    font-size: 0.95rem;

}

.submenu li a:hover {
    background-color: #2c5a8b;

}



@media (max-width: 999px) {
    .inner-content {
        width: 100%;
        padding: 0 20px;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a3a5e;
        z-index: 1000;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        max-height: 0;
        text-align: center;

    }

    .navbar-links.active {
        max-height: none;
        display: flex;
    }

    .navbar-links ul {
        flex-direction: column;
        padding: 10px 0;
        gap: 0;
        width: 100%;
    }

    .navbar-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;

    }

    .navbar-links li:last-child {
        border-bottom: none;
    }

    .navbar-links li a {
        display: block;
        font-size: 1.1rem;
        padding: 12px 20px;

    }


    .navbar-links .dropdown .submenu {
        position: static;

        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);

        margin-left: 0;

        padding: 0;

        display: none;

        border-top: none;

        text-align: center;

    }

    .navbar-links .dropdown .submenu.show {
        display: block;

    }

    .navbar-links .dropdown-arrow {
        display: inline-block;

        margin-left: 10px;

        transition: transform 0.3s ease;
    }

    .navbar-links .dropdown>a {
        display: flex;
        justify-content: center;

        align-items: center;
        flex-direction: row;

        width: 100%;
    }

    .submenu li a {
        padding: 10px 30px;

        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);

        text-align: center;

    }

    .submenu li:last-child a {
        border-bottom: none;

    }
}



.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    box-sizing: border-box;
}


h1,
h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 20px;
}

.search-section {
    margin-bottom: 30px;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#route-select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.schedule-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#schedule-display {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    min-height: 100px;
    overflow-x: auto;
}

#schedule-display table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#schedule-display th,
#schedule-display td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#schedule-display th {
    background-color: #e2f0fb;
    color: #0056b3;
}

#schedule-display tr:nth-child(even) {
    background-color: #f2f2f2;
}


.schedule-header-row {
    background-color: #e2f0fb !important;
    font-weight: bold;
    color: #0056b3;
}

@media (max-width: 530px) {
    /* body{
        font-size: .5em;
    } */

    .navbar-logo img {
        height: 3vh;
    }

    #schedule-display{
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 400px) {
    body{
        font-size: .8em;
    }
    .navbar-logo img {
        height: 2vh;
    }
}

@media (max-width: 340px) {
    body{
        font-size: .7em;
    }
    .navbar-logo img {
        height: 2vh;
    }
}

@media (max-width: 310px) {
    body{
        font-size: .6em;
    }
    .navbar-logo img {
        height: 2vh;
    }
}