/* Custom Styles for Monster Survivors */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Typography enhancements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

/* Header animation */
header h1 {
    animation: fadeInDown 1s ease-in-out;
}

header p {
    animation: fadeInUp 1s ease-in-out 0.3s forwards;
    opacity: 0;
}

/* Game container with subtle border glow on hover */
#play .iframe-container {
    transition: all 0.3s ease;
}

#play .iframe-container:hover {
    box-shadow: 0 0 25px rgba(0, 122, 255, 0.5);
}

/* Card hover effects */
.bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Button pulse animation for call-to-action */
.bg-white.text-apple-blue {
    animation: pulse 2s infinite;
}

/* Custom animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 122, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    header {
        text-align: center;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #play iframe {
        height: 50vh;
    }
}

/* Fix for iframe aspect ratio on iOS devices */
@supports (-webkit-overflow-scrolling: touch) {
    #play .aspect-video {
        height: 50vh;
    }
} 