/* Локальные шрифты Monotype Corsiva */
@font-face {
    font-family: 'Monotype Corsiva';
    src: url('fonts/Monotype-Corsiva-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Monotype Corsiva';
    src: url('fonts/Monotype-Corsiva-Regular-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Monotype Corsiva';
    src: url('fonts/Monotype-Corsiva-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Monotype Corsiva';
    src: url('fonts/Monotype-Corsiva-Bold-Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Monotype Corsiva', 'Brush Script MT', 'Lucida Handwriting', 'Comic Sans MS', cursive, serif;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

/* Волосы - абсолютное позиционирование, закреплены */
.hair {
    position: fixed;
    top: 0;
    z-index: 1;
    pointer-events: none;
}

.hair-left {
    left: 0;
}

.hair-right {
    right: 0;
}

.hair img {
    height: 100vh;
    width: auto;
    object-fit: cover;
}

/* Главный контейнер с орнаментом */
.ornament-container {
    position: relative;
    width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    z-index: 2;
}

.ornament-bg {
    width: 100%;
    height: auto;
    position: relative;
}

/* Контент внутри орнамента */
.ornament-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Блок 1: Социальные иконки */
.social-links {
    display: flex;
    gap: 25px;
    margin-bottom: 50px;
    margin-top: 25px;
}

.social-link {
    display: block;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Блок 2: Логотип */
.logo-block {
    width: 350px;
    height: 170px;
    margin-bottom: 213px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Блок 3: Основной текст */
.text-block {
    width: 510px;
    height: 180px;;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.text-block p {
    font-family: 'Monotype Corsiva', 'Brush Script MT', 'Lucida Handwriting', 'Comic Sans MS', cursive, serif;
    font-weight: 400;
    font-size: 34px;
    line-height: 90%;
    color: #000;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* Блок 4: Название трека */
.track-name {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    gap: 13px;
}

.track-name p {
    font-family: 'Monotype Corsiva', 'Brush Script MT', 'Lucida Handwriting', 'Comic Sans MS', cursive, serif;
    font-weight: 400;
    font-size: 22px;
    color: #000;
    text-align: center;
    word-wrap: break-word;
    white-space: pre-line;
    margin: 0;
}

.copy-btn {
    width: 23px;
    height: 27px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Блок 5: Кнопка предсказаний */
.prediction-button {
    margin-top: 80px;
}

.prediction-button button {
    width: 336px;
    height: 43px;
    border-radius: 50px;
    border: 4px solid #000;
    background-color: #fff;
    font-family: 'Monotype Corsiva', 'Brush Script MT', 'Lucida Handwriting', 'Comic Sans MS', cursive, serif;
    font-weight: 700;
    font-size: 30px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.prediction-button button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.prediction-button button:active {
    transform: translateY(0);
}

.prediction-button button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    font-family: 'Monotype Corsiva', 'Brush Script MT', 'Lucida Handwriting', 'Comic Sans MS', cursive, serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.modal-content p {
    font-family: 'Monotype Corsiva', 'Brush Script MT', 'Lucida Handwriting', 'Comic Sans MS', cursive, serif;
    font-weight: 400;
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

.track-name.long {
    width: 100%;
  }



/* Адаптация для больших экранов 769-1920px */
@media (min-width: 769px) and (max-width: 1920px) {
    /* Устанавливаем фиксированную высоту контейнера */
    .ornament-container {
        width: 702px;
    }
    
    /* Уменьшаем все отступы на 22% */
    .social-links {
        margin-bottom: 39px; /* 50px - 22% = 39px */
        margin-top: 20px; /* 25px - 22% = 20px */
    }
    
    .logo-block {
        margin-bottom: 172px; /* мой размер */
    }
    
    .prediction-button {
        margin-top: 60px; /* 70px - 22% = 55px */
    }
    
    /* Уменьшаем размеры блоков на 22% */
    .logo-block {
        width: 273px; /* 350px - 22% = 273px */
        height: 135px;; /* 170px - 22% = 133px */
    }
    
    .text-block {
        width: 394px; /* 510px - 22% = 398px */
        height: 135px; /* 190px - 22% = 148px */
    }
    
    .track-name {
        width: 296px; /* 380px - 22% = 296px */
        height: 35px; /* 45px - 22% = 35px */
    }

    .track-name {
        font-size: 16px;
    }
    
    .prediction-button button {
        width: 262px; /* 336px - 22% = 262px */
        height: 34px; /* 43px - 22% = 34px */
        font-size: 23px; /* 30px - 22% = 23px */
        color: rgb(0, 0, 0);
    }
    
    /* Уменьшаем размеры социальных иконок */
    .social-link {
        width: 39px; /* 50px - 22% = 39px */
        height: 39px; /* 50px - 22% = 39px */
    }
    
    .social-links {
        gap: 20px; /* 25px - 22% = 20px */
    }
    
    /* Уменьшаем кнопку копирования */
    .copy-btn {
        width: 18px; /* 23px - 22% = 18px */
        height: 21px; /* 27px - 22% = 21px */
    }
    
    .track-name {
        gap: 10px; /* 13px - 22% = 10px */
    }
}


/*создать доп. на основе 650px*/
@media (max-width: 768px) {
    /* Устанавливаем фиксированную высоту контейнера */
    .ornament-container {
        width: 380px;
    }
    
    /* Уменьшаем все отступы на 22% */
    .social-links {
        margin-bottom: 13px; /* 50px - 22% = 39px */
        margin-top: 10px; /* 25px - 22% = 20px */
    }
    
    .logo-block {
        margin-bottom: 92px; /* мой размер */
    }
    

    
    /* Уменьшаем размеры блоков на 22% */
    .logo-block {
        width: 144px;
        height: 80px;
    }
    
    .text-block p {
        font-size: 20px;
        line-height: 90%;
    }

    .text-block {
        width: 212px; /* 510px - 22% = 398px */
        height: 77px; /* 190px - 22% = 148px */
    }
    
    .track-name {
        width: 164px;
        height: 16px;
        gap: 6px; /* 13px - 22% = 10px */
        
    }

    .track-name p {
        font-size: 14px;
        line-height: 80%;
    }
    
    .prediction-button {
        margin-top: 36px; /* 70px - 22% = 55px */
    }

    .prediction-button button {
        width: 145px; /* 336px - 22% = 262px */
        height: 20px; /* 43px - 22% = 34px */
        font-size: 12px; /* 30px - 22% = 23px */
        border: 2px solid #000;
        color: rgb(0, 0, 0);
    }
    
    /* Уменьшаем размеры социальных иконок */
    .social-link {
        width: 19px; /* 50px - 22% = 39px */
        height: 19px; /* 50px - 22% = 39px */
    }
    
    .social-links {
        gap: 7px; /* 25px - 22% = 20px */
    }
    
    /* Уменьшаем кнопку копирования */
    .copy-btn {
        width: 11px; /* 23px - 22% = 18px */
        height: 13px; /* 27px - 22% = 21px */
    }

}


/* Скрытие волос на мобильных устройствах */
@media (max-width: 1250px) {
    /* Скрываем волосы */
    .hair {
        display: none;
    }
}

