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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #FFD700 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255,215,0,0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(0,0,0,0.2) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px;
    background-position: 0 0, 10px 10px;
    pointer-events: none;
    z-index: 1;
}

.app-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.ultra-banana-mode {
    animation: rainbowPulse 2s ease-in-out infinite;
}

@keyframes rainbowPulse {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.floating-banana {
    position: fixed;
    font-size: 40px;
    pointer-events: none;
    z-index: 9999;
    animation: floatAway 2s ease-out forwards;
}

@keyframes floatAway {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

.header {
    background: linear-gradient(135deg, #FF6B35 0%, #FFD700 50%, #F7931E 100%);
    border: 6px solid #000;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 0 #000,
        0 8px 30px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.banana-header::before {
    content: '💥🍌';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.banana-header::after {
    content: '⚡🍌';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 60px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite 1.5s;
}

.banana-mascot {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    font-size: 80px;
    cursor: pointer;
    animation: wiggle 1s ease-in-out infinite;
    transition: transform 0.2s;
}

.banana-mascot:hover {
    transform: translateY(-50%) scale(1.2);
}

@keyframes wiggle {
    0%, 100% { transform: translateY(-50%) rotate(-5deg); }
    50% { transform: translateY(-50%) rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.main-title {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #FFF;
    text-shadow: 
        4px 4px 0 #000,
        8px 8px 0 rgba(0,0,0,0.3);
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.subtitle {
    font-size: 1.5rem;
    color: #FFF;
    font-weight: 700;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    color: #000;
    font-style: italic;
    text-shadow: 1px 1px 0 #FFD700;
    font-weight: 700;
}

.banana-power-meter {
    background: #FFF;
    border: 6px solid #000;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 
        0 6px 0 #000,
        0 6px 20px rgba(0,0,0,0.3);
}

.power-label {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    text-align: center;
    color: #000;
    margin-bottom: 10px;
}

.power-bar-container {
    width: 100%;
    height: 40px;
    background: #E0E0E0;
    border: 4px solid #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.power-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
    transition: width 0.5s ease;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
}

.power-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.3) 10px,
        rgba(255,255,255,0.3) 20px
    );
    animation: slideStripes 1s linear infinite;
}

@keyframes slideStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.power-text {
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: #000;
    margin-top: 10px;
}

.banana-fact {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.sound-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #FFD700;
    text-shadow: 
        4px 4px 0 #000,
        8px 8px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    animation: soundEffect 0.5s ease-out;
    pointer-events: none;
    background: rgba(0,0,0,0.8);
    padding: 20px 40px;
    border-radius: 15px;
    border: 4px solid #FFD700;
}

@keyframes soundEffect {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

.main-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .banana-mascot {
        font-size: 50px;
    }
}

.controls-panel {
    background: #FFF;
    border: 6px solid #000;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 6px 0 #000,
        0 6px 20px rgba(0,0,0,0.3);
}

.banana-panel {
    border-color: #FFD700;
    box-shadow: 
        0 6px 0 #FFD700,
        0 6px 20px rgba(255, 215, 0, 0.4);
}

.control-section {
    margin-bottom: 20px;
}

.control-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.flex-grow {
    flex: 1;
}

.control-label {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.username-input,
.issue-input,
.tagline-input {
    width: 100%;
    padding: 12px 15px;
    border: 4px solid #000;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    background: #FFF;
    transition: all 0.2s;
}

.banana-input {
    border-color: #FFD700;
}

.username-input:focus,
.issue-input:focus,
.tagline-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.banana-compatibility {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #FFD700;
}

.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.style-btn {
    padding: 12px;
    border: 4px solid #000;
    border-radius: 8px;
    background: #FFF;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.banana-btn {
    border-color: #FFD700;
}

.style-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #FFD700;
}

.style-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #FF6B35;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 15px 20px;
    border: 4px solid #000;
    border-radius: 10px;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #000;
}

.btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #000;
}

.btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #000;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary, .banana-btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 900;
}

.btn-secondary, .banana-btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFF;
}

.btn-success, .banana-btn-success {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: #FFF;
}

.btn-info, .banana-btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #000;
    font-weight: 900;
}

