.spoje h2,
.spoje h3 {
    text-align: center;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spoje h1.spoje-title-center {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.spoje h2.departure-text {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

#odjezdy-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #ffeca1;
    border-radius: 13px;
	position: relative;
    z-index: 1;
}

.header {
    align-self: center;
    display: flex;
    flex-direction: row;
    width: 80%;
    justify-content: space-between;
    padding: 0 10px;
    background: black;
    color: white;
    font-weight: 600;
    vertical-align: middle;
    margin-bottom: 3%;
}

#station-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    width: 80%;
    color: #000000;
    text-align: center;
}

.odjezd {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 3%;
    gap: 5px;
}

.odjezd .linka {
    font-size: 1.3em;
    font-weight: 700;
    color: #f7c601;
    background: black;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-left: -10px;
}

.odjezd-info {
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    height: 30px;
    flex-grow: 1;
    min-width: 0;
}

.odjezd .smer {
    margin-right: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-size: 0.95em;
}

.odjezd .odjezd-cas {
    font-weight: bold;
    color: black;
    white-space: nowrap;
    font-size: 0.95em;
}

.delay-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 36px;
    box-sizing: border-box;
    padding: 0 2px;
    font-weight: 800;
    font-size: 0.8em;
    color: white;
    flex-shrink: 0;
}

.delay-red {
    background-color: #EE0000;
}

.delay-green {
    background-color: #61CE70;
}

.button-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.button-container button {
    width: 150px;
    height: 36px !important;
    border-radius: 20px !important;
    padding: 2px !important;
    font-weight: 700 !important;
    border: none !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#back-button:before {
    content: '';
    display: inline-block;
    margin-right: 20px;
    width: 20px;
    height: 20px;
    background-image: url('../icons/left.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#ticket-button:after {
    content: '';
    display: inline-block;
    margin-left: 20px;
    width: 20px;
    height: 20px;
    background-image: url('../icons/right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
