/* Общие стили */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: linear-gradient(135deg, #ececec 20%, #1f1f1f 100%);
    color: #f5f5f5;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Отключаем горизонтальный скроллинг */
}

* {
    box-sizing: border-box; /* Учитываем паддинги и границы в размере элемента */
}

.header {
    background-color: #242424;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.head_table td {
    padding: 0 15px;
}

.head_table button {
    color: white;
    background-color: #333333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.head_table button:hover {
    background-color: white;
    color: #1c1c1c;
    transform: scale(1.05);
}

.header .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
}

.header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Контент */
.content {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

/* Секции */
section {
    padding: 20px;
    margin-bottom: 30px;
    background: #292929;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    max-width: 100%;
    overflow: hidden; /* Предотвращает вылазку содержимого */
}

.home img {
    max-width: 100%;
    height: auto;
}

.games_table img {
    width: 60%;
    height: auto;
}

/* Таблицы */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block; /* Включаем прокрутку для больших таблиц */
}

.cat_price_table{
    font-size: 20px;
    color: #252525;
    background-color: white;
}

.price_table tr td {
    border: white solid 2px;
    text-align: center;
    padding: 5px;
}

/* Стили для карты */
.map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

.button-link {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 5px;
    text-align: center;
}

/* Футер */
.footer {
    text-align: center;
    padding: 10px;
    background: #242424;
    color: white;
    font-size: 14px;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #242424;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px;
}

.day-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day-card h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.event {
    background-color: #252525;
    padding: 5px;
    margin-top: 5px;
    border-radius: 4px;
    width: 100%;
}

.event-time {
    font-weight: bold;
}

.no-events {
    color: #777;
    font-style: italic;
}

/* Медиа-запросы */
@media (min-width: 769px) {
    .header .menu-toggle {
        display: none;
    }

    .header .head_table {
        display: table;
    }

    .mobile-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .price_table td, .price_table th {
        font-size: 14px;
    }
    .header .head_table {
        display: none;
    }

}
