@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --yellow: #ffd700;
    --lime: #32cd32;
    --dark-gray: #2c2c2c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-text {
    color: var(--yellow);
    font-size: 24px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--dark-gray);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 4px solid var(--yellow);
}

.logo {
    color: var(--yellow);
    font-size: 16px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--lime);
}

/* Scrolling Background */
.scrolling-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('./assets/game_map.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    animation: scrollBg 30s linear infinite, fadeIn 2s ease-in forwards 0.5s;
    filter: brightness(0.3);
}

@keyframes scrollBg {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 40px 20px;
    position: relative;
}

.hero {
    text-align: center;
    padding: 80px 0;
}

h1 {
    font-size: 32px;
    color: var(--yellow);
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px #000;
    line-height: 1.5;
}

.subtitle {
    font-size: 14px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.pixel-btn {
    display: inline-block;
    background-color: var(--lime);
    color: #000;
    padding: 20px 40px;
    text-decoration: none;
    font-size: 18px;
    border: 4px solid #fff;
    box-shadow: inset -4px -4px 0px rgba(0,0,0,0.5);
    transition: transform 0.1s;
    cursor: pointer;
}

.pixel-btn:active {
    transform: scale(0.95);
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.5);
}

/* Sections */
.section {
    background-color: rgba(44, 44, 44, 0.9);
    border: 4px solid var(--yellow);
    padding: 40px;
    margin-bottom: 40px;
}

.section h2 {
    color: var(--lime);
    font-size: 20px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
}

.utility-list, .tutorial-list {
    list-style-type: none;
}

.utility-list li, .tutorial-list li {
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 2;
}

.utility-list li::before, .tutorial-list li::before {
    content: "> ";
    color: var(--yellow);
}

/* Contract Address */
.contract-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #000;
    padding: 10px 20px;
    border: 2px solid #fff;
    word-break: break-all;
}

.address {
    font-size: 12px;
}

.copy-btn {
    background-color: var(--yellow);
    border: none;
    padding: 10px;
    font-size: 10px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--dark-gray);
    border-top: 4px solid var(--yellow);
}

footer a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 12px;
    margin: 0 10px;
}

footer p {
    font-size: 10px;
    margin-top: 20px;
    color: #aaa;
}

/* Easter Egg */
#secret-doge {
    position: fixed;
    bottom: -50px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: var(--yellow);
    cursor: pointer;
    transition: bottom 0.2s;
    opacity: 0.1;
}

#secret-doge:hover {
    bottom: 0;
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 20px;
    }
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .container {
        margin-top: 140px;
    }
    .pixel-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    .contract-box {
        flex-direction: column;
        text-align: center;
    }
}
