html {
    height: 100%; /* Ensure html takes full height */
    scroll-behavior: smooth; /* Add smooth scrolling for anchor links */
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #f0e6d2; /* Light beige background like logo */
    color: #3a3a3a; /* Dark color for text */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 10px; /* Smaller base font size for pixel feel */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack elements vertically */
    min-height: 100vh; /* Ensure body takes at least full viewport height */
}

a {
    color: #005a9c; /* A blue tone from the logo */
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    /* Prevent blurry upscaling */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

header, footer {
    background-color: #4a4a4a; /* Dark grey, complement */
    color: #f0e6d2; /* Light text on dark */
    padding: 10px 20px;
    border-bottom: 4px solid #3a3a3a;
}

footer {
    border-top: 4px solid #3a3a3a;
    border-bottom: none;
    margin-top: 30px;
    text-align: center;
}

.header-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px; /* Add some space between flex items */
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px; /* Add some space between flex items */
}

.logo-area {
    display: flex;
    align-items: center;
    margin: 0;
    color: #cccccc; /* Lighter grey */
}

#logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    margin-right: 15px;
}

.title-subtitle {
    display: flex;
    flex-direction: column;
}

.site-name {
    font-size: 1.8em; /* Relative to body font-size */
    margin: 0;
    color: #ffffff; /* White for contrast */
    text-shadow: 2px 2px #000000; /* Basic pixel shadow */
}

.subtitle {
    font-size: 0.9em;
    margin: 0;
    color: #cccccc; /* Lighter grey */
}

/* Social Icons Styling */
.social-icons a {
    color: #f0e6d2; /* Match header text color */
    font-size: 1.6em; /* Adjust icon size */
    margin-left: 15px; /* Space between icons */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff; /* Brighter on hover */
}

/* Add specific styles for footer social icons */
.footer-social {
    display: flex; /* Use flex for better alignment */
    justify-content: center; /* Center the icons */
}

.footer-social a {
    font-size: 1.6em; /* Same size as header icons */
    margin-left: 15px; /* Same spacing as header icons */
}

/* Basic Menu Styling */
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.menu li {
    margin-left: 20px;
    display: flex;
    align-items: flex-end;
}

.menu a {
    color: #f0e6d2;
    font-size: 1.1em;
}

.menu a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Burger Menu - Hidden on Desktop */
.burger-menu {
    display: none;
    background: none;
    border: none;
    color: #f0e6d2;
    font-size: 24px;
    cursor: pointer;
}

main {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
    flex-grow: 1; /* Allow main content to grow and push footer down */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Site Slogan - Slider Header */
.site-slogan {
    background-color: #d9534f; /* Match slider arrow background */
    border: 4px solid #3a3a3a; /* Match slider main border */
    border-bottom: none; /* Connect to slider below */
    box-shadow: 
        4px 4px 0px #000000,
        0 0 15px rgba(217, 83, 79, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.3); /* Add hard shadow to match slider + glow effects */
    padding: 15px 20px;
    margin-bottom: 0; /* No gap between slogan and slider */
    text-align: center;
    transition: all 0.3s ease; /* Smooth transitions like slider elements */
    max-width: 960px; /* Match slider max-width */
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Enable absolute positioning for tooltip */
}



.site-slogan h2 {
    margin: 0;
    font-size: 1.1em;
    color: #ffffff; /* White text like slider elements */
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); /* Match slider text shadow */
    border-bottom: none; /* Override default h2 border styling */
    padding-bottom: 0; /* Override default h2 padding */
}

/* Footnote indicator */
.footnote-indicator {
    font-size: 0.8em;
    vertical-align: super;
    color: #ffcccc; /* Slightly lighter color to stand out */
    margin-left: 2px;
    animation: footnoteGlow 3s ease-in-out infinite;
    cursor: help; /* Show help cursor on hover */
}

@keyframes footnoteGlow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
    50% {
        opacity: 0.7;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.8),
            0 0 5px rgba(255, 204, 204, 0.5);
    }
}

