/* Child-friendly, colorful design - Farben-Quest Theme */
body {
    margin: 0;
    padding: 20px;
    font-family: 'Comic Sans MS', 'Segoe UI Emoji', system-ui, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #a29bfe 0%, #d6a2e8 50%, #ffeaa7 100%);
    background-attachment: fixed;
    color: #2d3748;
    min-height: 100vh;
}

/* Game header with back button */
.game-header {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 1rem;
    gap: 20px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Fun header styling - farben-quest theme */
h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 
        2px 2px 0px #6c5ce7,
        4px 4px 0px #a29bfe,
        6px 6px 10px rgba(0,0,0,0.3);
    font-weight: bold;
    letter-spacing: 1px;
    animation: wiggle 3s ease-in-out infinite;
    line-height: 1.2;
    flex: 1;
    text-align: center;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}

.game-description p {
    margin: 0;
    font-size: 1.2rem;
    color: #1a202c;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.95);
    padding: 15px 30px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    line-height: 1.4;
    border: 3px solid #6c5ce7;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* Canvas container */
#p5-container {
    display: flex;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
    min-height: 600px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        0 0 0 5px rgba(255,255,255,0.8),
        0 0 0 10px #6c5ce7;
    border: 3px solid #fff;
    overflow: visible;
}

#p5-container canvas {
    cursor: pointer;
}