* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
}

.aquarium-frame {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.1);
}

.aquarium-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid #f8fafc;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: 
        0 0 0 2px #06b6d4,
        inset 0 0 20px rgba(6, 182, 212, 0.2);
}

.frame-decoration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        #e2e8f0 0px,
        #e2e8f0 10px,
        #cbd5e1 10px,
        #cbd5e1 20px
    );
    border-radius: 8px;
}

.frame-decoration.top {
    top: -8px;
}

.frame-decoration.bottom {
    bottom: -8px;
}

#canvas {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#canvas:active {
    transform: scale(0.98);
}

.control-panel {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.control-btn {
    position: relative;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.control-btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.yellow-btn {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.blue-btn {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
}

.red-btn {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: inherit;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.control-btn:active::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-label {
    position: relative;
    z-index: 1;
}

.fisher-price-logo {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #dc2626;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.settings-panel {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.settings-panel label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-panel input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.settings-panel input[type="range"] {
    width: 100px;
    accent-color: #3b82f6;
}

.app-footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.app-footer p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.app-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.app-footer a:hover {
    color: #2563eb;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    #canvas {
        width: 100%;
        height: 400px;
    }
    
    .control-panel {
        gap: 15px;
    }
    
    .control-btn {
        padding: 12px 20px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .settings-panel {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .fisher-price-logo {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .control-panel {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 150px;
    }
    
    #canvas {
        height: 300px;
    }
}

/* Fun animations */
@keyframes sparkle {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

.sparkle {
    animation: sparkle 1s ease-in-out infinite;
}

/* Nostalgic vignette effect */
.nostalgia-mode {
    position: relative;
}

.nostalgia-mode::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(139, 69, 19, 0.1) 100%);
    pointer-events: none;
    border-radius: inherit;
}