/* Slogan Tooltip */
.slogan-tooltip {
    position: absolute;
    left: 50%;
    bottom: -45px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #3a3a3a;
    border-radius: 0; /* Keep pixel art style */
    padding: 8px 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 15; /* Above other elements */
    box-shadow: 2px 2px 0px #000000;
    pointer-events: auto; /* Allow interaction with tooltip */
    cursor: text; /* Text cursor to indicate selectable text */
}

.slogan-tooltip span {
    color: #f0e6d2;
    font-size: 1em;
    text-shadow: 1px 1px 0px #000000;
    user-select: text; /* Make text selectable */
    -webkit-user-select: text; /* Safari */
    -moz-user-select: text; /* Firefox */
    -ms-user-select: text; /* IE/Edge */
}

.site-slogan:hover .slogan-tooltip,
.slogan-tooltip:hover {
    opacity: 1;
    visibility: visible;
}

/* Arrow pointing up to header */
.slogan-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #3a3a3a;
}

.slogan-tooltip::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0, 0, 0, 0.9);
}

main h2 {
    color: #d9534f; /* A reddish tone from the logo */
    border-bottom: 2px solid #4a4a4a;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.footer-links a {
    margin: 0 10px;
    color: #f0e6d2;
}

/* Make footer links container flexible */
.footer-links {
    display: flex;
    align-items: center;
    width: 100%; /* Ensure it takes full width for flex alignment */
    justify-content: flex-start; /* Default alignment */
}

.copyright {
    margin-top: 10px;
    font-size: 0.8em;
    color: #cccccc;
    width: 100%; /* Ensure it takes full width in flex context */
}

/* Desktop-specific social icon sizing */
@media (min-width: 769px) {
    .social-menu-item .social-icons a {
        font-size: 1.6em;
    }
}

