@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Oxygen');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    overflow: hidden;
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Non-prefixed version, currently supported by all browsers */
}

#container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#question {
    font-size: 36px;
    margin-bottom: 20px;
    transition: color 2s ease;
}

#buttons {
    display: flex;
    justify-content: center;
    gap: 20px; 
}

.button {
    width: 150px;
    padding: 15px;
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    border: 2px solid #000;
    transition: all 0.5s ease; 
}

#noButton {
    position: relative;
    transform: translate(0, 0); 
    color: #000 !important;
}


#crack {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    transition: all 1s ease;
}


/* Анимация испарения */
.disappear {
    animation: disappearEffect 1.5s forwards; 
}

@keyframes disappearEffect {
    0% {
        opacity: 1; /* Полностью видимая кнопка */
        transform: scale(1) rotate(0deg); /* Нормальный размер */
        filter: blur(0px); /* Без размытия */
    }
    50% {
        opacity: 0.5; /* Полупрозрачность */
        transform: scale(1.2) rotate(10deg); /* Увеличение и легкий поворот */
        filter: blur(4px); /* Легкое размытие */
    }
    100% {
        opacity: 0; /* Полностью невидимая кнопка */
        transform: scale(0.5) rotate(-15deg); /* Уменьшение размера */
        filter: blur(10px); /* Максимальное размытие */
    }
}


body.dark-mode,
#question.dark-mode,
#yesButton.button-dark {
    transition: background-color 2s ease, color 2s ease, border-color 2s ease; 
}


.dark-mode {
    background-color: black; 
    color: red;             
}

.red{
    color: red;   
}

/* Темный стиль для кнопки "Да" */
.button-dark {
    border: 1px solid rgb(255, 0, 0) !important;       /* Красная обводка */
    color: red;              /* Красный текст */
}

#videoElement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Ширина видео */
    height: 100vh; /* Высота видео */
    z-index: 9999; /* Поверх всех элементов */
    display: none; /* Скрыто по умолчанию */
    object-fit: cover; /* Масштабирование видео для покрытия экрана */
}

#finalMessage {
    display: none; /* Скрываем по умолчанию */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 9999;
    opacity: 0; /* Для плавного появления */
    flex-direction: column; /* Устанавливаем flex для центрирования */
}

#mainText {
    font-size: 100px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.2em;
}

#subText {
    font-size: 20px;
    margin-top: 10px;
    letter-spacing: 0.2em;
}

/* Листай вниз */
#scrollPrompt {
    display: none;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: fadeIn 2s forwards;
    z-index: 1000;
}

#scrollText {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

#arrowDown {
    font-size: 36px;
    margin-top: 10px;
}

#gifContainer {
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 1000;
    display: none; /* Изначально скрыто */
    flex-direction: column; /* Размещаем элементы вертикально */
    align-items: center;
    justify-content: flex-end;
    gap: 20px; /* Расстояние между гифками */
    transform: translateY(0);
}

.gif {
    width: 25%; /* Размер гифок */
    height: auto;
    opacity: 0;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gif:nth-child(odd) {
    align-self: flex-start; /* Гифки в левых углах */
}

.gif:nth-child(even) {
    align-self: flex-end; /* Гифки в правых углах */
}

#scrollPrompt {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    bottom: 5%; /* Надпись внизу экрана */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    animation: fadeIn 2s forwards; /* Анимация плавного появления */
}


/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Контейнер для фона */
#backgroundContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    display: flex;
    flex-direction: column; /* Располагаем строки вертикально */
    justify-content: center;
    align-items: center;
    transform: rotate(-45deg); /* Поворот контейнера */
}

/* Строка текста */
.textRow {
    display: flex; /* Текст в строке горизонтально */
    justify-content: center;
    align-items: center;
    width: 100%; /* Заполняет ширину экрана */
    white-space: nowrap; /* Текст не переносится */
}

/* Текст в строках */
.backgroundText {
    font-size: 5vw; /* Размер текста */
    color: rgb(255 255 255 / 11%); /* Полупрозрачный текст */
    margin: 1vw; /* Промежуток между словами */
    opacity: 1; /* Полностью видимый текст */
    user-select: none; /* Текст нельзя выделить */
}

/* Анимация появления */
@keyframes fadeInText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Контейнер для дорожной карты */
#roadmapContainer {
    display: none; /* По умолчанию скрыто */
    position: relative;
    position: absolute;
    top: 62%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Полоска для целей */
#roadmapLine {
    position: absolute;
    top: 0;
    left: 50%; 
    transform: translateX(-50%);
    width: 4px; 
    height: 100%; 
    background-color: white; 
    z-index: 1; 
}


.roadmapItem {
    position: relative;
    margin: 15px 0; 
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    z-index: 2; 
    max-width: 100%; 
}


.roadmapItem:nth-child(even) {
    flex-direction: row-reverse;
}


.roadmapCircle {
    width: 35px;
    height: 35px;
    background-color: #007bff00;
    border-radius: 50%;
    border: 3px solid white; 
    z-index: 3;
    margin: 0 15px; 
}


.roadmapConnector {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.6); 
    margin: 0 15px;
}


.roadmapText {
    background-color: rgba(255, 255, 255, 0.164); 
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 40%; 
    text-align: center; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

#mobileMessage,
#mobileDescription{
    display: none;
}


@media screen and (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: black;
        color: white;
        text-align: center;
        padding: 20px;
        overflow: hidden;
        height: 100vh;
    }

    #roadmapContainer,
    #finalMessage,
    #backgroundContainer,
    #buttons {
        display: none; 
    }

    #question{
        margin-bottom: 50%;
    }

    #mobileMessage {
        display: block;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    #mobileDescription {
        display: block;
        font-size: 16px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.7);
    }
}

#linksContainer {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: absolute;
    top: 70%; /* Положение под текстом */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.finalLink {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.137);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.finalLink:hover {
    background-color: white;
    color: black;
    transform: scale(1.1);
}
