
/* Alap stílusok */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #008006;
    color: white;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#logo {
    height: 50px;
    margin-right: 15px;
}

h1 {
    font-size: 26px;
}

.breadcrumb {
    font-size: 14px;
    margin-top: 10px;
    color: white;
}

.breadcrumb a {
    color: white;
    text-decoration: underline;
    margin: 0 5px;
}

.breadcrumb a:hover {
    text-decoration: none;
}

.navigation-links {
    margin-top: 10px;
}

.nav-button {
    background-color: white;
    color: #008006;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: #75ff7c;
    color: #006005;
}

.search-filter {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.search-filter input, .search-filter select {
    padding: 10px;
    font-size: 16px;
    margin: 5px;
    width: 250px;
    border: 2px solid #008006;
    border-radius: 5px;
}

#stops-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stop-entry {
    width: 90%;
    max-width: 800px;
    padding: 15px;
    margin: 10px;
    background: white;
    border: 2px solid #008006;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.stop-entry:hover {
    background-color: #e7ffe7;
}

.footer {
    background-color: #008006;
    color: white;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

/* Modal animációk */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border: 2px solid #008006;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal-button {
    background-color: #008006;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #006005;
}

/* Mobil nézet */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .search-filter {
        flex-direction: column;
        align-items: center;
    }

    .search-filter input,
    .search-filter select {
        width: 90%;
    }

    .stop-entry {
        width: 95%;
    }

    .modal-content {
        width: 95%;
    }

    .breadcrumb {
        font-size: 12px;
        text-align: center;
    }

    .navigation-links {
        text-align: center;
    }

    .nav-button {
        width: 80%;
        margin: 8px auto;
        display: block;
    }

    header {
        padding: 20px;
    }

    #logo {
        height: 40px;
    }

    h1 {
        font-size: 22px;
    }
}