/* Responsive Design: Burger Menu */
@media (max-width: 768px) {
    /* Ensure body doesn't interfere with floating header */
    body {
        padding-top: 0; /* Reset any top padding */
        margin-top: 0; /* Reset any top margin */
    }

    /* Make header floating on mobile */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999; /* Ensure header stays above content but below nav menu */
        width: 100%;
        box-sizing: border-box;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    .logo-area {
        flex: 1; /* Take available space */
        display: flex;
        align-items: center;
        min-width: 0; /* Prevent overflow */
    }

    .menu {
        display: flex;
        justify-content: flex-end;
        position: relative;
        align-items: center;
    }

    .nav-links {
        display: none !important; /* Hide links by default - use !important to override any conflicts */
        flex-direction: column;
        width: 100%; /* Use 100% instead of 100vw to prevent horizontal scroll */
        background-color: #4a4a4a;
        position: fixed; /* Fixed positioning for full width */
        top: 72px; /* Reduced gap - position right under header */
        left: 0;
        right: 0;
        z-index: 1000;
        border-top: 2px solid #3a3a3a;
        max-height: calc(100vh - 72px); /* Prevent overflow */
        overflow-y: auto; /* Allow scrolling if needed */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        box-sizing: border-box; /* Include padding/borders in width calculation */
    }

    .nav-links.active {
        display: flex !important; /* Show when active - use !important to ensure it overrides the hidden state */
    }

    .menu li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #5a5a5a;
        box-sizing: border-box; /* Include padding/borders in width calculation */
        display: flex; /* Use flex for better alignment */
        justify-content: center; /* Center the content */
        align-items: center; /* Center vertically */
    }

     .menu li:last-child {
        border-bottom: none;
    }

    /* Override for social menu item specifically */
    .menu li.social-menu-item {
        border-bottom: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important; /* Keep flex but override other properties */
        justify-content: center !important;
        align-items: center !important;
    }

    .menu a {
        display: block;
        padding: 15px 20px; /* Increase padding for better touch targets */
        width: 100%;
        text-align: center; /* Center the text within the link */
        color: #f0e6d2; /* Ensure proper color */
        text-decoration: none; /* Remove underline */
        font-size: 1.1em; /* Slightly larger font for mobile */
        box-sizing: border-box; /* Include padding in width calculation */
        transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
    }

    .menu a:hover {
        background-color: #5a5a5a; /* Darker background on hover */
        color: #ffffff; /* Brighter text on hover */
    }

    /* Social icons in mobile menu */
    .social-menu-item {
        border-bottom: none !important; /* Remove border for social item */
        padding: 20px 0; /* Remove horizontal padding to prevent centering issues */
        text-align: center !important; /* Force center alignment */
        margin: 0 !important; /* Reset any inherited margin */
        width: 100% !important; /* Ensure full width */
        display: flex !important; /* Override any inherited display */
        justify-content: center !important; /* Force center alignment */
        align-items: center !important; /* Center vertically */
    }

    .social-menu-item .social-icons {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important; /* Center vertically within the container */
        gap: 30px; /* Reduced gap to accommodate third icon */
        margin: 0; /* Remove margin */
        padding: 0; /* Remove padding */
        width: auto; /* Let it size naturally */
        flex-shrink: 0; /* Prevent shrinking */
    }

    .social-menu-item .social-icons a {
        color: #f0e6d2 !important;
        font-size: 2.2em !important; /* Slightly larger for better visibility */
        padding: 12px !important; /* Add some padding for better touch targets */
        width: auto !important;
        height: auto !important;
        display: flex !important; /* Use flex instead of inline-block for better control */
        align-items: center !important;
        justify-content: center !important;
        transition: color 0.3s ease !important;
        text-decoration: none !important; /* Ensure no underline */
        margin: 0 !important; /* Remove any inherited margins */
        flex-shrink: 0 !important; /* Prevent shrinking */
    }

    .social-menu-item .social-icons a:hover {
        color: #ffffff;
    }

    .burger-menu {
        display: block; /* Show burger on mobile */
        position: relative;
        margin-right: 0;
    }

    .site-name {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 0.8em;
    }

    /* Fix main content area responsive layout */
    main {
        margin: 0 auto; /* Remove top margin since header is floating */
        padding: 80px 10px 10px 10px; /* Add top padding to account for floating header */
        max-width: 100%; /* Ensure it doesn't exceed screen width */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    /* Mobile site slogan - Slider header */
    .site-slogan {
        border: 2px solid #3a3a3a; /* Thinner border on mobile */
        border-bottom: none; /* Still connect to slider */
        padding: 12px 16px; /* Slightly reduced padding for mobile */
        margin-bottom: 0; /* Maintain connection */
        box-shadow: 
            2px 2px 0px #000000,
            0 0 12px rgba(217, 83, 79, 0.5),
            inset 0 0 8px rgba(0, 0, 0, 0.3); /* Add proportional hard shadow + scaled down glow for mobile */
    }

    .site-slogan h2 {
        font-size: 0.95em; /* Slightly smaller font on mobile */
        line-height: 1.3; /* Tighter line height for mobile */
    }

    /* Mobile footnote indicator */
    .footnote-indicator {
        font-size: 0.7em;
        margin-left: 1px;
    }

    /* Mobile slogan tooltip */
    .slogan-tooltip {
        font-size: 0.7em;
        padding: 6px 8px;
        bottom: -35px;
        white-space: normal; /* Allow wrapping on mobile */
        max-width: 280px;
    }

    .slogan-tooltip span {
        font-size: 0.9em;
    }

    /* Smaller arrow on mobile */
    .slogan-tooltip::before {
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: 4px solid #3a3a3a;
        top: -4px;
    }

    .slogan-tooltip::after {
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-bottom: 3px solid rgba(0, 0, 0, 0.9);
        top: -3px;
    }

    /* Fix section responsive layout */
    section {
        border: 2px solid #3a3a3a; /* Thinner borders on mobile */
        padding: 10px; /* Reduce padding on mobile */
        margin-bottom: 15px;
        box-shadow: 2px 2px 0px #aaaaaa; /* Smaller shadow on mobile */
        box-sizing: border-box; /* Include padding/border in width calculation */
    }

    /* Mobile music toggle button */
    .music-toggle-btn {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 1em;
        padding: 6px;
    }

    /* Mobile song tooltip */
    .song-name-tooltip {
        font-size: 0.7em;
        padding: 6px 8px;
        margin-left: 8px;
        transform: translateY(-50%) translateX(-15px);
        min-width: 240px; /* Smaller width for mobile */
        white-space: normal; /* Allow text wrapping on mobile */
    }

    .song-name-tooltip span {
        font-size: 0.7em;
    }

    /* Smaller arrow on mobile */
    .song-name-tooltip::before {
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-right: 4px solid #3a3a3a;
        left: -4px;
    }

    .song-name-tooltip::after {
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-right: 3px solid rgba(0, 0, 0, 0.9);
        left: -3px;
    }

    /* Mobile progress bar adjustments */
    .song-progress-bar {
        height: 8px; /* Larger for easier touch interaction */
    }

    .song-progress-handle {
        width: 14px;
        height: 14px;
        top: -3px;
    }

    .song-time-display {
        font-size: 0.6em;
    }

    /* Mobile contact section styles */
    .contact-item {
        flex-direction: column; /* Stack elements vertically on mobile */
        align-items: flex-start; /* Align to left */
        text-align: left;
        padding: 8px;
        gap: 8px;
    }

    .contact-item i {
        font-size: 1.3em; /* Slightly smaller icons on mobile */
        width: auto; /* Remove fixed width on mobile */
    }

    .contact-item a {
        min-width: auto; /* Remove minimum width constraint */
        font-size: 1em;
    }

    .contact-item span {
        font-size: 0.8em; /* Smaller text on mobile */
        margin-left: 0; /* Remove left margin */
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-bottom: 10px;
    }
}

