﻿.timetable {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.outbound {
    background-color: #5c935c;
}

.inbound {
    background-color: #367fbb;
}

.specialt {
    background-color: #ffc200;
}


.train-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.icon {
    font-size: 18px;
    margin-right: 5px;
}

.code {
    font-size: 16px;
    font-weight: 400;
}

.service {
    background-color: white;
    padding: 5px;
    border-radius: 3px;
    width: 70px;
    display: flex;
    margin-right: 5px;
    flex: 1 1 45%;
}

.service-code {
    color: black;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
    padding: 5px;
}

.stations {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
    color: white;
}

.station {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name {
    font-weight: 400;
}

.labels, .times, .platforms {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.label {
    color: black;
    text-align: center;
    width: 50px;
    font-weight: 600;
}

.time, .platform {
    background-color: white;
    color: black;
    padding: 3px 6px;
    border-radius: 3px;
    text-align: center;
    width: 50px;
}

.timeblank {
    background-color: white;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    text-align: center;
    width: 50px;
}

    .crossing-spacer {
        width: 12px;
    }

.crossing {
    font-size: 18px;
    color: #ff0000;
    font-weight: 500;
}

/* Container for the percentage boxes */
.percentage-boxes {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

/* Individual item (title + box) */
.percentage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Title styling */
.box-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 5px;
}

/* Style for each box */
.percentage-box {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: black;
}

@media (max-width: 1750px) { /*768*/
    .timetable {
        flex-direction: column; /* Switch to row layout on mobile devices */
    }

    .train-info {
        flex-direction: row; /* Align items in a row on mobile */
        gap: 10px; /* Increase gap between elements */
    }

        .train-info.last {
            margin-top: 15px;
        }

    .service {
        flex: 1;
        width: 100px;
    }

    .stations {
        flex-direction: row; /* Align stations in a row on mobile */
        justify-content: space-between;
    }

    .station {
        align-items: flex-start; /* Align stations content to the start on mobile */
        margin-right: 10px;
    }

    .label {
        align-self: center;
    }

    .labels, .times, .platforms {
        flex-direction: row;
        gap: 2px;
    }

    .label, .name {
        font-size: 10px;
        overflow: clip;
    }

    .label, .time, .platform {
        width: 45px;
    }
}
