/* Custom styles for Draw Climber website */

/* Background pattern */
body {
    background-color: var(--background-pink);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.1) 1px, transparent 0),
        linear-gradient(45deg, rgba(74, 144, 226, 0.1), rgba(255, 215, 0, 0.1));
    background-size: 20px 20px, 100% 100%;
}

/* Logo animation */
.logo-gradient {
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-yellow));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s ease infinite;
}

.button{
    margin-left: 20px;
    margin-top: 30px;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Game container styles */
.game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive iframe */
.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    aspect-ratio: 16/9;
}

/* Section styles */
section {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Feature card hover effects */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#languageSelect {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    min-width: 120px;
    outline: none;
}

#languageSelect:hover {
    border-color: #999;
}

/* Language transition animation */
[data-translate] {
    transition: opacity 0.3s ease;
}

.language-changing [data-translate] {
    opacity: 0;
}

/* Responsive styles for language selector */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 6px;
    }

    #languageSelect {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* Fullscreen button styles */
.fullscreen-button {
    display: block;
    margin-left: auto;
    margin-right: 20px;
    margin-top: 20px;
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fullscreen-button:hover {
    background-color: #357abd;
}

/* Review card styles */
.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
}

/* Footer styles */
footer {
    background: #1a202c;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer a {
    color: #63b3ed;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #90cdf4;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        margin: 0;
        border-radius: 0;
    }
    
    section {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .language-selector {
        position: static;
        margin: 1rem;
        text-align: center;
    }
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 