:root {
    --main-red: #ad141a;
    --white: #ffffff;
    --font: 'Prompt', sans-serif;
}

body {
    font-family: 'Century Gothic', sans-serif;
    color: black;
    margin: 0;
    padding: 0;
    background-color: #F9F5EB;
    background-image: none;
    position: relative;
}

html, body {
    height: 100%;
}

main {
    padding: 0;
    flex: 1;
}

.page-container {
    position: relative;
    flex-direction: column;
    display: flex;
    min-height: 100%;
    padding: 0;
    text-align: center;
    z-index: 1;
}

.logo-wrapper {
    flex: 0 0 auto;
    max-width: 200px;
    margin: 0;
    padding-left: 200px;
}

.logo-title {
    flex: auto;
    text-align: center;
    flex-grow: 1;
}

.train-logo {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
}

.text-content {
    flex: 1;
    padding-left: 0;
}

.color-stripe {
    position: absolute;
    z-index: 900;
    background-color: var(--main-red);
}

.color-stripe-top {
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
}

.color-stripe-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
}

.color-stripe-left {
    top: 0;
    bottom: 0;
    left: 0;
    width: 70px;
}

.color-stripe-right {
    top: 0;
    bottom: 0;
    right: 0;
    width: 70px;
}

.border-line {
    position: absolute;
    z-index: 1000;
    background-color: white;
}

.border-top-solid {
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
}

.border-top-dashed {
    top: 50px;
    left: 50px;
    right: 50px;
    height: 3px;
    border-top: 3px dashed white;
    background: none;
}

.border-bottom-dashed {
    bottom: 50px;
    left: 50px;
    right: 50px;
    height: 3px;
    border-bottom: 3px dashed white;
    background: none;
}

.border-bottom-solid {
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
}

.border-left-solid {
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 3px;
}

.border-left-dashed {
    top: 50px;
    bottom: 50px;
    left: 50px;
    width: 3px;
    border-left: 3px dashed white;
    background: none;
}

.border-right-dashed {
    top: 50px;
    bottom: 50px;
    right: 50px;
    width: 3px;
    border-right: 3px dashed white;
    background: none;
}

.border-right-solid {
    top: 20px;
    bottom: 20px;
    right: 20px;
    width: 3px;
}

.border-top,
.border-bottom,
.border-left,
.border-right {
    position: absolute;
    z-index: 0;
}

.header-container {
    background-color: #D0C0A4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1300;
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-right: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    text-align: right;
    padding-right: 300px;
    padding-top: 25px;
    padding-bottom: 25px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: red;
}

.full-width-image {
    display: block;
    width: calc(100vw - 140px);
    margin-left: 70px;
    margin-right: 70px;
    margin-bottom: 30px;
    object-fit: cover;
    padding-top: 80px;
}

.first-column {
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

footer {
    text-align: center;
    padding-top: 10px;
    background-color: #D0C0A4;
    padding-bottom: 60px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    align-items: center;
    white-space: normal;
    word-wrap: break-word;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20vw;
    padding-right: 20vw;
    width: 100%;
}

.footer-row p, .footer-row a {
    margin: 0 10px;
    text-decoration: none;
    color: black;
}

.footer-row a:hover {
    color: red;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    padding-bottom: 20px;
    padding-top: 20px;
}

.social-links a {
    margin-right: 10px;
}

.social-links {
    display: flex;
    align-items: center;
}

.home-h1,
.home-h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 200px;
}

.home-h2-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.home-combined-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: space-between;
    padding-left: 200px;
    padding-right: 200px;
}

.home-text-column,
.home-img-column {
    flex: 1 1 45%;
    min-width: 300px;
    box-sizing: border-box;
}

.home-second-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    word-wrap: break-word;
}

.home-first-section {
    text-align: left;
    padding-left: 200px;
    padding-right: 200px;
    word-wrap: break-word;
}

.crew-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}


.form-group {
    margin-bottom: 1.5vw;
}

.form-row {
    display: flex;
    gap: 2vw;
    margin-bottom: 1.5vw;
}

.form-row .form-group.half {
    flex: 1;
}

