/* styles.css */
body {
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    background: linear-gradient(135deg, #1e3c72, #ff5e62);
    color: #fff;
    overflow-x: hidden;
}

header {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is above other content */
}

header h1 {
    margin: 0;
    font-size: 2rem;
    text-shadow: 2px 2px #ff5e62;
}

nav {
    position: relative; /* Ensure nav positioning is relative for proper layering */
}

#menu-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Always above the menu */
}

#menu-toggle::before {
    content: '☰'; /* Hamburger icon */
}

#menu-toggle.open::before {
    content: '✖'; /* Close icon when menu is open */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff5e62;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: url('/images/arena.png') no-repeat center/cover;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px #1e3c72;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.jeeto-character {
    width: 300px;
    animation: bounce 2s infinite;
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('https://www.transparenttextures.com/patterns/confetti.png');
    opacity: 0.1;
    animation: confetti-float 10s infinite;
}

.token-stats, .community-hub, .battle-zone, .victory-plaza {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed #ff5e62;
    border-radius: 10px;
    margin: 2rem auto;
    width: 90%;
    min-height: 200px;
    word-wrap: break-word;
    overflow: hidden;
}

h2 {
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px #1e3c72;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.copyable {
    cursor: pointer;
    color: #ff5e62;
}

.copyable:hover {
    text-decoration: underline;
}

.feedback {
    margin-left: 0.5rem;
    color: #00ff00;
    font-size: 0.8rem;
    display: none;
}

footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 2rem;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes confetti-float {
    0% { transform: translateY(100vh); }
    100% { transform: translateY(-100vh); }
}

/* Mobile adjustments for screens under 768px */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    p, li {
        font-size: 0.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        max-width: 90%;
    }

    .jeeto-character {
        width: 150px;
        height: auto;
    }

    .token-stats, .community-hub, .battle-zone, .victory-plaza {
        padding: 1rem;
        margin: 1rem auto;
        width: 95%;
        min-height: 150px;
    }

    .confetti {
        opacity: 0.05;
    }

    /* Hamburger menu adjustments */
    #menu-toggle {
        display: block; /* Show on mobile */
        position: absolute; /* Position it at the top-right */
        top: 1rem;
        right: 1rem;
    }

    nav ul {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9); /* Match header background */
        z-index: 999; /* Below the button but above other content */
    }

    nav ul.show {
        display: flex; /* Show when 'show' class is added */
    }

    nav ul li {
        margin: 0;
        padding: 0.5rem 0;
        text-align: center;
    }
}