:root {
    --primary-color: #4a7bff;
    --primary-dark: #3867e0;
    --secondary-color: #34d399;
    --gray-color: #6b7280;
    --light-color: #f9fafb;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-container {
    max-width: 900px;
    margin: 2rem auto 4rem;
    padding: 2rem 1rem;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.game-header p {
    color: var(--gray-color);
}

.game-wrapper {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.stat-box {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    flex: 1;
    text-align: center;
    margin: 0 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Game Board */
.game-board-container {
    position: relative;
    max-width: 500px;
    height: 350px;
    margin: 0 auto 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#gameCanvas {
    width: 100%;
    height: 100%;
    background-color: #111;
    display: block;
}

/* Game Overlay (Pause, Game Over) */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.overlay-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-controls .btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.game-controls .btn:hover {
    background-color: var(--primary-dark);
}

.game-controls .btn.secondary {
    background-color: var(--secondary-color);
}

.game-controls .btn.secondary:hover {
    background-color: #2bb583;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    max-width: 250px;
    margin: 2rem auto 0;
}

.control-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:active {
    transform: scale(0.95);
    background-color: var(--primary-dark);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1s infinite;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-board-container {
        height: 300px;
    }
    
    .mobile-controls {
        display: block;
    }
}

@media (max-width: 480px) {
    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-box {
        margin: 0;
    }
    
    .game-board-container {
        height: 250px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-controls .btn {
        width: 100%;
    }
} 