input, textarea, select {
    width: 100%;
    padding: 0.8vw;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: #606060;
    color: white;
    padding: 0.8vw 1.5vw;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #505050;
    color: white;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-form {
    padding-left: 20vw;
    padding-right: 20vw;
    padding-top: 150px;
}

.form-group.half {
    padding-left: 0.5vw;
    padding-right: 0.5vw;
}

.form-head {
    text-align: left;
}

.calender {
    text-align: center;
    text-decoration: underline;
}

.events {
    padding-top: 100px;
    align-items: center;
    padding-bottom: 300px;
}

.events-app {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    padding-top: 30px;
    padding-right: 180px;
    justify-content: center;
}

.event-date {
    min-width: 120px;
    font-size: 2rem;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.eu-div {
    display: flex;
    justify-content: center;
    padding: 0 70px 1vw 70px; /* padding shodné s hranami */
    box-sizing: border-box;
}

.eu-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .eu-div {
        padding: 0 35px 10px 35px;
    }

    .home-h1,
    .home-h2 {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 0;
        align-items: center;
    }

    .home-h2-2 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .home-combined-section {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        margin-top: 2rem;
        padding-right: 50px;
        justify-content: center;
        padding-left: 0;
    }

    .home-text-column,
    .home-img-column {
        flex: none;
        width: 100%;
    }

    .home-second-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        word-wrap: break-word;
	padding: 0;
    }

    .home-first-section {
        text-align: center;
        word-wrap: break-word;
        padding: 0;
    }

    .crew-img {
        width: 100%;
        max-width: 500px;
        height: auto;
        border-radius: 12px;
        object-fit: cover;
    }

    .content-wrapper {
        padding: 20px 10px;
	margin: 0 auto;
	box-sizing: border-box;
	max-width: calc(100% - 80px);
    }

    .page-container {
        position: relative;
        flex-direction: column;
        display: flex;
        min-height: 100%;
        padding-left: 35px;
	padding-right: 35px;
        text-align: center;
        z-index: 1;
    }

    .logo-wrapper {
        max-width: 100px;
        margin: 0 auto;
        align-items: center;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .train-logo {
        width: 100%;
        height: auto;
        padding: 0;
        margin: 0;
        align-self: center;
        align-items: center;
    }

    .text-content {
        flex: 1;
        padding-left: 0;
    }

    .color-stripe {
        position: absolute;
        z-index: 900;
        background-color: var(--main-red);
    }

    .color-stripe-top {
        top: 0;
        left: 0;
        right: 0;
        height: 35px;
    }

    .color-stripe-bottom {
        bottom: 0;
        left: 0;
        right: 0;
        height: 35px;
    }

    .color-stripe-left {
        top: 0;
        bottom: 0;
        left: 0;
        width: 35px;
    }

    .color-stripe-right {
        top: 0;
        bottom: 0;
        right: 0;
        width: 35px;
    }

    .border-line {
        position: absolute;
        z-index: 1000;
        background-color: white;
    }

    .border-top-solid {
        top: 10px;
        left: 10px;
        right: 10px;
        height: 1.5px;
    }

    .border-top-dashed {
        top: 25px;
        left: 25px;
        right: 25px;
        height: 1.5px;
        border-top: 1.5px dashed white;
        background: none;
    }

    .border-bottom-dashed {
        bottom: 25px;
        left: 25px;
        right: 25px;
        height: 1.5px;
        border-bottom: 1.5px dashed white;
        background: none;
    }

    .border-bottom-solid {
        bottom: 10px;
        left: 10px;
        right: 10px;
        height: 1.5px;
    }

    .border-left-solid {
        top: 10px;
        bottom: 10px;
        left: 10px;
        width: 1.5px;
    }

    .border-left-dashed {
        top: 25px;
        bottom: 25px;
        left: 25px;
        width: 1.5px;
        border-left: 1.5px dashed white;
        background: none;
    }

    .border-right-dashed {
        top: 25px;
        bottom: 25px;
        right: 25px;
        width: 1.5px;
        border-right: 1.5px dashed white;
        background: none;
    }

    .border-right-solid {
        top: 10px;
        bottom: 10px;
        right: 10px;
        width: 1.5px;
    }

    .border-top,
    .border-bottom,
    .border-left,
    .border-right {
        position: absolute;
        z-index: 0;
    }

    .header-container {
        background-color: #D0C0A4;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1300;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-wrapper {
        text-align: center;
        padding: 0;
        margin: 0;
    }

    nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        margin: 0;
        gap: 15px;
    }

    nav ul li a {
        text-decoration: none;
        color: black;
        font-weight: bold;
        font-size: 1.5rem;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: red;
    }

    .full-width-image {
        display: block;
        width: calc(100vw - 70px);
        margin: 0;
        object-fit: cover;
        padding-top: 40px;
    }

    .first-column {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-left: 0;
        margin-left: 0;
    }

    footer {
        text-align: center;
        padding-top: 10px;
        background-color: #D0C0A4;
        padding-bottom: 30px;
        font-size: 0.7rem;
    }

    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0;
        padding: 0;
        align-items: center;
        white-space: normal;
        word-wrap: break-word;
    }

    .footer-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 20vw;
        padding-right: 20vw;
        width: 100%;
    }

    .footer-row p, .footer-row a {
        margin: 0 10px;
        text-decoration: none;
        color: black;
    }

    .footer-row a:hover {
        color: red;
    }

    .footer-bottom {
        text-align: center;
        font-size: 0.6rem;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .contact-form {
        padding-top: 50px;
    }

    .form-row {
      display: block;
    }

    .form-group.half {
      width: 100%;
      box-sizing: border-box;
    }

    .form-group {
      margin-bottom: 1rem;
    }
}
