/* Загальний стиль */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    color: #fff;
    overflow: hidden;
}

/* Екран завантаження */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Спінер */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Контейнер відео */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Фонове розмите відео */
.background-video.blurred {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1);
}

/* Основне вертикальне відео */
.background-video.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Контейнер кнопок */
.button-container {
    position: fixed;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1;
    opacity: 0; /* Початково невидимий */
}

/* Стиль кнопки */
.animated-button {
    display: block;
    position: relative;
    width: auto;
    min-width: 150px;
    height: 50px;
    padding: 0 10px;
    background: var(--bg_color); /* Напівпрозорий фон */
    border: 2px solid var(--hv_bg_color);
    border-right: 0px;
    border-radius: 5% 0% 0% 5%;
    color: var(--text_color);
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    letter-spacing: 2px;
    overflow: hidden;
    cursor: pointer;
    transform: translateX(100%);
    animation: slide-in 0.5s ease-out forwards;
    transition: color 0.3s ease;
}

/* Анімація появи кнопок */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ефект заливки кольором при наведенні */
.animated-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: var(--hv_bg_color);;
    transition: right 0.5s ease;
    z-index: 0;
}

.animated-button:hover::before {
    right: 0; /* Заливка справа наліво */
}
.animated-button:hover {
    color: var(--hv_text_color);;
}

.animated-button span {
    position: relative;
    z-index: 1; /* Текст поверх заливки */
}
