@font-face {
    font-family: 'FontOfKindness';
    src: url('Шрифты/FontOfKindness-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'FontOfKindness';
    src: url('Шрифты/FontOfKindness-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

/* Welcome Page Styles */
.welcome-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('download.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#floating-images-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-image {
    pointer-events: auto;
    user-select: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.welcome-container {
    text-align: center;
    z-index: 10;
    position: relative;
}

.welcome-title {
    font-family: 'FontOfKindness', sans-serif;
    font-weight: bold;
    font-size: 5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: welcomePulse 2s ease-in-out infinite;
}

.welcome-tagline {
    font-family: 'FontOfKindness', sans-serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin: -1rem 0 2rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
}

.welcome-hero-image {
    display: block;
    width: min(420px, 70vw);
    height: auto;
    margin: 0 auto 2.5rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

@keyframes welcomePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.continue-btn {
    font-family: 'FontOfKindness', sans-serif;
    font-weight: normal;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: lowercase;
    position: relative;
}

.blinking-btn {
    animation: blinkAnimation 1.5s ease-in-out infinite;
}

@keyframes blinkAnimation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                    0 0 40px rgba(255, 255, 255, 0.3),
                    0 0 60px rgba(255, 255, 255, 0.2);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                    0 0 60px rgba(255, 255, 255, 0.5),
                    0 0 90px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(255, 255, 255, 1),
                    0 0 80px rgba(255, 255, 255, 0.7),
                    0 0 120px rgba(255, 255, 255, 0.4);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                    0 0 60px rgba(255, 255, 255, 0.5),
                    0 0 90px rgba(255, 255, 255, 0.3);
    }
}

.continue-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5),
                0 0 60px rgba(255, 255, 255, 0.4);
}

/* Main Page Styles */
.main-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: #000000;
}

.gif-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fullscreen-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.transparent-box {
    width: 70%;
    height: 70%;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.animated-title {
    font-family: 'FontOfKindness', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    color: #000000;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    animation: jumpAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes jumpAnimation {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    10% {
        transform: translateY(-20px) scale(1.08) rotate(-2deg);
    }
    20% {
        transform: translateY(-30px) scale(1.12) rotate(2deg);
    }
    30% {
        transform: translateY(-35px) scale(1.15) rotate(-1deg);
    }
    40% {
        transform: translateY(-30px) scale(1.12) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) scale(1.08) rotate(-1deg);
    }
    60% {
        transform: translateY(-10px) scale(1.04) rotate(1deg);
    }
    70% {
        transform: translateY(-5px) scale(1.02) rotate(-0.5deg);
    }
    80% {
        transform: translateY(-2px) scale(1.01) rotate(0.5deg);
    }
    90% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.social-link svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.lore-section {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    flex-shrink: 1;
    min-height: 0;
}

.lore-text {
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0.5rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.lore-text strong {
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.contract-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.ca-block {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.ca-block label {
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ca-value {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ca-value input {
    flex: 1;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: #000000;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    font-family: 'Courier New', monospace;
}

.ca-value input::placeholder {
    color: rgba(0, 0, 0, 0.55);
}

.ca-value input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.copy-btn {
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #000000;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.audio-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.play-audio-btn,
.stop-audio-btn {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: #000000;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: bold;
}

.play-audio-btn:hover,
.stop-audio-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 3rem;
    }
    
    .continue-btn {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
    
    .transparent-box {
        width: 90%;
        height: 85%;
        padding: 1.5rem;
        gap: 0.8rem;
    }
    
    .animated-title {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .lore-section {
        padding: 0.8rem;
    }
    
    .lore-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .lore-text strong {
        font-size: 1rem;
    }
    
    .ca-block label {
        font-size: 0.9rem;
    }
    
    .ca-value input {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .copy-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

