
body {
    font-family: 'Poppins', sans-serif; /* Применяем шрифт ко всему тексту */
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.text {
    font-size: 6rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: inline-block;
    margin: 0 5px;
}

.image {
    display: none;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    height: auto;
    opacity: 0;
    transition: opacity 2s ease;
}

.image.visible {
    display: block;
    opacity: 1;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
background: rgb(249,248,248);
background: linear-gradient(153deg, rgba(249,248,248,1) 0%, rgba(153,153,153,1) 65%);
    pointer-events: auto;
    opacity: 0;
    transition: opacity 1s ease;
    border-radius: 15px;
    color: black;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay.visible {
    opacity: 1;
}

.block {
    display: flex;
    align-items: center;
    margin: 50px 0;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    justify-content: center;
}

.block img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin-right: 40px; /* Увеличен отступ для большего расстояния между текстом и картинкой */
}

.block h2 {
    font-size: 3rem; /* Размер заголовка крупный */
    font-weight: 600; /* Полужирный для выделения */
}

.block p {
    font-size: 1.25rem; /* Текст описания */
    line-height: 1.5; /* Увеличенный межстрочный интервал для лучшей читабельности */
    max-width: 500px; /* Ограничиваем ширину текста для удобного чтения */
}

.visible {
    opacity: 1;
    transform: translateY(0);
    
}

/* Кнопка "Start" */




.start-button:hover {
    transform: scale(1.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .text {
        font-size: 5.5rem;
    }

    .block {
        flex-direction: column;
        text-align: center;
    }

    .block img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .block h2,
    .block p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .text {
        font-size: 3rem;
    }

    .block img {
        width: 100%;
    }

    .block h2 {
        font-size: 2rem;
    }

    .block p {
        font-size: 1rem;
    }
}

.result {
    font-size: 2.5em;
    margin-top: 20px;
}

input[type="range"] {
    width: 100%;
}

/* Новый стиль для контейнера ползунка */
.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

/* Кнопка "Start" */
.start-button {
position: fixed;
bottom: 20px;
right: 20px;
width: 80px;
height: 80px;
background-color: #ed5145;
border: none;
border-radius: 50%;
color: white;
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 1000;
box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.4);
animation: pulse 2s infinite;
transition: transform 0.3s ease;
}

.start-button:hover {
transform: scale(1.1);
}

/* Анимация пульсации */
@keyframes pulse {
0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.4);
}
50% {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.6);
}
100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.4);
}
}


button {
    background-color: rgba(0, 255, 255, 0);
    border: none;
    cursor: pointer;
}
