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

body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0a;
    color: rgb(0, 255, 0);
    background-image: linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Mobile-first approach */
nav {
    display: flex;
    justify-content: space-between;
    background-color: #111;
    padding: 15px;
    box-shadow: 0 0 10px rgb(0, 255, 0);
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

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

nav a {
    color: rgb(0, 255, 0);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgb(0, 255, 0);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 11;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: rgb(0, 255, 0);
    transition: all 0.3s ease;
}

header {
    text-align: center;
    margin: 20px 0;
}

header img {
    width: 120px;
    filter: drop-shadow(0 0 6px rgb(0, 255, 0));
}

section {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto 40px auto;
    background-color: #111;
    border: 2px solid rgb(0, 255, 0);
    box-shadow: 0 0 15px rgb(0, 255, 0, 0.3);
    border-radius: 10px;
    box-sizing: border-box;
}

h1, h2 {
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgb(0, 255, 0);
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
    min-width: 600px; /* To ensure horizontal scrolling on small screens */
}

th, td {
    border: 1px solid rgb(0, 255, 0);
    padding: 10px 8px;
    text-align: center;
}

th {
    background-color: #222;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgb(0, 255, 0);
}

.highlight {
    font-weight: bold;
    color: rgb(0, 255, 0);
    text-shadow: 0 0 10px rgb(0, 255, 0);
}

.failed {
    color: red;
    font-weight: bold;
    text-shadow: 0 0 5px red;
}

/* Bomb module icons in header */
.icon {
    width: 24px;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgb(0, 255, 0));
    margin-right: 5px;
}

footer {
    text-align: center;
    padding: 15px 10px;
    font-size: 12px;
    color: rgb(0, 255, 0);
    font-family: 'Courier New', monospace;
    border-top: 1px solid rgb(0, 255, 0);
    margin-top: 40px;
}

.number-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, 40px);
    grid-template-rows: repeat(auto-fill, 40px);
    pointer-events: none;
    z-index: 0;
}

.number-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: rgba(0, 255, 0, 0.2);
    animation: flicker 4s infinite;
    opacity: 0;
}

@keyframes flicker {
    0%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
}

header,
footer {
    background: rgba(0, 255, 0, 0.05); /* Very faint neon tint */
    backdrop-filter: blur(25px); /* 💥 Stronger blur */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.5);
    border-radius: 12px;
    margin: 20px auto;
    width: fit-content;
    padding: 12px 24px;
    z-index: 1;
    position: relative;
}

header,
footer {
    z-index: 1;
    position: relative;
}

section {
    /* Existing glassmorphism styles */
    padding: 20px;
    max-width: 90%;
    margin: 0 auto 40px auto;
    background: rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Distortion overlay */
section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.05),
            rgba(0, 255, 0, 0.05) 1px,
            transparent 2px,
            transparent 4px
    );
    opacity: 0.1;
    pointer-events: none;
    animation: glitchStatic 1.2s infinite;
    z-index: 2;
}

.hero {
    height: 60vh;
    background-image: url('Gemini_Generated_Image_4dwwdl4dwwdl4dww.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid rgb(0, 255, 0);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.7);
    padding: 40px 20px;
    margin-top: 45px; /* Add space for fixed navbar */
}

/* First section after hero needs top padding */
.hero + section {
    padding-top: 40px;
    margin-top: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

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

.hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 5vw, 4rem);
    color: rgb(0, 255, 0);
    text-shadow: 0 0 20px rgb(0, 255, 0);
    margin: 0;
    padding: 20px;
}

.hero-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.8rem, 3vw, 1.5rem);
    color: rgb(0, 255, 0);
    text-shadow: 0 0 10px rgb(0, 255, 0);
    margin-bottom: 20px;
}

/* Gameplay section styles */
.gameplay-intro {
    text-align: center;
    padding-bottom: 20px;
}

.gameplay-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gameplay-steps ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.gameplay-steps li {
    margin-bottom: 15px;
}

.step-number {
    font-size: 24px;
    color: rgb(0, 255, 0);
    margin-right: 10px;
    text-shadow: 0 0 5px rgb(0, 255, 0);
}

.gameplay-image img {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid rgb(0, 255, 0);
    box-shadow: 0 0 10px rgb(0, 255, 0);
}

/* Media Queries for responsive design */
@media (min-width: 768px) {
    section {
        max-width: 960px;
        padding: 30px;
    }

    .gameplay-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .gameplay-image {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gameplay-steps {
        flex: 1;
    }

    nav a {
        font-size: 14px;
        margin: 0 20px;
    }
}

@media (max-width: 767px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(17, 17, 17, 0.95);
        z-index: 9;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav a {
        font-size: 16px;
        margin: 15px 0;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}