.btn-warning, .banana-btn-warning {
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    color: #000;
    font-weight: 900;
}

.btn-outline, .banana-btn-outline {
    background: #FFF;
    color: #000;
    border-color: #FFD700;
}

.btn-small {
    font-size: 0.9rem;
    padding: 10px 15px;
}

.banana-stats {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    border: 3px solid #FFD700;
}

.banana-stats p {
    font-weight: 700;
    text-align: center;
    margin: 5px 0;
}

.achievement {
    color: #FF6B35;
    animation: pulse 1s ease-in-out infinite;
}

.preview-panel {
    background: #FFF;
    border: 6px solid #000;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 6px 0 #000,
        0 6px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
}

.banana-preview {
    border-color: #FFD700;
    box-shadow: 
        0 6px 0 #FFD700,
        0 6px 20px rgba(255, 215, 0, 0.4);
}

.preview-canvas {
    max-width: 100%;
    height: auto;
    border: 4px solid #FFD700;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

.preview-placeholder {
    text-align: center;
}

.placeholder-banana {
    font-size: 120px;
    animation: wiggle 2s ease-in-out infinite;
    display: block;
    margin-bottom: 20px;
}

.preview-placeholder p {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #666;
}

.banana-debug-console {
    background: #000;
    border: 6px solid #FFD700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 
        0 6px 0 #FFD700,
        0 6px 20px rgba(255, 215, 0, 0.4);
}

.banana-debug-console h3 {
    font-family: 'Bangers', cursive;
    color: #FFD700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.debug-output {
    background: #1a1a1a;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.debug-message {
    font-family: monospace;
    color: #00FF00;
    margin: 5px 0;
    font-size: 0.9rem;
}

.gallery {
    background: #FFF;
    border: 6px solid #000;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 6px 0 #000,
        0 6px 20px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.banana-gallery {
    border-color: #FFD700;
    box-shadow: 
        0 6px 0 #FFD700,
        0 6px 20px rgba(255, 215, 0, 0.4);
}

.gallery-title {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(255, 215, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    border: 4px solid #000;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background: #F0F0F0;
}

.banana-gallery-item {
    border-color: #FFD700;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-info {
    padding: 10px;
    background: #FFF;
    border-top: 3px solid #FFD700;
}

.gallery-info p {
    font-weight: 700;
    color: #000;
    text-align: center;
    margin: 2px 0;
}

.banana-rating {
    font-size: 1.2rem;
    margin: 5px 0;
}

.banana-philosophy {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 6px solid #000;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 6px 0 #000,
        0 6px 20px rgba(0,0,0,0.3);
}

.philosophy-title {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.philosophy-content {
    background: rgba(255,255,255,0.9);
    border: 4px solid #000;
    border-radius: 10px;
    padding: 20px;
}

.philosophy-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.philosophy-emphasis {
    font-family: 'Bangers', cursive;
    font-size: 1.3rem !important;
    text-align: center;
    color: #000 !important;
    margin-top: 20px !important;
}

.footer {
    background: #000;
    color: #FFF;
    border: 6px solid #FFD700;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.footer p {
    margin: 5px 0;
    font-size: 1rem;
}

.footer-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #FF6B35;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.banana-tech {
    color: #FFD700;
    font-weight: 900;
}

.easter-egg {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 10px;
}

.easter-egg-hint {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 5px;
    color: #FFD700;
}

.text-xs {
    font-size: 0.75rem;
    color: #666;
}

/* Scrollbar styling for debug console */
.debug-output::-webkit-scrollbar {
    width: 8px;
}

.debug-output::-webkit-scrollbar-track {
    background: #000;
}

.debug-output::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

.debug-output::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}