body {
    font-family: 'Doto', sans-serif;
    /* display: flex; */
    min-height: 100vh;
    background-color: black;
    color: white;
    margin: calc(0.02 * min(100vw, 450px));
}

.centered-text {
    text-align: center !important;
    padding-top: calc(0.08 * min(100vw, 450px));
    padding-bottom: calc(0.1 * min(100vw, 450px));
}

.button-text {
    text-align: center !important;
}

            /* justify-content: center;
            align-items: center;            
            background-color: #f4f4f4;
            margin: 0; */

h1 {
    text-align: left !important;
    font-size: calc(0.06 * min(100vw, 450px));
    margin-bottom: calc(-0.005 * min(100vw, 450px)) !important;
    margin-block-start: 0;
}

h2 {
    text-align: left !important;
    font-size: calc(0.04 * min(100vw, 450px));
    margin-top: calc(0.06 * min(100vw, 450px)) !important;
    margin-bottom: calc(0.01 * min(100vw, 450px)) !important;
}

h4 {
    font-family: 'Doto', sans-serif;
    text-align: left !important ;
    color: white;
    font-size: calc(0.035 * min(100vw, 450px)) !important;
    margin-block-start: 0;
    margin-block-end: 0;
}

.header {
    display: flex;
    justify-content: center;
}

.header-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Keep text color the same */
    display: block; /* Ensure it takes up the full space */
}

.maps-link {
    color: inherit; /* Keep text color the same */
}

/* Стили для заголовка страницы */
.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Выровнять по левому краю */
    width: 100%; /* Растягиваем по ширине экрана */
    max-width: 500px; /* Но не больше 450px */
    margin: calc(0.045 * min(100vw, 450px)) 0 calc(0.06 * min(100vw, 450px)) 0; /* Отступ снизу */
    background-color: transparent; /* Прозрачный фон */
    cursor: pointer; /* Change cursor to indicate clickability */
    /* padding: 10px; */
}

.header {
    flex-shrink: 0; /* Фиксированная высота, не сжимается */
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Занимает весь экран */
}

.logo {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    width: calc(0.10 * min(100vw, 450px)); /* Фиксированная ширина логотипа */
    image-rendering: pixelated;
    margin-top: 0;
    margin-left: calc(0.02 * min(100vw, 450px));
    margin-right: calc(0.01 * min(100vw, 450px))
}

.logo img {
    width: 100%;
    height: auto;
}

.title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: calc(0.02 * min(100vw, 450px)); /* Отступ между логотипом и текстом */
}

.table-container {
    width: 100%; /* Растягиваем по ширине экрана */
    max-width: 500px; /* Но не больше 500px */
    margin: 0 auto; /* Центрируем */
    overflow-x: auto; /* Добавляем скролл, если нужно */
    padding: calc(0.02 * min(100vw, 450px));
    box-sizing: border-box;
}

.table-container-header {
    margin-bottom: calc(0.04 * min(100vw, 450px));
}

table {
    border-collapse: collapse;
    border-spacing: 0px;
    width: 100%;
    /* max-width: 450px; */
    /* margin: 0 auto; */
    background-color: #222;
    color: white;
    /* table-layout: fixed; */
    margin-bottom: calc(0.04 * min(100vw, 450px));
}

th, td {
    border: 1.5px solid #ffffff;
    padding: calc(0.006 * min(100vw, 450px)) calc(0.01 * min(100vw, 450px)); /* Пропорциональные отступы */; /* Пропорциональные отступы */
    text-align: center;
    position: relative;
    vertical-align: middle;
    font-size: calc(0.045 * min(100vw, 450px)); /* Пропорциональный размер шрифта */
    height: auto;
    overflow: hidden;
    /* font-weight: 500; */
}

th {
    background-color: #444;
}

th:first-child {
    font-size: calc(0.03 * min(100vw, 450px));
    text-align: center;
    padding: calc(0.015 * min(100vw, 450px)) calc(0.01 * min(100vw, 450px))
}

.cell-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0px;
}

.cell-number {
    position: absolute;
    top: calc(0.01 * min(100vw, 450px));
    left: calc(0.01 * min(100vw, 450px));
    font-size: calc(0.025 * min(100vw, 450px));
    opacity: 0.7;
    margin: 0;
    line-height: 1;
}

.st {
    position: absolute;
    bottom: calc(0.015 * min(100vw, 450px));
    right: calc(0.01 * min(100vw, 450px));
    font-size: calc(0.025 * min(100vw, 450px));
    opacity: 1;
    margin: 0;
    line-height: 1;
}

.time {
    text-align: left;
    flex: 1;
    padding-left: calc(0.03 * min(100vw, 450px));
    line-height: 1;
}

.stops {
    text-align: right;
    flex: 1;
    padding-right: calc(0.035 * min(100vw, 450px));
    white-space: nowrap;
    line-height: 1;
}

table th:nth-child(1), table td:nth-child(1) {
    width: 3%;
    vertical-align: middle;
}

table th:nth-child(2), table td:nth-child(2),
table th:nth-child(3), table td:nth-child(3),
table th:nth-child(4), table td:nth-child(4) {
    width: 30%;
}

/* Стили для заголовка таблиц */
table caption {
    font-size: calc(0.05 * min(100vw, 450px));
    text-align: left;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* font-size: calc(0.04 * min(100vw, 450px)) !important; */
    font-weight: 500;
}

.marquee span {
    display: inline-block;
    position: absolute;
    animation: marquee linear infinite;
    white-space: nowrap;
    color: white;
    padding-left: 0;
    width: max-content;
}

/* Анимация для бегущей строки */
@keyframes marquee {
    from {
        transform: translateX(5%);
    }
    to {
        transform: translateX(-100%);
    }
}

.footer {
    text-align: center;
    font-weight: 700;
    margin-top: calc(0.04 * min(100vw, 450px));
    padding: calc(0.02 * min(100vw, 450px));
    font-size: calc(0.04 * min(100vw, 450px));
    color: white;
}

.footer a {
    color: #009dff; /* Голубой цвет ссылок (можно поменять) */
    text-decoration: none;
    margin: 0 calc(0.02 * min(100vw, 450px));
    font-weight: 700;
}

.footer a:hover {
    text-decoration: underline;
}

#map {
    /* flex-grow: 1; Занимает всё доступное пространство */
    width: 100%;
    height: 100%;
}

#schedule-btn {
    flex-shrink: 0; /* Фиксированная высота, не сжимается */
    /* width: 100%; */
    /* height: 50px; */
    position: relative; /* Просто фиксируем внизу контейнера */
    justify-content: center;
    font-family: 'Doto', sans-serif;
    font-weight: 900;
    background-color: black;
    color: white;
    /* border-radius: 5px; */
    padding: calc(0.045 * min(100vw, 450px)) calc(0.04 * min(100vw, 450px));
    font-size: calc(0.04 * min(100vw, 450px));
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: calc(0.025* min(100vw, 450px));
    position: fixed;
    bottom: 0;
    /* bottom: calc(0.03* min(100vw, 450px)); */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: env(safe-area-inset-bottom);
    width: 100%;
    z-index: 1000
}

#schedule-btn:disabled {
    background-color: #8d8d8d;
    color: rgb(0, 0, 0);
    cursor: not-allowed;
}

/* Стиль обычной точки */
.stop-label {
    background: rgb(75, 75, 75);
    color: white;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: auto;
    line-height: normal;
}

.selected-stop {
    background: rgb(0, 51, 52) !important;
    color: white;
}