/* Pixelated borders */
/* You might need a library or more complex CSS for true pixel borders */
section {
    border: 4px solid #3a3a3a;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #ffffff; /* White background for content sections */
    box-shadow: 4px 4px 0px #aaaaaa; /* Simple shadow */
    box-sizing: border-box; /* Include padding/border in width calculation */
}

/* Music Toggle Button for Slider */
.music-toggle-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10; /* Above slider content but below nav */
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #3a3a3a;
    border-radius: 0; /* Keep pixel art style */
    color: #f0e6d2;
    padding: 8px;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 2px 2px 0px #000000;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.music-toggle-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.music-toggle-btn.active {
    background: rgba(0, 90, 156, 0.8); /* Blue when music is playing */
    border-color: #005a9c;
}

.music-toggle-btn.active:hover {
    background: rgba(0, 90, 156, 1);
}

/* Song Name Tooltip */
.song-name-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #3a3a3a;
    border-radius: 0; /* Keep pixel art style */
    padding: 8px 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-50%) translateX(-20px); /* Start 20px to the left */
    z-index: 15; /* Above music button */
    box-shadow: 2px 2px 0px #000000;
    pointer-events: auto; /* Allow interaction with tooltip */
    cursor: text; /* Text cursor to indicate selectable text */
    min-width: 280px; /* Ensure enough width for progress bar */
}

.song-name-tooltip span {
    color: #f0e6d2;
    font-size: 0.8em;
    text-shadow: 1px 1px 0px #000000;
    user-select: text; /* Make text selectable */
    -webkit-user-select: text; /* Safari */
    -moz-user-select: text; /* Firefox */
    -ms-user-select: text; /* IE/Edge */
}

/* Song Progress Bar */
.song-progress-container {
    margin-top: 8px;
    width: 100%;
}

.song-progress-bar {
    position: relative;
    height: 6px;
    background-color: rgba(58, 58, 58, 0.8);
    border: 1px solid #2a2a2a;
    cursor: pointer;
    margin-bottom: 6px;
    border-radius: 0; /* Keep pixel art style */
}

.song-progress-fill {
    height: 100%;
    background-color: #005a9c;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: inset 0 0 3px rgba(0, 90, 156, 0.5);
}

.song-progress-handle {
    position: absolute;
    top: -2px;
    left: 0%;
    width: 10px;
    height: 10px;
    background-color: #005a9c;
    border: 1px solid #ffffff;
    cursor: grab;
    transition: left 0.1s ease;
    box-shadow: 1px 1px 0px #000000;
}

