/* Custom styles for Volley Beans website */

/* Root variables */
:root {
    --primary-color: #FFD700;
    --secondary-color: #FFFFFF;
    --accent-color: #FF6B6B;
    --text-color: #333333;
    --background-color: #FFF9E6;
}

/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Rainbow text animation */
.rainbow-text {
    background: linear-gradient(
        to right,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #8b00ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 5s linear infinite;
    background-size: 200% auto;
}

@keyframes rainbow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 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);
    transition: all 0.3s ease;
}

.game-container.fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #FFC800;
    transform: translateY(-2px);
}

/* Card styles */
.card {
    background-color: var(--secondary-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Language selector styles */
.language-selector {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        height: 300px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .language-selector {
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .game-container {
        height: 400px;
    }
}

@media (min-width: 1025px) {
    .game-container {
        height: 600px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer styles */
footer {
    background-color: #333;
    color: var(--secondary-color);
    padding: 2rem 0;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFC800;
}

/* SEO-friendly heading styles */
h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
} 