* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fff;
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 500;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    width: 100%;
    flex: 1;
}

header {
    position: relative;
    font-size: 18px;
    background-color: #f7eae4;
    width: 100%;
    padding: 1.5rem;
    z-index: 1;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #763f2d;
}

.background-circle-main-1 {
    position: absolute;
    border-radius: 100%;
    width: 1000px;
    height: 1000px;
    background-color: #f7eae4;
    left: -15%;
    top: -500px;
    background: linear-gradient(to bottom right, #f7eae4, 80%, #fffaf6);
    z-index: -1;
}

.background-circle-main-2 {
    position: absolute;
    border-radius: 100%;
    width: 600px;
    height: 600px;
    background-color: #f7eae4;
    right: -10%;
    top: -100px;
    background: linear-gradient(to left, #f7eae4, 90%, #fffaf6);
    z-index: -1;
}

.city-selector {
    position: relative;
    width: 200px;
    margin: 20px auto;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.selected-city {
    padding: 10px;
    background-color: #f7eae4;
    color: #763f2d;
    cursor: pointer;
    border: 1px solid #f7eae4;
    border-radius: 10px;
}

/* Для выпадающего списка на главной */
.city-list {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #763f2d;
    background: #f7eae4;
    border-radius: 10px;
    z-index: 1000; /* Убедитесь, что список поверх других элементов */
}

.city-option {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #763f2d;
    border-radius: 10px;
}

.city-option:last-child {
    border-bottom: none;
}

.city-option:hover {
    background-color: #f7eae4;
}


/* Админ-панель */
.admin-cities {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #763f2d;
    border-radius: 5px;
}

.city-item {
    margin: 10px 0;
    padding: 8px;
    background-color: #fffaf6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.calendar-container {
    width: 95%;
    margin: 0 auto;
    background: #f7eae4;
    border-radius: 20px;
    overflow: hidden;
}

.calendar-header {
    width: 98.5%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #763f2d;
    color: #fffaf6;
    padding: 10px;
    font-size: 24px;
    font-weight: 800;
    border-radius: 20px;
    margin-top: 10px;
}

.calendar-header button {
    background: none;
    border: none;
    color: fffaf6;
    font-size: 28px;
    cursor: pointer;
}

.calendar-days {
    width: 98.5%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #763f2d;
    color: #f7eae4;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    border-radius: 20px;
    margin-top: 10px;
}

.calendar-grid {
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f7eae4;
    border-radius: 20px;
    margin-top: 10px;
}

.calendar-day {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease; /* Анимация всех изменяемых свойств */
    border-radius: 20px;
    font-size: 18px;
    color: #333; /* Цвет текста по умолчанию */
    background-color: transparent; /* Фон по умолчанию */
}

.calendar-day:hover {
    background-color: #f7eae4; /* Лёгкий эффект при наведении */
}

.calendar-day.selected {
    background-color: #763f2d; /* Цвет фона при выборе */
    width: 87%;
    color: white; /* Цвет текста при выборе */
    font-weight: bold; /* Жирный шрифт */
}

.events-container {
    width: 98.5%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fffaf6;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.event-card {
    display: flex;
    padding: 10px;
    border: 1px solid #763f2d;
    margin-bottom: 10px;
    border-radius: 20px;
    background-color: #fffaf6;
}

/* .event-info p {
    margin: 6px 0;
    font-size: 14px;
    } */

.event-card img {
    width: 20rem;
    height: 20rem;
    object-fit: cover;
    border-radius: 20px;
    margin-right: 15px;
}

.event-info {
    width: 20%;
    margin-left: -20px;
    flex-grow: 1;
    overflow-wrap: break-word;
} 

.event-title {
    font-size: 64px;
    font-weight: bold;
    margin: 0 0 6px;
    overflow-wrap: break-word;
}

.event-date {
    font-size: 30px;
    color: #666666;
    margin: 0 0 6px;
    overflow-wrap: break-word;
}

.event-price {
    font-size: 30px;
    margin: 0 0 6px;
    color: #333333;
    overflow-wrap: break-word;
}

.event-description {
    font-size: 20px;
    color: #333333;
    margin: 0 0 6px;
    overflow-wrap: break-word;
}

/* Стили для контейнера описания */
.description {
    font-size: 20px;
    cursor: pointer;
    overflow: hidden; /* Скрываем переполнение текста */
    max-height: 7em; /* Высота для короткого текста (примерно 3 строки) */
    transition: max-height 0.5s ease; /* Плавный переход высоты */
    overflow-wrap: break-word;
  }
  
  /* Класс для полного текста */
  .description.expanded {
    max-height: 1000px; /* Максимальная высота для полного текста */
  }

  .buy-ticket-btn {
    background-color: #763f2d;
    font-size: 43px;
    color: #fffaf6;
    border: none;
    padding: 8px 24px;
    margin-right: 15px;
    margin-top: 15px;
    height: 65px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    }
    
    .media-container {
        display: flex;
        flex-direction: column; /* Располагаем изображение и кнопку вертикально */
        align-items: center; /* Центрируем элементы */
        margin-right: 20px; /* Отступ между изображением и информацией */
        }

    .buy-ticket-btn.selected{
    background-color: #763f2d;
    }

    .footer-section {
        width: 110%;
        background-color: #763f2d;
        margin-top: 3rem;
        padding: 2rem;
        text-align: center;
        color: #fff;
        display: flex;
        flex-direction: row;
        position: relative;
        z-index: 1;
    }
    
    .contact-info {
        margin-bottom: 1rem;
        display: flex;
        margin: 0 auto;
        flex-direction: row;
    }
    
    .contact-info p {
        margin-left: 3rem;
    }
    
    .contact-info a {
        color: #fff;
    }
    .no-events {
        text-align: center;
        font-size: 24px;
        color: #555;
        padding: 20px;
    }

    .copyright {
        margin-right: 5rem;
    }