* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    color: black;
    min-height: 100vh;
    transition: background-color 0.1s ease; /* Плавный переход цвета */
}

header {
    background-color: #111;
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 320px; /* Ширина логотипа */
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
}

.nav-links li {
    margin: 0 25px;
    text-transform: uppercase;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 50px;
    z-index: 55;
    font-size: 25px;
    color: white;
}

.burger span {
    width: 25px;
    height: 3px;
    border-radius: 5px;
}

.intro {
    padding: 90px 20px;
    background: url('/storage/images/header.webp') no-repeat center center;
    background-size: cover;
    color:white;
}

.intro h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.intro p, .intro ul {
    font-size: 18px;
    margin: 30px 0px;
}

.intro ul {
    list-style: none;
}

.intro ul li {
    margin: 10px 0;
}

.music-overview {
    text-align: center;
    padding: 50px 20px;
    background-color: #111;
}

.music-overview h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color:white;
}

.video {
    position: relative;
    display: inline-block;
}

.video img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

footer {
    flex-shrink: 0;
    background-color: #000;
    text-align: center;
    padding: 20px 0;
    color: white;
}

.social-links {
    text-align: center;
    padding: 20px 0;
    color: white;
}

.social-links a {
    margin: 0 15px;
    font-size: 24px;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    color: #ff0000; /* Изменение цвета при наведении */
}


.about-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.photo-container {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.photo-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.text-container {
    flex: 2;
    padding: 20px;
}

.text-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: left;
}

.text-container p {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.text-container strong {
    font-size: 20px;
}

.text-container a {
    color: #6cb3ff;
    text-decoration: none;
}

.text-container a:hover {
    text-decoration: underline;
}

.books-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-item {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #ccc;
}

.book-item h2 {
    font-size: 32px;
    color: red;
    margin-bottom: 15px;
}

.book-item p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-button {
    background-color: black !important;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none !important;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.read-button:hover {
    background-color: red !important;
}

.special {
    background-color: #0d1f26;
    color: white;
    padding: 40px;
}

.special h2 {
    color: red;
}

.special p {
    color: white;
}


.books-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.quote-section {
    position: relative;
    width: 100%;
    height: 400px; /* Высота видео на весь экран */
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* Отключаем взаимодействие с видео */
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.quote-content {
    text-align: center;
    color: white;
    font-size: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон для текста */
    border-radius: 10px;
}

.quote-symbol {
    font-size: 50px;
    opacity: 0.2;
}

.quote-section p {
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    z-index: 2;
}

.music-section {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color:white;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none; /* Отключаем возможность взаимодействия с видео */
    transition: opacity 2s ease;
}

.background-video.dimmed {
            opacity: 0.5; /* Приглушение видео при воспроизведении музыки */
}

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}


.content h1 {
    font-size: 47px;
    margin-bottom: 40px;
}

.music-list {
    list-style: none;
    padding: 0;
}

.music-list img {
    width:150px;
}

.music-list li {
    display: flex;
    align-items: center;
    padding: 25px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s;
    color: black;
}

.music-list li:hover {
    background-color: #f9f9f9;
}

.music-list li.active {
    background-color: #f0f0f0;
    border-left: 5px solid #ff0000;
}

.track-info {
    flex-grow: 1;
    margin-left: 20px;
}

.track-info span {
    font-size: 18px;
}

.duration {
    color: #888;
}

.audio-player-container {
    text-align: center;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0); /* Начальный цвет - прозрачный */
    transition: background-color 0.5s ease, opacity 0.5s ease; /* Плавный переход цвета и прозрачности */
    opacity: 1; /* Постоянно видимый элемент (не прячем при перемотке) */
    pointer-events: none; /* Чтобы клики не мешали взаимодействовать с контентом */
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.wrapper {
    flex: 1 0 auto;
}

/* Скрываем стандартные элементы управления */
audio {
    display: none; /* Скрываем стандартный плеер */
}

/* Обновленный стиль прогресс-бара и ползунка громкости */
.custom-audio-player {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
}

.play-btn {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
}

.progress-bar-container {
    position: relative;
    flex-grow: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background-color: #ff5722;
    border-radius: 5px;
    width: 0;
}

/* Кастомный круглый индикатор (ползунок) */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: #2196f3; /* Синий цвет индикатора */
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: transform 0.1s ease;
    cursor: pointer; /* Добавляем курсор */
}

/* Увеличение индикатора при наведении */
.progress-bar-container:hover .progress-bar::after {
    transform: translate(50%, -50%) scale(1.2);
}

.timer {
    font-size: 14px;
    color: #333;
}

/* Стиль регулятора громкости */
#volumeControl {
    width: 50px;
    margin-left: 10px;
    cursor: pointer;
}

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
    max-width: 1200px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

.contact-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image img {
    max-width: 50%;
    height: auto;
    border-radius: 15px;
}

.contact-form {
    flex: 1;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #4A90E2;
    padding-bottom: 10px;
}

.contact-form p {
    color: #777;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0px 0px 8px rgba(74, 144, 226, 0.5);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form .submit-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .submit-btn:hover {
    background-color: #357ABD;
    box-shadow: 0px 4px 10px rgba(74, 144, 226, 0.3);
}

.contact-form .submit-btn:active {
    background-color: #2C6FA6;
    box-shadow: 0px 3px 8px rgba(74, 144, 226, 0.5);
}

/* Сообщение об успешной отправке */
.alert {
    background-color: #28a745;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    font-size: 16px;
}

.alert .close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.alert .close:hover {
    color: #fff;
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .custom-audio-player {
        max-width: 100%;
        padding: 20px 15px;
        gap: 5px;
    }
    .play-btn {
        width: 30px;
        height: 30px;
        font-size: 15px;
        margin-right: 10px;
    }
    .timer {
        font-size: 10px;
    }
    #volumeControl{
        display:none;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .contact-image {
        margin-bottom: 20px;
    }

    .contact-form {
        padding: 0 20px;
    }

    .contact-form h1 {
        font-size: 28px;
        text-align: center;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form .submit-btn {
        font-size: 16px;
        padding: 12px;
    }

    .alert {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .contact-form h1 {
        font-size: 24px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 12px;
    }

    .contact-form .submit-btn {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 1200px) {
    .content h1 {
        font-size: 32px;
    }

    .music-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .duration {
        margin-top: 10px;
    }
    .quote-section {
        height: 325px;
    }

    .background-video {
        min-height: 100%;
        min-width: 100%;
    }

    .quote-symbol {
        font-size: 80px;
    }

    .quote-section p {
        font-size: 18px;
    }
    .books-container {
        padding: 20px 10px;
    }

    .book-item {
        max-width: 100%;
    }
     .about-container {
        flex-direction: column;
        align-items: center;
    }

    .photo-container {
        margin-bottom: 20px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 0px;
        right: 0;
        width: 100%;
        background-color: #111111d9;
        padding: 20px 0;
        z-index: 15;
    }
    
    video{
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .burger {
        display: flex;
    }
    
    .intro{
        background-size: 500% !important;
    }
}