.song-progress-handle:hover {
    background-color: #0070cc;
    transform: scale(1.1);
}

.song-progress-handle:active {
    cursor: grabbing;
    transform: scale(0.9);
}

.song-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.7em;
    color: #cccccc;
    text-shadow: 1px 1px 0px #000000;
    user-select: none;
}

.music-toggle-btn:hover .song-name-tooltip,
.song-name-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); /* Slide in to final position */
}

/* Arrow pointing to button */
.song-name-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #3a3a3a;
}

.song-name-tooltip::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 4px solid rgba(0, 0, 0, 0.9);
}

/* Contact section styles */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid #3a3a3a;
    background-color: #f8f8f8;
    box-shadow: 2px 2px 0px #aaaaaa;
}

.contact-item i {
    font-size: 1.5em;
    color: #005a9c; /* Blue tone matching links */
    width: 30px; /* Fixed width for icon alignment */
    text-align: center;
}

.contact-item a {
    font-weight: bold;
    color: #005a9c;
    text-decoration: none;
    min-width: 80px; /* Minimum width for label */
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item span {
    color: #666666;
    font-size: 0.9em;
    word-break: break-all; /* Allow breaking long URLs */
}

/* Simple button style */
button, input[type="submit"] {
    font-family: 'Press Start 2P', cursive;
    font-size: 1em;
    padding: 8px 15px;
    background-color: #d9534f; /* Red tone */
    color: #ffffff;
    border: 2px solid #3a3a3a;
    box-shadow: 2px 2px 0px #3a3a3a;
    cursor: pointer;
    text-transform: uppercase;
}

button:active, input[type="submit"]:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}

/* Logo Shake Animation */
@keyframes logo-shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.logo-shake {
  animation: logo-shake 0.5s;
  animation-iteration-count: 1;
}

/* 1UP Floating Effect */
@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% { /* Stay opaque longer */
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-35px) scale(1.1); /* Move up less, grow slightly less */
  }
}

.one-up-effect {
  position: absolute;
  font-family: 'Press Start 2P', cursive;
  color: #33cc33; /* Bright green color */
  font-size: 1.2em; /* Adjust size as needed */
  font-weight: bold;
  text-shadow: 1px 1px #000000;
  pointer-events: none; /* Make sure it doesn't interfere with clicks */
  animation: float-up 0.8s ease-out forwards; /* Apply animation */
  z-index: 1001; /* Ensure it's above other elements */
  /* Centering handled by transform */
  transform: translateX(-50%);
  /* Initial top position will be set by JS */
}

/* PLAY Button Easter Egg Styling */
@keyframes fade-in-zoom {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.play-button-container {
  text-align: center;
  margin: 30px 0; /* Add space around the button */
  animation: fade-in-zoom 0.5s ease-out forwards;
}

.play-button {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.8em; /* Larger font size */
  padding: 15px 30px;
  color: #ffffff;
  background-color: #007bff; /* Retro blue */
  border: 4px solid #0056b3; /* Darker blue border */
  box-shadow: 4px 4px 0px #003f7f; /* Darker shadow */
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.1s ease, box-shadow 0.1s ease; 
}

.play-button:hover {
  background-color: #0056b3;
}

.play-button:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

/* Game Container Styling */
.game-container {
  position: fixed; /* Overlay the content */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Ensure it's above everything */
}

#game-canvas {
  border: 4px solid #f0e6d2; /* Same light beige as body bg */
  background-color: #222; /* Dark background for the game */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.game-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d9534f;
    color: white;
    border: 2px solid #3a3a3a;
    box-shadow: 2px 2px 0px #3a3a3a;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    width: 30px;
    height: 30px;
    line-height: 26px; /* Adjust for vertical centering */
    text-align: center;
    padding: 0;
    cursor: pointer;
}

.game-close-button:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}

/* Mobile game container fixes */
@media (max-width: 768px) {
    .game-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    #game-canvas {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
        width: auto;
        height: auto;
    }
    
    .game-close-button {
        top: 10px;
        right: 10px;
        z-index: 2001;
    }
}