* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#main-title {
    color: #FF00FF;
    font-family: 'Press Start 2P', cursive, 'Courier New', Courier, monospace;
    font-size: 36px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6), 0 0 15px rgba(255, 0, 255, 0.4);
    margin-bottom: 5px;
    z-index: 10;
    text-align: center;
}

#main-title-credit {
    color: #FF00FF;
    font-family: 'Press Start 2P', cursive, 'Courier New', Courier, monospace;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    margin-bottom: 40px;
    text-align: center;
    z-index: 10;
}

#starfield-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
    z-index: -1;
}

#arcade-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 12px solid #00ff00;
    border-radius: 32px;
    box-shadow: 0 0 40px 8px rgba(0, 255, 0, 0.4), 0 0 0 8px #00cc00 inset;
    padding: 0;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 900px;
    aspect-ratio: 4.0 / 3.0;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    aspect-ratio: 4 / 3;
    background: #111;
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #00ff00;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive, 'Courier New', Courier, monospace;
    z-index: 1;
    background-color: rgba(0, 50, 0, 0.2);
    padding: 8px 12px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 10px #00ff00;
}

#hud div {
    margin-bottom: 0;
    margin-right: 15px;
}

#hud div:last-child {
    margin-right: 0;
}

#score, #lives, #nukes, #buildings {
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#score-value, #lives-value, #nukes-value, #buildings-value {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(.68,-0.55,.27,1.55);
}
.hud-pop {
    transform: scale(1.2);
}

.nukes-glow {
    box-shadow: 0 0 5px 2px #FFFFFF, 0 0 10px 4px #FFFFFF; /* Thinner white glow */
    transition: box-shadow 0.3s ease-out;
}

#gameover-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0,0,0,0.0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#restart-btn {
    font-size: 2rem;
    padding: 1rem 2.5rem;
    background: #FF00FF;
    color: #fff;
    border: none;
    border-radius: 2rem;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-top: 24px;
    display: inline-block;
}
#restart-btn:hover {
    background: #CC00CC;
    transform: scale(1.07);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.6);
}

#nukes {
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Secret Developer Mode Popup Styles */
#developer-mode-popup {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    z-index: 999;
    padding: 20px;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive, 'Courier New', Courier, monospace;
    overflow-y: auto;
    box-sizing: border-box;
}

#developer-mode-popup.active {
    display: block;
}

#developer-mode-popup h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #FF00FF; /* Pink color for title */
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
    font-size: 1.5em;
    position: relative; /* Add this to position the X button relative to the h2 */
}

#developer-mode-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #00ff00;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s, color 0.2s;
}

#developer-mode-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #FF00FF;
}

#dev-rules-content {
    white-space: pre-wrap; /* Preserves whitespace and line breaks for JSON */
    font-size: 0.9em; /* Slightly smaller for readability */
    line-height: 1.4;
}

/* Release Notes Popup Styles */
#release-notes-popup {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    z-index: 1000; /* Higher than dev mode to be on top */
    padding: 20px;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive, 'Courier New', Courier, monospace;
    overflow-y: auto;
    box-sizing: border-box;
}

#release-notes-popup.active {
    display: block;
}

#release-notes-popup h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #FF00FF; /* Pink color for title */
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
    font-size: 1.5em;
    position: relative; /* Add this to position the X button relative to the h2 */
}

#release-notes-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #00ff00;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s, color 0.2s;
}

#release-notes-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #FF00FF;
}

#release-notes-content {
    white-space: pre-wrap; /* Preserves whitespace and line breaks for markdown */
    font-size: 0.9em; /* Slightly smaller for readability */
    line-height: 1.4;
}

/* Help Popup Styles */
#help-popup {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    z-index: 1001; /* Higher than release notes to be on top */
    padding: 20px;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive, 'Courier New', Courier, monospace;
    overflow-y: auto;
    box-sizing: border-box;
}

#help-popup.active {
    display: block;
}

#help-popup h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #FF00FF; /* Pink color for title */
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
    font-size: 1.5em;
    position: relative; /* Add this to position the X button relative to the h2 */
}

#help-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #00ff00;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s, color 0.2s;
}

#help-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #FF00FF;
}

#help-content {
    font-size: 0.9em; /* Slightly smaller for readability */
    line-height: 1.4;
} 