/* Custom styles for Clash of Warriors */

/* Background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    z-index: -1;
    overflow: hidden;
}

/* Aircraft animation */
.aircraft {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M21,16V14L13,9V3.5C13,2.67 12.33,2 11.5,2S10,2.67 10,3.5V9L2,14V16L10,13.5V19L8,20.5V22L11.5,21L15,22V20.5L13,19V13.5L21,16Z"/></svg>') no-repeat;
    animation: fly 15s linear infinite;
    opacity: 0.6;
}

@keyframes fly {
    0% {
        transform: translateX(-100px) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(50vw) translateY(20vh) rotate(5deg);
    }
    100% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
    }
}

/* 3D Logo effect */
.logo-3d {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px #fff,
                 0 0 20px #fff,
                 0 0 30px #e60073,
                 0 0 40px #e60073;
    animation: glow 2s ease-in-out infinite alternate;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow 2s ease-in-out infinite alternate,
               gradient 10s linear infinite;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff,
                     0 0 20px #fff,
                     0 0 30px #e60073,
                     0 0 40px #e60073;
    }
    to {
        text-shadow: 0 0 20px #fff,
                     0 0 30px #ff4da6,
                     0 0 40px #ff4da6,
                     0 0 50px #ff4da6;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Game container */
.game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-3d {
        font-size: 1.5rem;
    }
    
    .game-container {
        height: 50vh;
    }
    
    .features .grid,
    .reviews .grid {
        grid-template-columns: 1fr;
    }
}

/* Section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #e60073;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4da6;
}

/* Language selector styling */
#languageSelector {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #e60073;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#languageSelector:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #ff4da6;
}

/* Fullscreen button styling */
#fullscreenBtn {
    background: linear-gradient(45deg, #e60073, #ff4da6);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fullscreenBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(230, 0, 115, 0.5);
} 