body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    background-color: #0d0221; /* Dark cyberpunk background */
    color: #00f6ff; /* Neon cyan text */
    overflow-y: auto; /* Allow scrolling */
    position: relative; /* Needed for pseudo-element positioning */
}

/* Scan-line effect for cyberpunk feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        rgba(0, 246, 255, 0.1) 1px,
        transparent 2px
    ), url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKkFgAAAADUlEQVQIW2NgYGBgYHhPAAHTAAj/iZrvAAAAAElFTkSuQmCC'); /* Subtle noise texture */
    background-size: 100% 100%, 2px 2px; /* Noise size */
    pointer-events: none; /* Allow interaction with elements below */
    z-index: -1; /* Place behind content */
}

header {
    background-color: #1a0537;
    padding: 1rem;
    border-bottom: 1px solid #00f6ff;
    box-shadow: 0 0 10px #00f6ff;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff00ff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem; /* Increased spacing */
    margin: 0;
    padding: 0;
}

nav a {
    color: #00f6ff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff00ff;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.content-section, .content-page {
    background-color: rgba(26, 5, 55, 0.8);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border: 1px solid #00f6ff;
    box-shadow: 0 0 10px #00f6ff;
}

footer {
    background-color: #1a0537;
    padding: 1rem;
    border-top: 1px solid #00f6ff;
    text-align: center;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Increased spacing */
    margin-top: 0.5rem;
    padding: 0;
}

bomb-game {
    display: block;
    width: 100%;
    height: 80vh; /* Adjust game height */
    position: relative;
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.5); /* Neon border glow */
    border-radius: 10px;
    overflow: hidden;
}

#game-board {
    width: 100%;
    height: 100%;
    position: relative;
}

.bomb {
    position: absolute;
    font-size: 50px;
    cursor: pointer;
    user-select: none; /* Prevent text selection */
    transition: transform 0.2s, text-shadow 0.2s;
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff; /* Neon bomb glow */
}

.bomb:hover {
    transform: scale(1.3);
    text-shadow: 0 0 8px #00f6ff, 0 0 15px #00f6ff, 0 0 25px #00f6ff; /* Hover glow */
}

#score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5em; /* Larger font */
    font-weight: bold;
    text-shadow: 0 0 8px #fef213, 0 0 15px #fef213, 0 0 25px #fef213; /* Neon yellow glow */
    z-index: 1; /* Ensure it's above scan lines */
}

#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker overlay */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 100; /* Ensure it's on top */
    border-radius: 10px; /* Match game-board */
}

#game-over-screen h2 {
    font-size: 5em; /* Larger font */
    margin-bottom: 30px;
    color: #ff00ff; /* Neon magenta for game over text */
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff; /* Intense neon glow */
}

#final-score {
    font-size: 3em; /* Larger font */
    margin-bottom: 50px;
    color: #00f6ff; /* Neon cyan for final score */
    text-shadow: 0 0 8px #00f6ff, 0 0 15px #00f6ff, 0 0 25px #00f6ff; /* Neon glow */
}

#game-over-screen .button { /* Target buttons within game-over-screen */
    margin-top: 20px; /* Add space between buttons */
    padding: 18px 50px; /* Larger padding */
    font-size: 2em; /* Larger font */
    cursor: pointer;
    border: 2px solid #00f6ff; /* Neon border */
    background-color: transparent; /* Transparent background */
    color: #00f6ff; /* Neon cyan text */
    border-radius: 12px; /* Slightly more rounded */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 15px rgba(0, 246, 255, 0.7), 0 0 25px rgba(0, 246, 255, 0.3); /* Enhanced button glow */
    text-transform: uppercase; /* Make it more "game-like" */
    
}

#game-over-screen .button:hover {
    background-color: rgba(0, 246, 255, 0.2); /* Light background on hover */
    color: #fef213; /* Yellow on hover */
    box-shadow: 0 0 20px rgba(0, 246, 255, 1), 0 0 30px rgba(254, 242, 19, 0.5); /* More intense hover glow */
}

#save-score-form {
    margin-top: 30px; /* Increased margin for the form */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Spacing between input and button */
}

#player-name {
    padding: 12px; /* Larger padding */
    font-size: 1.2em; /* Larger font */
    border-radius: 8px; /* More rounded corners */
    border: 1px solid #00f6ff;
    background-color: #0d0221;
    color: #00f6ff;
    width: 80%;
    max-width: 300px;
    text-align: center;
}

#leaderboard {
    margin-top: 30px; /* Increased margin for leaderboard */
}

#leaderboard li {
    background-color: rgba(0, 246, 255, 0.1); /* Subtle background for list items */
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 246, 255, 0.3);
    box-shadow: 0 0 5px rgba(0, 246, 255, 0.5);
}

/* Base style for elements that will have a neon glow */
.neon-text {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
}