﻿.front-center-block {
/*    margin: 0 auto;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*    height: 951px;*/
    height: 100%;
}

.flex-direction-columns {
    flex-direction: column;
}

.margin-bottom-5-percent {
    margin-bottom: 5%;
}

.margin-top-5-persent {
    margin-top: 5%;
}

.text-align-center {
    text-align: center;
}

.font-size-8-rem {
    font-size: 8rem;
}

.letter-spacing-2px {
    letter-spacing: 2px;
}

.width-70-percent {
    width: 70%;
}

.front-p {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.4rem;
}

.front-center-block-button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.5, 1);
    border: none;
    border-radius: 5px;
    font-size: 1.4rem;
    margin: 3%;
}

.front-center-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    bottom: 5%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5%;
}

.front-center-links-img {
    width: auto;
    height: 30px;
}

.select-disable {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}



/*=================*/

.button-container {
    perspective: 1000px;
}

.pulse-button {
    display: inline-block;
    position: relative;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.3), 0 0 0 3px rgba(255, 215, 0, 0), inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

/* Плавающая анимация */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-15px) rotateX(5deg);
    }
}

/* Свечение */
@keyframes glow {
    from {
        box-shadow: 0 10px 30px rgba(30, 136, 229, 0.3), 0 0 0 3px rgba(255, 215, 0, 0), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }

    to {
        box-shadow: 0 10px 40px rgba(30, 136, 229, 0.6), 0 0 0 3px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Блестящие частицы */
.button-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70% );
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Эффект наведения */
.pulse-button:hover {
    background: var(--blue-dark);
    transform: translateY(-5px) scale(1.05) rotateX(10deg);
    animation-play-state: paused;
    box-shadow: 0 20px 50px rgba(30, 136, 229, 0.5), 0 0 0 6px rgba(255, 215, 0, 0.4), inset 0 0 40px rgba(255, 255, 255, 0.3);
}

    .pulse-button:hover .button-shine {
        animation-duration: 1s;
    }

/* Эффект нажатия */
.pulse-button:active {
    transform: translateY(2px) scale(0.95);
    transition: all 0.1s ease;
    box-shadow: 0 5px 20px rgba(30, 136, 229, 0.4), 0 0 0 8px rgba(255, 215, 0, 0.6), inset 0 0 50px rgba(255, 255, 255, 0.4);
    background: var(--blue-light);
}

/* Текстовый эффект */
.button-text {
    position: relative;
    z-index: 2;
    display: block;
    transition: transform 0.3s ease;
}

.pulse-button:hover .button-text {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Пульсирующие точки */
.pulse-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: pulseDot 2s infinite;
}

    .pulse-dot:nth-child(1) {
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .pulse-dot:nth-child(2) {
        top: 10%;
        right: 10%;
        animation-delay: 0.5s;
    }

    .pulse-dot:nth-child(3) {
        bottom: 10%;
        left: 10%;
        animation-delay: 1s;
    }

    .pulse-dot:nth-child(4) {
        bottom: 10%;
        right: 10%;
        animation-delay: 1.5s;
    }

@keyframes pulseDot {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Вспышка при наведении */
.hover-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    border-radius: 12px;
    pointer-events: none;
}

.pulse-button:hover .hover-flash {
    animation: flash 0.5s ease-out;
}

@keyframes flash {
    0% {
        opacity: 0.7;
        transform: scale(0.5);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Индикатор загрузки при нажатии */
.button-loading {
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

    .button-loading::after {
        content: '';
        position: absolute;
        height: 100%;
        width: 30%;
        background: var(--gold);
        animation: loading 1s infinite linear;
    }

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(330%);
    }
}

.pulse-button:active .button-loading {
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pulse-button {
        padding: 18px 30px;
        font-size: 16px;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }
}
