﻿body {
    margin: 0;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #ffffff;
    color: #264675;
    font-size: clamp(14px, 1.2vw, 20px);
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    scroll-behavior: auto;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
}

    header img {
        height: clamp(50px, 10vw, 100px);
        padding: 10px;
        margin: 10px;
    }

.datetime {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.4;
}

.datetime-line {
    font-size: clamp(16px, 2vw, 24px);
    color: #FF6A14;
    font-weight: bold;
}

.datetime .time {
    font-size: clamp(32px, 5vw, 60px);
    color: #264675;
    font-weight: bold;
}

.title-area {
    text-align: center;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 900;
    background-color: #FF6A14;
    color: #264675;
    flex-shrink: 0;
    line-height: 1;
    height: 40px;
    padding: 10px;
    margin-bottom: 20px;
}

.content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.left-section,
.right-section {
    overflow-y: auto;
    padding: 20px;
}

.left-section {
    background-color: #ffffff;
    border-right: 1px solid #ccc;
}

.felx10 {
    flex: 0 0 10%;
}

.felx20 {
    flex: 0 0 20%;
}

.felx30 {
    flex: 0 0 30%;
}

.felx40 {
    flex: 0 0 40%;
}

.felx50 {
    flex: 0 0 50%;
}

.felx60 {
    flex: 0 0 60%;
}

.felx70 {
    flex: 0 0 70%;
}

.felx80 {
    flex: 0 0 80%;
}

.felx90 {
    flex: 0 0 90%;
}

.felx100 {
    flex: 0 0 100%;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.center-content {
    text-align: center;
}

.right-section {
    background-color: #f4faff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .right-section img {
        width: 100%;
        height: auto;
        border-radius: 0px;
    }

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        right: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #ccc;
    }

    .timeline li {
        margin-bottom: 15px;
        position: relative;
        padding-right: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: clamp(16px, 1.5vw, 20px);
    }

        .timeline li::before {
            content: '';
            position: absolute;
            right: 4px;
            top: 4px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            z-index: 1;
        }

        .timeline li.visited::before {
            background-color: #004080;
        }

        .timeline li.visited {
            color: #004080;
        }

        .timeline li.current::before {
            background-color: orange;
        }

        .timeline li.current {
            color: orange;
        }

        .timeline li.current-line::before {
            background: repeating-linear-gradient(to bottom, orange, orange 4px, transparent 4px, transparent 8px);
        }

        .timeline li.upcoming::before {
            background-color: #ccc;
        }

        .timeline li.upcoming {
            color: #aaa;
        }

        .timeline li span:last-child {
            font-size: clamp(14px, 1.2vw, 18px);
            color: #666;
            padding-left: 10px;
        }

.padding-0 {
    padding: 0;
}

.padding-5 {
    padding: 5px;
}

.padding-10 {
    padding: 10px;
}

.padding-20 {
    padding: 20px;
}

.padding-30 {
    padding: 30px;
}

.padding-50 {
    padding: 50px;
}

.margin-25 {
    padding: 25px;
}

footer {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: clamp(12px, 1vw, 14px);
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background-color: #003366;
    color: white;
    font-size: clamp(16px, 2vw, 20px);
    height: 40px;
    padding: 10px 20px;
    text-align: center;
}

    .marquee:before {
        height: 20px;
    }

    .marquee span {
        display: inline-block;
        padding-left: 100%;
        animation: marquee-rtl 75s linear infinite;
    }

[dir="ltr"] .marquee span {
    padding-left: 0;
    padding-right: 100%;
    animation: marquee-ltr 60s linear infinite;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(-30%);
    }

    100% {
        transform: translateX(50%);
    }
}

@keyframes marquee-ltr {
    0% {
        transform: translateX(75%);
    }

    100% {
        transform: translateX(-180%);
    }
}

html, body, form {
    height: 100%;
    margin: 0;
    padding: 0;
}

.map {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

#map {
    position: absolute;
    width: 100%;
    height: 100%;
}

.header-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: bold;
    color: #264675;
}

.trip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(16px, 1.5vw, 24px);
    border: none;
}

    .trip-table thead {
        background-color: #FF6A14;
        color: #264675;
        font-weight: bold;
    }

    .trip-table th,
    .trip-table td {
        border: none;
        padding: 12px 16px;
        text-align: center;
        position: relative;
    }

    .trip-table tbody tr td::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(to right, transparent, #003366, transparent);
    }

    .trip-table thead tr {
        height: 90px;
        font-size: clamp(24px, 2.5vw, 32px);
    }

    .trip-table tbody tr {
        height: 60px;
        font-size: clamp(18px, 2vw, 24px);
    }

.red {
    background-color: lightpink;
    color: black;
}

.blue {
    background-color: lightblue;
    color: black;
}

.yellow {
    background-color: lightyellow;
    color: black;
}

.green {
    background-color: lightgreen;
    color: black;
}

.gray {
    background-color: lightgray;
}

.blink {
    animation: blink-animation 1s infinite !important;
}

.blink-red {
    animation: blink-red-animation 1s infinite;
}

.blink-yellow {
    animation: blink-yellow-animation 1s infinite;
}

.blink-green {
    animation: blink-green-animation 1s infinite;
}

.blink-blue {
    animation: blink-blue-animation 1s infinite;
}

@keyframes blink-red-animation {
    0%, 100% {
        background-color: red;
        color: white;
    }

    50% {
        background-color: #ff9999;
        color: black;
    }
}

@keyframes blink-yellow-animation {
    0%, 100% {
        background-color: yellow;
        color: black;
    }

    50% {
        background-color: #fff9cc;
        color: #333;
    }
}

@keyframes blink-green-animation {
    0%, 100% {
        background-color: green;
        color: white;
    }

    50% {
        background-color: lightgreen;
        color: black;
    }
}

@keyframes blink-blue-animation {
    0%, 100% {
        background-color: #003366;
        color: white;
    }

    50% {
        background-color: #99ccff;
        color: black;
    }
}
