/* Custom styles for Nuclear Day website */

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
}

/* Dynamic background animation */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    overflow: hidden;
}

.dynamic-bg div {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ecf0f1"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 1s);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* Snow text effect */
.snow-text {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ecf0f1, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: snowfall 3s linear infinite;
}

.snow-text::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8), transparent);
    animation: snow 3s linear infinite;
}

@keyframes snow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Game container styles */
.game-container {
    transition: all 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.game-container:hover {
    transform: scale(1.01);
    border-color: rgba(52, 152, 219, 0.6);
}

/* Feature card hover effects */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

/* Screenshot card hover effects */
.screenshot-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.screenshot-card:hover {
    transform: scale(1.05);
    border-color: rgba(52, 152, 219, 0.5);
}

/* Language switcher button styles */
.language-btn {
    transition: all 0.2s ease;
    color: #ecf0f1;
}

.language-btn:hover {
    background-color: rgba(52, 152, 219, 0.6);
}

/* Rating card styles */
.rating-card, .keywords-card, .love-card, .control-card, .review-card {
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.rating-card:hover, .keywords-card:hover, .love-card:hover, .control-card:hover, .review-card:hover {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Keyword tag styles */
.keywords-card span {
    background-color: #3498db;
    color: #ecf0f1;
    transition: all 0.2s ease;
}

.keywords-card span:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-container {
        height: 400px;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(236, 240, 241, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #34495e;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text selection */
::selection {
    background-color: rgba(52, 152, 219, 0.3);
    color: #ecf0f1;
}

/* Links */
a {
    color: #3498db;
    transition: all 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #ecf0f1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Prose content */
.prose {
    color: #bdc3c7;
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid rgba(52, 152, 219, 0.3);
}

/* Active language button */
.language-btn.active {
    background-color: #3498db;
    color: #ecf0f1;
} 