/* Global styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

p {
    margin: 10px 0;
}


/* Alerts & notifications */

.alert {
    position: relative;
    padding: 12px 40px 12px 16px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
}

.alert.info, .alert.info.alert-dismissible {
    background-color: #e8f4fd !important;
    border-color: #b6e0fe !important;
    color: #084298 !important;
}

.alert.success {
    background-color: #e9f7ef;
    border-color: #c3e6cb;
    color: #0f5132;
}

.alert.warning {
    background-color: #fff4e5;
    border-color: #ffeeba;
    color: #664d03;
}

.alert.error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert .close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.alert .close:hover {
    opacity: 1;
}


/* Header & navigations */

header {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: 100px;
    background: #FFF;
    color: white;
    align-items: flex-start;
    padding: 0;
    justify-content: space-between;
    z-index: 1000;
}

#nav-container {
    display: inline-flex;
    flex-direction: row;
    padding: 20px;
    justify-content: flex-start;
    max-width: 1140px !important;
    margin: 0 auto;
    width: 100%;
}

/* Top menu */
#top_background {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
}

#top_container {
    width: 100%;
    background-color: #f7f7f7;
    display: inline-flex;
    justify-content: flex-start;
    margin: 0 auto;
}

#top_wrapper {
    background-color: #b31515;
    color: white;
}

#top_wrapper ul {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

#top_wrapper ul li {
    padding: 5px 10px;
    border-right: 1px solid white;
}

#top_wrapper ul li:last-child {
    border-right: none;
}


#top_wrapper a {
    color: white;
    text-decoration: none;
}

.top_menu {
    float: left;
    background: #b31515;
    width: 700px;
    padding-top: 15px;
    padding-bottom: 13px;
    padding-left: 12px;
    position: relative;
    z-index: 10;
}

.top_corner:last-child:after {
    content: '';
    border-left: 27px solid transparent;
    border-bottom: 54px solid #f7f7f7;
    position: absolute;
    right: 0;
    top: 0;
    background: #b31515;
}


img.logo {
    max-width: 180px;
    margin: 15px auto 15px 0px;
    height: auto;
    border: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}
nav {
    display: flex;
    align-items: center;
    margin: 0 20px 0 150px;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #b31515;
    text-decoration: none;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: auto;
}

.content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 100px 0px 20px;
}

#contact-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px 40px;
}

#trip-switcher {
    padding: 30px 0px;
}

#home_text {
    padding: 60px 0;
}

.rozvrh-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*max-width: 1140px;*/
    margin: 0 auto;
    padding: 0px 20px 0 20px;
    margin-top: 0px;
    background-color: transparent;
}


main {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0px 40px 0 40px;
    margin-top: 80px;
    background-color: transparent;
}

main h1 {
    margin: 30px 0;
    color: #b31515;
    text-align: center;
}

footer {
    background-color: #393737;
    color: #afafaf;
    padding: 10px 80px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid gray;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
}

.footer-right a {
    color: #afafaf;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}


footer a {
    color: #afafaf;
}

footer a:hover {
    color: #fff;
}

/* Homepage */
#banner {
    position: relative;
    border-radius: 0;
    background-image: url(/assets/img/homepage-banner.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1.0;
    min-height: 600px;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    overflow: hidden;
}

#banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#banner .banner-container {
    max-width: 1140px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2;
}

#banner h1 {
    font-size: 2.5rem;
    color: #FFF;
    margin-bottom: 10px;
    opacity: 0;
    transform: scale(0.5);
    animation: zoomIn 1s ease-out forwards 0.3s;
}

#banner p {
    font-size: 1.2rem;
    color: #FFF;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.5);
    animation: zoomIn 1s ease-out forwards 0.6s;
}

#banner a.cta-button {
    display: inline-block;
    text-align: center;
    line-height: 45px;
    font-weight: 700;
    padding: 5px 20px;
    background: transparent;
    border: 2px solid #b31515;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    opacity: 0;
    transform: translateX(100%);
    animation: slideInRight 1s ease-out forwards 1s;
}

#banner a.cta-button:hover {
    background: #b31515;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


#content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

.content-box {
    flex: 1 1 calc(33.333% - 20px);
    background: #eaeaea;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Hover efekt na boxy */
.content-box:hover {
    transform: translateY(-5px);
}



#content {
    background: white; border: 1px solid #eff4f7; border-radius: 0 0 12px 12px; padding: 10px 4%; overflow: hidden;
}

/* Contacts */

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 1140px;
}

.contact-box {
    width: calc(33.333% - 20px);
    min-height: 250px;
    align-content: center;
    text-align: left;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: normal;
    transition: transform 0.2s;
    border: 1px dashed #696868;
    padding: 25px;
    margin-bottom: 20px;
    color: white;
}

.contact-box:hover {
    transform: scale(1.05);
    border: 1px dashed #b31515;
}

.contact-box h4 {
    font-size: 20px;
    color: white;
}

.contact-box p {
    color: white;
}

#modal-zpozdenka {
    cursor: pointer !important;
}

#close-modal-zpozdenka {
    font-size: 40px !important;
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: black;
        font-size: 48px;
    }
    #nav-container {
        justify-content: space-between;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 0;
        width: 100%;
        background: #444;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        text-align: center;
        padding: 20px 0;
    }

    nav ul li a {
        display: block;
    }

    nav.active {
        display: flex;
        background-color: #ededeb;
        margin-top: 30px;
    }

    #banner h1 {
        font-size: 2rem;
    }

    #content {
        flex-direction: column;
        gap: 10px;
    }

    .content-box {
        flex-basis: 100%;
    }

    .contact-box {
        width: calc(50% - 20px);
    }
}

