* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #C7CDFF;
    font-family: Roboto;
}

.sidepad {
    padding-right: 10px;
}

.sidepad-minor {
    padding-right: 5px;
}

.train-head {
    font-size: 120%;
    padding-bottom: 0.2em;
}

.train-timings {
    padding-bottom: 0.5em;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    width: 100%;
    background-color: #D8CFAF;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    gap: 10px;
}

.preserve-linebreaks {
    white-space: pre-line;
}

.arrow-container {
    display: flex;
    justify-content: center;
    align-self: stretch;
    margin-top: 30px;
}

.arrow {
    align-self: flex-end;
    animation: bounce 2s infinite;
    color: #444444;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

.container {
    background-color: #C7CDFF;
}

.titlebox {
    margin-top: 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contents-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.1s ease;
}

.content-item {
    font-size: 1.75em;
    transition: font-size 0.5s ease;
    cursor: pointer;
}

.italic {
    font-style: italic;
}

.content-item:hover {
    font-size: 2.75em;
    font-weight: 900;
}

.smaller {
    font-size: 2.25em;
    font-weight: 700;
}

.title {
    color: #444444;
    font-family: Impact, sans-serif;
    font-weight: normal;
    font-size: 10vw;
    margin: 0% 10% 0.15em 10%;
    text-transform: uppercase;
    line-height: 0.9;
    align-items: center;
}

.flag-krakow {
    background-image: linear-gradient(to bottom, #FFFFFF 50%, #FF4C4C 50%);
}

.flag-vienna {
    background-image: linear-gradient(to bottom, #CD2A3E 33%, #FFF 33%, #fff 66%, #CD2A3E 66%);
}

.flag-bratislava {
    background-image: linear-gradient(to bottom, #FFFFFF 33%, #0B4EA2 33%, #0B4EA2 66%, #FF1F1F 66%);
}


.flag-budapest {
    background-image: linear-gradient(to bottom, #CD2A3E 33%, #FFFFFF 33%, #FFFFFF 66%, #436F4D 66%);
}


.flag-zagreb {
    background-image: linear-gradient(to bottom, #FF1F1F 33%, #FFFFFF 33%, #FFFFFF 66%, #1A237E 66%);
}


.flag-bled {
    background-image: linear-gradient(to bottom, #FFFFFF 33%, #0053A0 33%, #0053A0 66%, #ED2939 66%);
}


.flag-rome,
.flag-palermo {
    background-image: linear-gradient(to right, #009246 33%, #FFFFFF 33%, #FFFFFF 66%, #CE2B37 66%);
}

.flag {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    display: inline-block;
    -webkit-text-fill-color: transparent;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-size: 7em;
}


.subtitle {

    font-family: Roboto, sans-serif;
    font-weight: 500;
    color: #3B408B;
    margin-bottom: 0.15em;

}

.details {
    font-size: 3em;
    font-family: Impact, sans-serif;
    font-weight: normal;
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0.5em 0 0 0.5em;
    color: #5A9179;
}

.detail-text {
    font-size: 2em;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: normal;
    color: #5A9179;

}

.contents {
    position: absolute;
    top: 110vh;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 3em;
    }

    .subtitle,
    .details {
        font-size: 1.3em;
    }

}

.small {
    font-size: 1.75em;
}

.smallist {
    font-size: 1.25em;
}


.status-flow {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    -webkit-transition: opacity 0.25s ease-in-out;
    -moz-transition: opacity 0.25s ease-in-out;
}

.status-line {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-2px);
    width: 4px;
    background-color: #000;
    z-index: 5;
}

.status-point {
    position: relative;
    z-index: 10;
    display: block;
    width: 15px;
    height: 15px;
    margin: 20px 0;
    border-radius: 50%;
    border: 2px solid #000;
    background: #D8CFAF;
    transition: all 0.3s;
}

.status-point.active {
    background: #3B408B;
}

.status-point.passed {
    background: #3B408B;
}

.city-about {
    font-size: 1.25em;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    color: #111;
    width: 75%;
    letter-spacing: -1px;
}

.city-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 75%;
}

.card {
    background-color: #d2f6e7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 5px;
    transition: transform 0.2s;
    will-change: transform;
    flex-grow: 1;
}

.card:hover {
    transform: translateY(-5px);
}


@media (max-width: 768px) {
    .city-container {
        grid-template-columns: 1fr;
    }
}


.card h2 {
    color: #333;
    margin-bottom: 0.5em;
}

.card p,
.card ul {
    color: #222;
    line-height: 1.6;
}

.card ul {
    padding-left: 20px;
}

.day-about {
    font-size: 1.1em;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    color: #111;
    width: 75%;
    letter-spacing: -1px;
    text-align: left;
    margin: 0 auto;
}

.restaurants-section {
    margin-top: 30px;
    width: 70%;
}

.restaurants-section h2 {
    margin-bottom: 1em;
    text-align: center;
}

.restaurants-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}



.restaurant {
    flex: 1;
    min-width: 250px;
    max-width: calc(50% - 20px);
    background: #d2f6e7;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.restaurant h3 {
    font-size: 1.25em;
    margin-bottom: 0.5em;
}

.restaurant p {
    font-size: 0.9em;
    margin-bottom: 0.75em;
}

.tags {
    margin-bottom: 1em;
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
    justify-content: center;
}

.tag {
    display: inline-block;
    background: #3B408B;
    color: #FFF;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    cursor: default;
}

.restaurant a {
    text-decoration: none;
    color: #0077cc;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.restaurant a:hover {
    color: #005fa3;
}


@media (max-width: 768px) {
    .restaurant {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.day-plans {
    margin-top: 30px;
}

.day-plan {
    margin: 20px 0;
}

.cities-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 1.75em;
    font-family: Impact, sans-serif;
    font-weight: bold;
    transition: font-size 0.5s ease;
    cursor: pointer;
    color: #444;
    align-self: flex-start;
    padding-bottom: 10px;
}

.contents-container:hover .cities-label {
    font-size: 2.75em;
}

.homeimg {
    margin: 20px 0;
    display: none;

}

@media (max-width: 768px) {
    .homeimg {
        display: block;
        height: 30vh;
    }
}

.go-up-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: rgba(59, 64, 139, 0.75);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.25s ease-in-out;
    -webkit-transition: opacity 0.25s ease-in-out;
    -moz-transition: opacity 0.25s ease-in-out;
    opacity: 0;
}

.go-up-button:hover {
    cursor: pointer;
}

.icon-green {
    color: green;
}

.icon-blue {
    color: darkblue;
}