/* Шрифт для имитации старых электронных часов */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f5f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #555;
}

.content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

header {
    display: flex;
    justify-content: center; /* Центрирование заголовка */
    align-items: center;
    background-color: #2d3e50;
    color: white;
    padding: 15px 25px;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header #logo {
    text-align: center;
    flex: none;
}

header #logo h1 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    color: #ecf0f1;
}

header #logo h1 span {
    /* font-weight: normal; - убрано для единообразия шрифта */
    margin-right: 10px;
}

#login-button-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000; /* Убедитесь, что кнопка видна поверх других элементов */
}

#login-button-container .login-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#login-button-container .login-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

main {
    display: flex;
    justify-content: space-between;
    margin-top: 75px; /* Учет фиксированного заголовка */
    padding: 25px;
    box-sizing: border-box;
    flex: 1;
}

.section {
    background-color: #ffffff;
    color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    flex-basis: 32%; /* Каждая секция будет занимать примерно треть ширины экрана */
    transition: box-shadow 0.3s;
}

/* Стили для отображения времени */
#time-info-section {
    text-align: center; /* Центрирование текста */
}

#time-info-section h2 {
    font-size: 24px;
    color: #2d3e50;
    margin-bottom: 10px; /* Уменьшен отступ между заголовком и временем */
    text-align: center;
}

#current-time, #next-bell, #time-remaining {
    font-family: 'Orbitron', sans-serif; /* Шрифт в стиле старых электронных часов */
    font-size: 56px; /* Более высокий размер шрифта */
    color: #4caf50; /* Более светлый зелёный цвет */
    background-color: #f4f5f7;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    display: block;
    margin: 20px 0; /* Увеличен отступ сверху и снизу */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    background-color: #2d3e50;
    color: white;
    text-align: center;
    padding: 15px 25px;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
    position: relative;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        padding: 15px;
    }

    .section {
        flex-basis: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    header #logo h1 {
        font-size: 24px;
    }

    #login-button {
        bottom: 10px;
        left: 10px;
    }

    #login-button .button {
        font-size: 18px;
        padding: 15px;
    }

    #current-time, #next-bell, #time-remaining {
        font-size: 42px; /* Уменьшение размера шрифта на мобильных устройствах */
    }
}

#call-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#call-table th, #call-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle; /* Вертикальное выравнивание */
}

#call-table td {
    text-align: center; /* Горизонтальное выравнивание для всех ячеек */
}

#call-table td:first-child, #call-table td:nth-child(2), #call-table td:nth-child(3), #call-table td:nth-child(4), #call-table td:nth-child(5) {
    text-align: left; /* Возвращаем выравнивание влево для первых 5 столбцов */
}

#call-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#call-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#call-table tr:hover {
    background-color: #ddd;
}

