﻿body {
}
a.bLbStyle {
    color: #100066;
    text-decoration: none;
    display: inline-block;
    word-break: break-word; /* break only when necessary, not aggressively */
    overflow-wrap: break-word; /* modern equivalent */
    word-wrap: break-word; /* IE fallback */
    white-space: normal; /* allow wrapping */
    max-width: 100%; /* never exceed container width */
    hyphens: auto;
    vertical-align: middle;
}

    a.bLbStyle:hover {
        color: #D32232 !important;
        font-weight: bold !important;
        text-decoration: underline;
        word-break: break-word;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        hyphens: auto;
    }
.h3StyleC {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, Roboto, sans-serif;
    font-size: 21px;
    color: #1C00CC;
    margin: 0 auto;
    text-align: center;
    padding-top: 0px;
    padding-bottom: 6px;
    font-weight: 600;
}

.flag-emoji {
    font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    font-size: 22px;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    color: #1C00CC;
}
.tracker-board {
    font-family: 'Segoe UI', system-ui, sans-serif;
    /* Forces all numbers to occupy the exact same width */
    font-variant-numeric: tabular-nums;
    /* Ensures fractions or slashes align cleanly if used */
    font-feature-settings: "tnum";
}
.tracker-row {
    /* Scales smoothly from 15px on small screens to 17px on large displays */
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.train-time {
    /* Keeps the departure time prominent across devices */
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.tracker-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tracker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Shared Grid Template for Header and Content Cards */
.tracker-header,
.tracker-card {
    display: grid;
    /* Columns: Times | Train/Route | Platform | Status */
    grid-template-columns: 90px 1fr 60px 110px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
}

.tracker-header {
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Typography Details */
.time-bold {
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.plat-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2196F3; /* W3-blue accent */
}

.alarm {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Mobile Adjustments for Very Narrow Screens (<400px) */
@media (max-width: 400px) {
    .tracker-header,
    .tracker-card {
        grid-template-columns: 75px 1fr 45px 90px;
        gap: 8px;
        padding: 10px;
    }
}
.topbarBackground {
    /*background-image: url('/Images/eurovoyages-banner.svg');*/ /* absolute path */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: auto;
    min-height: 80px; /* min instead of max, prevents clipping */
    border-bottom: 2px solid #1C00CC;
    margin: 0;
    padding: 0;
    object-fit: cover; /* crops to fill, keeps aspect ratio */
}
.mainBarSet {
    display: flex;
    justify-content: space-between; /* now correct — you have 3 real children */
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    min-height: 80px;
    padding: 0 6px;
    border-bottom: 2px solid #1C00CC;
    margin: 0;
}

.logoContainer {
    flex-shrink: 0;
}

.logoCss {
    width: 160px;
    height: 50px;
}

.headerTextContainer {
    flex: 1; /* takes up available center space */
    text-align: center;
    padding: 0 8px;
    min-width: 200px; /* prevents crushing on narrow screens before wrapping */
}

.headerTitle {
    font-size: 22px;
    font-weight: bold;
    color: #1C00CC;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.3;
}

.headerTagline {
    font-size: 14px;
    font-weight: normal;
    color: #444;
    font-family: 'Segoe UI', sans-serif;
    margin-top: 4px;
}

.bannerImageContainer {
    flex-shrink: 0;
}

.bannerImageCss {
    height: 80px;
    width: auto; /* preserves the image's own aspect ratio */
    display: block;
    -webkit-filter: contrast(1.25);
    filter: contrast(1.25);
    image-rendering: crisp-edges; /* Modern browsers */
    image-rendering: pixelated; /* For Chrome/Firefox */
}
.sharpen {
    mix-blend-mode: luminosity;
    opacity: 0;
    overflow: hidden;
    -webkit-filter: contrast(1.25);
    filter: contrast(1.25);
}

.h1Style {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, Roboto, sans-serif;
    font-size: 20px;
    color: #1C00CC;
    margin: auto;
    text-align: center;
    padding-bottom: 6px;
    font-weight: bold;
}
.h2Style {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, Roboto, sans-serif;
    font-size: 18px;
    color: #2800ff;
    margin: auto;
    text-align: center;
}
/* Container layout */
.agency-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Base style (Inactive / Dimmed) */
.agencyLabel {
/*    color: #888888;
*/  color: #002000;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: Calibri, 'Segoe UI', sans-serif;
    font-weight: bold;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.25s ease-in-out;
}

    /* Active Agency (Selected based on town/city) */
    .agencyLabel.is-active {
        color: #fff !important;
        background-color: #2800ff !important;
        border-color: #2800ff !important;
        opacity: 1 !important;
        transform: scale(1.05);
        box-shadow: 0 2px 5px rgba(40, 0, 255, 0.3);
    }
    
    .button {
    background-color: #1C00CC;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    font-weight:bold;
    border-radius:12px;
}
.hr60 {
    width: 60%;
    margin: 0 auto;
    border: 2px solid #1C00CC;
    vertical-align: middle;
    margin-top: 5px;
    margin-bottom: 5px;
}

.circle {
    height: 500px;
    width: 500px;
    border-radius: 250px;
    /*    background-color: #F16A23;
*/
    position: absolute;
    background-image: linear-gradient(to bottom, #ffffff, #f5fcff, #defcff, #c3feff, #b2fff3);
    margin-top: 80px;
    margin-left: -250px;
    z-index: -2;
}

.circle1 {
    height: 500px;
    width: 500px;
    border-radius: 250px;
    background-image: linear-gradient(to bottom, #ffffff, #f5fcff, #defcff, #c3feff, #b2fff3);
    position: absolute;
    right: -250px;
    margin-top: -360px;
    z-index: -3;
}

.circle2 {
    height: 500px;
    width: 500px;
    border-radius: 250px;
    background-image: linear-gradient(to bottom, #ffffff, #f5fcff, #defcff, #c3feff, #b2fff3);
    position: absolute;
    right: -250px;
    bottom: -200px;
    z-index: -4;
}
.qadBackground {
    background-color: #e9e5ff;
}

.qrdRadius {
    border-radius: 8px;
    border: 1px solid #2800ff;
    opacity: 0.8;
    font-weight: 800;
}
.MainLinks {
    font-family: 'Cascadia Code';
    font-size: 18px;
    color: #2800ff;
    font-weight: 800;
    text-decoration: none;
}

    .MainLinks:hover {
        color: #d32232;
        font-weight: bold;
        font-size: 19px;
        text-decoration: underline;
    }

.region-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-top: 10px;
    text-align: left;
}

@media (min-width: 600px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .region-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .region-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.region-card {
    padding: 14px 18px 16px;
    display: block;
    width: 100%;
}
.region-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, Roboto, sans-serif;
    font-size: 20px;
    color: #1C00CC;
    margin: 0 auto;
    text-align: center;
    padding-top: 0px;
    padding-bottom: 6px;
    font-weight: 600;
}
.tracker-top-bar {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.top-bar-flex-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* ✅ allow wrapping */
}
/* A structural wrapper for each control column */
.control-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Proportional horizontal column weight distribution */
.station-group {
    flex: 2.5;
    min-width: 240px;
}

.date-group {
    flex: 1.2;
    min-width: 150px;
}

.slider-group {
    flex: 2;
    min-width: 200px;
}

.actions-group {
    flex: 1.8;
    min-width: 220px;
}
media (max-width: 768px) {
    .top-bar-flex-wrapper

{
    flex-direction: column;
    align-items: stretch;
}

.control-group {
    width: 100%;
}

.digital-time {
    background-color: #0B1C3F;
    font-family: 'Courier New', monospace;
    color: #FF2800;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 2px;
}
.vspace {
    font-weight: 900;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, Roboto, sans-serif;
    color: #2971EA;
    text-shadow: 0 0 4px #6a9bff, 0 0 12px #2971EA, 0 0 24px #2971EA;
}
.submit-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 17em;
    padding-top: 2.3em;
    z-index: 9999999;
    /* The following properties are the ones most likely to change */
    width: 36em;
    /* Set 'margin-left' to a negative number that is 1/2 of 'width' */
    transform: translate(-50%, -50%);
    background-color: rgba(40,0,255,1);
    color: #ffffff;
    font-weight: bold;
    -webkit-border-radius: 0.4em;
    -moz-border-radius: 0.4em;
    border-radius: 0.4em;
    text-align: center;
}
