html, body {
    overflow-x: hidden; /* Отключаем горизонтальный скроллинг */
}
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(circle, #1D6C39 0%, #0D3A1D 100%);
    position: relative;
    overflow: hidden; /* Убирает выход за границы */
    font-family: "Inter", serif;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imgs/back_stars.png') no-repeat center/contain; /* Замените 'your-image.png' на путь к вашему изображению */
    opacity: 0.5; /* Полупрозрачность для эффекта */
    z-index: -1; /* Помещает изображение под основное содержимое */
}

.container {
    position: fixed;
    bottom: -160px;
}

#wheel {
    width: 384px;
    height: 384px;
    background: url(../imgs/wheel.png) no-repeat center;
    transform: rotate(180deg); /* Изначальный поворот */
    background-size: contain;
    transform-origin: center;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    margin: 0 auto;
    z-index: 15;
    position: relative;
    top: 34px;

}
button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin: 20px auto;
    width: 100px;
    text-align: center;
    display: block;
}

#wheel-overlay {
    width: 450px;
    height: 450px;
    position: absolute;
    z-index: 10;
}

.wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

#vector {
    position: absolute;
    z-index: 150;
    left: calc(50% - 17px);
    top: 31px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0; /* Начальное состояние - невидимый */
    transition: opacity 0.3s ease; /* Плавное появление */
}

.overlay.active {
    display: block;
    opacity: 1; /* Делает overlay видимым */
    cursor: pointer;
}

/* Модальное окно */
#modalBackdrop {
    text-align:center;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    color: #F9EAA4;
    background: radial-gradient(circle, #283277 0%, #101239 100%);
    z-index: 1500;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: auto;
    opacity: 0; /* Начальное состояние - невидимое */
    transform: translate(-50%, -50%) scale(0.8); /* Уменьшенное начальное состояние */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Анимация появления */
    max-width: 500px;
}

#modalBackdrop.active {
    display: block;
    opacity: 1; /* Полностью видимое окно */
    transform: translate(-50%, -50%) scale(1); /* Полный размер */
}

.close-btn {
    position: absolute;
    right: 24px;
    top: 24px;
    cursor: pointer;
}

.top {
    background: transparent;
    position: fixed; /* Фиксирует блок относительно окна браузера */
    top: 0; /* Приклеивает к верхнему краю */
    width: 100%; /* Растягивает блок на всю ширину экрана */
    z-index: 1000; /* Делает блок выше других элементов */
    max-width: 450px;
}

.top img{
    padding: 16px 0 13px 20px;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #F9EAA4;
    border-radius: 2px;
}

.text-block {
    text-align: center;
    color: #F9EAA4;
    position: fixed;
    top: 80px;
}

.text-block h1{
    font-size: 28px;
    font-weight: bold;
}

.text-block p{
    font-size: 16px;
}

#spinButton, .btn-with-icon {
    background: linear-gradient(90deg, #EF2F24 0%, #911619 100%);
    border: none; /* Если кнопка без границ */
    color: #fff; /* Белый цвет текста */
    padding: 10px 20px; /* Отступы внутри кнопки */
    font-size: 16px; /* Размер текста */
    border-radius: 12px; /* Закругленные углы */
    cursor: pointer; /* Указатель на кнопке */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); /* Тень */
}

.btn-with-icon {
    width: 235px;
    margin-top: 16px;

    align-items: center; /* Выравнивание по вертикали */
    justify-content: center; /* Центрирование текста и изображения */
    gap: 8px; /* Отступ между изображением и текстом */

    font-size: 16px; /* Размер текста */
    font-weight: 500;
    border: none; /* Убирает стандартную рамку кнопки */
    border-radius: 8px; /* Скругленные углы */
    cursor: pointer; /* Указывает, что элемент кликабельный */
    transition: background-color 0.3s ease; /* Анимация при наведении */
    padding: 4px 20px 12px;
}

.btn-icon {
    width: 24px; /* Ширина изображения */
    height: 24px; /* Высота изображения */
    object-fit: contain; /* Корректное отображение изображения */
    position: relative;
    top: 5px;
}

#modalBackdrop p{
    font-size: 14px;
}

#modalBackdrop h1{
    font-size: 24px;
    font-weight: 500;
}
#spinButton {
    width: auto;
    padding: 15px 70px;
    font-size: 20px;
    margin: 20px auto 30px;
}