body {
    font-family: 'MS Gothic', monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Fun mode background */
    background-image: url('https://assets.bonappetit.com/photos/57e07eca5a14a530086efca8/');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Boring mode background (default) */
    background-color: #fafafa;
    transition: all 0.3s ease;
}

/* Boring mode (default) */
body:not(.fun-mode) {
    background-image: none;
    background-color: #fafafa;
}

/* Fun mode */
body.fun-mode {
    background-image: url('https://assets.bonappetit.com/photos/57e07eca5a14a530086efca8/');
    background-color: transparent;
}

/* Hide flood effects in boring mode */
body.hide-flood .flood,
body.hide-flood [class*="flood"],
body.hide-flood [id*="flood"],
body:not(.fun-mode) .flood,
body:not(.fun-mode) [class*="flood"],
body:not(.fun-mode) [id*="flood"] {
    display: none !important;
}

/* Hide any fixed position elements that aren't our intended UI in boring mode */
body:not(.fun-mode) > div[style*="position: fixed"]:not(#transitionOverlay) {
    display: none !important;
}

.container {
    max-width: 600px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    
    /* Boring mode (default) */
    background: white;
    border: 2px solid #333;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    backdrop-filter: none;
}

/* Fun mode */
.container.fun-mode {
    border: 4px solid rgba(135, 206, 235, 0.8);
    border-radius: 20px;
    box-shadow: 
        inset 0 0 30px rgba(173, 216, 230, 0.3),
        0 0 50px rgba(135, 206, 235, 0.4),
        0 0 100px rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(2px);
    background: transparent;
}

.container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, 
        rgba(135, 206, 235, 0.6) 0%, 
        rgba(173, 216, 230, 0.4) 25%, 
        rgba(135, 206, 235, 0.6) 50%, 
        rgba(173, 216, 230, 0.4) 75%, 
        rgba(135, 206, 235, 0.6) 100%);
    border-radius: 24px;
    z-index: -1;
    animation: aquariumGlow 3s ease-in-out infinite alternate;
}

@keyframes aquariumGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.transition-text {
    color: white;
    font-size: 2.5rem;
    font-style: italic;
    font-family: 'Times New Roman', serif;
    text-align: center;
}

.transition-overlay.active .transition-text {
    animation: fadeInOut 2.5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    20%, 70% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-20px);
    }
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    
    /* Boring mode (default) */
    color: #333;
    text-shadow: none;
}

.message {
    font-size: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
    
    /* Boring mode (default) */
    color: #333;
    text-shadow: none;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    
    /* Boring mode (default) */
    color: #666;
    text-shadow: none;
}

/* Fun mode text colors */
.container.fun-mode .error-code {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.container.fun-mode .message {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.container.fun-mode .subtitle {
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Hide fun-mode-only elements in boring mode */
.container:not(.fun-mode) .aquarium-corner,
.container:not(.fun-mode) .water-shimmer,
.container:not(.fun-mode) .fish-gifs,
.container:not(.fun-mode) .lyrics-container {
    display: none;
}

/* Show fun-mode elements only in fun mode */
.container.fun-mode .aquarium-corner,
.container.fun-mode .water-shimmer,
.container.fun-mode .fish-gifs,
.container.fun-mode .lyrics-container {
    display: block;
}

.container.fun-mode .fish-gifs {
    display: flex;
}

/* Text switching between modes */
.boring-text,
.fun-text {
    transition: opacity 0.3s ease;
}

/* Default: show boring text, hide fun text */
.container:not(.fun-mode) .boring-text {
    display: inline;
}

.container:not(.fun-mode) .fun-text {
    display: none;
}

/* Fun mode: hide boring text, show fun text */
.container.fun-mode .boring-text {
    display: none;
}

.container.fun-mode .fun-text {
    display: inline;
}

/* Button container */
.button-container {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0 10px;
}

.home-button {
    /* Boring mode (default) */
    background: #333;
    color: white;
    border: 2px solid #333;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
}

/* Boring mode home button hover - simple, no glow */
.container:not(.fun-mode) .home-button:hover {
    background: #555;
    border-color: #555;
}

/* Fun mode home button */
.container.fun-mode .home-button {
    border-radius: 8px;
    background: linear-gradient(to bottom, 
        rgba(0, 150, 255, 0.95) 0%,
        rgba(0, 120, 255, 0.9) 45%,
        rgba(0, 100, 220, 0.85) 55%,
        rgba(0, 80, 200, 0.8) 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 80, 200, 0.8);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 10px rgba(0, 120, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Toggle button - default (make it fun) */
.toggle-button {
    background: #666;
    color: white;
    border: 2px solid #666;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    font-size: 12px;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.toggle-button:hover {
    background: #777;
    border-color: #777;
}

/* Toggle button when in fun mode (make it boring) - glassy effect */
.container.fun-mode .toggle-button {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.container.fun-mode .toggle-button:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Fun mode home button hover - with glow effects */
.container.fun-mode .home-button:hover {
    background: linear-gradient(to bottom, 
        rgba(30, 170, 255, 1) 0%,
        rgba(0, 140, 255, 0.95) 45%,
        rgba(0, 120, 240, 0.9) 55%,
        rgba(0, 100, 220, 0.85) 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 20px rgba(236, 255, 165, 0.8),
        0 0 40px rgba(222, 255, 160, 0.87),
        0 0 60px rgba(142, 248, 160, 0.911);
}

.home-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.aquarium-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(135, 206, 235, 0.9);
}

.aquarium-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-radius: 10px 0 0 0;
}

.aquarium-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 10px 0 0;
}

.aquarium-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 10px;
}

.aquarium-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 10px 0;
}

.water-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(173, 216, 230, 0.1) 0%,
        transparent 50%
    );
    border-radius: 20px;
    pointer-events: none;
}

.fish-gifs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.fish-gif {
    width: 80px;
    height: auto;
    border-radius: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fish-gif:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lyrics-container {
    margin: 3rem 0;
    font-family: 'Times New Roman', serif;
    font-size: 1.8rem;
    font-style: italic;
    font-weight: normal;
    line-height: 1.6;
    height: 2.5rem;
    position: relative;
}

.lyric-line {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    white-space: nowrap;
}

.lyric-line.active {
    animation: showLine 2s ease-in-out;
}

@keyframes showLine {
    0% { 
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    20%, 80% { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    .message {
        font-size: 1.3rem;
    }
    .subtitle {
        font-size: 1rem;
    }
}
