/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Game container */
#game-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    margin: 0 auto;
    border: 1px solid #00ff00;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Screen styling - common to start, game, and game over screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

/* Authentication screen */
#auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    width: 100%;
}

.auth-form {
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
}

.auth-form h2 {
    color: #00ff00;
    margin-bottom: 15px;
}

.auth-form input {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 3px;
}

.auth-form button {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.auth-form button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

.auth-form a {
    color: #00ff00;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

.auth-logos {
    position: absolute;
    bottom: 90px;
    right: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: rgba(0, 20, 0, 0.7);
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #00ff00;
    z-index: 10;
}

.auth-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(1.2);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.auth-logo:hover {
    transform: scale(1.1);
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.auth-footer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #00ff00;
    font-size: 0.9rem;
    text-align: right;
    background-color: rgba(0, 20, 0, 0.7);
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #00ff00;
    z-index: 5;
}

.hidden {
    display: none;
}

#user-stats {
    margin-top: 20px;
    font-size: 1.1rem;
}

#user-stats p {
    margin: 5px 0;
}

/* Game over screen enhancements */
#user-stats-comparison {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 20, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 5px;
}

#user-stats-comparison h3 {
    color: #00ff00;
    margin-bottom: 10px;
}

#user-dashboard-link {
    margin-top: 20px;
}

#user-dashboard-link button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

#user-dashboard-link button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

/* Profile screen */
#profile-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background-color: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 15px;
}

.stat-card h4 {
    color: #00ff00;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff00;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.profile-actions button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    flex: 1;
    max-width: 200px;
}

.profile-actions button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

/* Score History */
.score-history {
    margin: 30px 0;
    border-top: 1px solid #00ff00;
    padding-top: 20px;
}

.score-history h4 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

#score-history-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #00ff00;
    border-radius: 5px;
    background-color: rgba(0, 20, 0, 0.7);
    padding: 10px;
}

.score-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.score-item:last-child {
    border-bottom: none;
}

.score-rank {
    font-weight: bold;
    color: #00ff00;
    min-width: 30px;
    font-size: 1.1rem;
}

.score-details {
    flex: 1;
}

.score-value {
    font-weight: bold;
    color: #00ff00;
    font-size: 1.1rem;
}

.score-stats {
    font-size: 0.9rem;
    color: #90ee90;
    margin: 5px 0;
}

.score-time {
    font-size: 0.8rem;
    color: #ccc;
    font-style: italic;
}

.no-scores {
    color: #90ee90;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Store screen */
#store-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.powerup-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.package-card {
    background-color: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.package-card h4 {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.package-card p {
    margin: 10px 0;
}

.package-card .price {
    color: #ffff00;
    font-weight: bold;
    font-size: 1.2rem;
}

.buy-button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

.current-powerups {
    background-color: rgba(0, 20, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.current-powerups h4 {
    color: #00ff00;
    margin-bottom: 10px;
}

.current-powerups p {
    margin: 5px 0;
    font-size: 1.1rem;
}

.store-actions {
    margin-top: 20px;
}

.store-actions button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.store-actions button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

/* Host Screen Styles */
#host-screen {
    background-color: rgba(0, 30, 0, 0.9);
    padding: 20px;
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#host-screen.active {
    transform: scale(1);
    opacity: 1;
}

.host-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
}

.host-header h2 {
    color: #00ff00;
    margin: 0;
}

.end-game-btn {
    background-color: #330000;
    color: #ff0000;
    border: 1px solid #ff0000;
    padding: 8px 15px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.end-game-btn:hover {
    background-color: #ff0000;
    color: #000;
    box-shadow: 0 0 10px #ff0000;
}

.host-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.join-code-display {
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.join-code-display h3 {
    color: #00ff00;
    margin-bottom: 10px;
}

#current-join-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffff00;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
    word-break: break-all;
}

.instructions {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 10px;
}

.copy-code-button {
    background-color: #003300;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    margin: 10px 0;
    border-radius: 5px;
    transition: all 0.2s;
    width: 100%;
}

.copy-code-button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
}

.copy-code-button:active {
    transform: scale(0.95);
    background-color: #00cc00;
    box-shadow: 0 0 20px #00ff00;
}

.copy-code-button.copied {
    background-color: #00ff00;
    color: #000;
    border-color: #ffff00;
    box-shadow: 0 0 20px #ffff00;
}

.players-section {
    margin-bottom: 30px;
}

.players-section h3 {
    color: #00ff00;
    margin-bottom: 15px;
    text-align: center;
}

#players-list {
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.player-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #005500;
    align-items: center;
}

.player-item:last-child {
    border-bottom: none;
}

.player-name {
    color: #00ff00;
    font-weight: bold;
}

.player-status {
    color: #ffff00;
    background-color: rgba(0, 50, 0, 0.5);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.player-remove-btn {
    background-color: #990000;
    color: white;
    border: 1px solid #ff0000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.player-remove-btn:hover {
    background-color: #ff0000;
    box-shadow: 0 0 8px #ff0000;
}

.add-player-section {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 40, 0, 0.6);
    border: 1px solid #008800;
    border-radius: 5px;
}

.add-player-section h4 {
    color: #00ff00;
    margin-bottom: 10px;
    text-align: center;
}

#player-name-input {
    width: 70%;
    padding: 8px;
    margin-right: 10px;
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 3px;
}

#add-player-button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 15px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

#add-player-button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

.host-controls {
    text-align: center;
    margin-top: 20px;
}

#start-game-button {
    background-color: #003300;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

#start-game-button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
}

/* Help Center Screen Styles */
#help-center-screen {
    background-color: rgba(0, 30, 0, 0.9);
    padding: 20px;
    text-align: center;
}

.help-center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
}

.help-center-header h2 {
    color: #00ff00;
    margin: 0;
}

.back-btn {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 15px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.back-btn:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

.help-center-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.report-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
}

.report-section h3 {
    color: #00ff00;
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #00ff00;
    margin-bottom: 5px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 3px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

#report-form button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    width: 100%;
}

#report-form button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

.admin-section {
    padding: 20px;
    background-color: rgba(30, 0, 0, 0.8);
    border: 1px solid #ff0000;
    border-radius: 5px;
}

.admin-section h3 {
    color: #ff0000;
    margin-bottom: 15px;
    text-align: center;
}

#admin-login {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#admin-password {
    flex: 1;
    padding: 8px;
    background-color: #000;
    border: 1px solid #ff0000;
    color: #ff0000;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 3px;
}

#admin-login-btn {
    background-color: #330000;
    color: #ff0000;
    border: 1px solid #ff0000;
    padding: 8px 15px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

#admin-login-btn:hover {
    background-color: #ff0000;
    color: #000;
    box-shadow: 0 0 10px #ff0000;
}

#admin-panel {
    margin-top: 20px;
}

#admin-panel h4 {
    color: #ff0000;
    margin-bottom: 15px;
    text-align: center;
}

.report-item {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #ff6600;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 10px;
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    color: #ff6600;
    font-weight: bold;
    margin-bottom: 5px;
}

.report-item-content {
    color: #aaa;
    margin-bottom: 5px;
}

.report-item-email {
    color: #0088ff;
    font-size: 0.9em;
}

.delete-report-btn {
    background-color: #330000;
    color: #ff0000;
    border: 1px solid #ff0000;
    padding: 3px 8px;
    font-size: 0.8em;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 5px;
}

.delete-report-btn:hover {
    background-color: #ff0000;
    color: #000;
}

/* Updates Screen Styles */
#updates-screen {
    background-color: rgba(0, 30, 0, 0.9);
    padding: 20px;
    text-align: center;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
}

.updates-header h2 {
    color: #00ff00;
    margin: 0;
}

.updates-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.current-version {
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.current-version h3 {
    color: #00ff00;
    margin-bottom: 10px;
}

.update-notes {
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.update-notes h3 {
    color: #00ff00;
    margin-bottom: 15px;
    text-align: center;
}

.update-note {
    background-color: rgba(0, 30, 0, 0.7);
    border: 1px solid #008800;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.update-note h4 {
    color: #ffff00;
    margin-bottom: 10px;
}

.update-note p, .update-note li {
    color: #00ff00;
    margin-bottom: 5px;
}

.update-note ul {
    padding-left: 20px;
}

.update-actions {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
}

.update-actions button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    margin: 5px;
}

.update-actions button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

#update-available-section p {
    color: #ffff00;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Update notification styling */
.update-notification {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 40, 0, 0.95);
    border: 2px solid #ffff00;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.update-content h3 {
    color: #ffff00;
    margin-bottom: 10px;
}

.update-content p {
    color: #00ff00;
    margin-bottom: 15px;
}

.update-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.update-buttons button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.update-buttons button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

/* Loading indicator styles */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-indicator:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.loading-indicator p {
    margin-top: 20px;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 255, 0, 0.3);
    border-top: 5px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Progress bar styles */
.progress-container {
    width: 80%;
    max-width: 300px;
    background-color: #003300;
    border: 1px solid #00ff00;
    border-radius: 10px;
    margin: 20px 0;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #008800, #00ff00);
    transition: width 0.3s ease;
    border-radius: 8px;
}

#progress-text {
    color: #00ff00;
    font-size: 1.2rem;
    margin-top: 10px;
}

#countdown-text {
    color: #ffff00;
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: bold;
}

/* Power-up indicator in game */
#powerup-indicators {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.powerup-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 3px;
    font-size: 0.9rem;
}

.powerup-indicator.active {
    background-color: rgba(0, 80, 0, 0.7);
    box-shadow: 0 0 8px #00ff00;
}

/* Shop button styling */
#shop-container {
    position: absolute;
    bottom: 70px;  /* Adjust to position it above the typing area */
    left: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
}

#shop-button {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-size: 1.2rem;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#shop-button:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

/* Start screen styling */
#start-screen h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

#start-screen p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

#instructions {
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
}

#instructions p {
    margin-bottom: 10px;
}

#start-button, #restart-button {
    background-color: #003300;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    margin: 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

#start-button:hover, #restart-button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
}

/* Main menu buttons container */
.main-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}

.main-menu-buttons button {
    background-color: #003300;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

.main-menu-buttons button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
}

.main-menu-buttons button:active {
    transform: scale(0.95);
    background-color: #00cc00;
    box-shadow: 0 0 20px #00ff00;
}

#difficulty-selection {
    margin-top: 20px;
}

#difficulty-selection label {
    margin-right: 10px;
}

#difficulty {
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px;
    font-family: 'Courier New', Courier, monospace;
}

/* Join code section styling */
#join-code-section {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
}

#join-code-label {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

#join-code-validation {
    color: #ff0000;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#join-code-validation.error {
    color: #ff0000;
}

#join-code-validation.success {
    color: #00ff00;
}

#join-code-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 3px;
}

#join-code-submit {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    width: 100%;
}

#join-code-submit:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

/* UI Panel styling */
#ui-panel {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 30, 0, 0.7);
    border-bottom: 1px solid #00ff00;
    align-items: center;
}

#ui-panel div {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 20px; /* Add space between UI elements */
}

/* Lives container styling */
.lives-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
}

/* Separate each UI section */
#score, #level, #wpm, #accuracy {
    margin-right: 20px;
}

.life-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.active-life {
    filter: brightness(1.2);
    transition: transform 0.2s ease;
}

.active-life:hover {
    transform: scale(1.1);
}

.lost-life {
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

/* Music controls styling */
#music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

#music-toggle {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-size: 1.2rem;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#music-toggle:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

#volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

#volume-slider {
    width: 80px;
    height: 5px;
    background: #003300;
    outline: none;
    border-radius: 5px;
    -webkit-appearance: none;
    appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
}

/* Game controls styling */
#game-controls {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

#pause-button {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-size: 1.2rem;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#pause-button:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

/* Game area styling */
#game-area {
    position: relative;
    width: 100%;
    height: calc(100% - 100px); /* Account for UI panel and typing area */
    overflow: hidden;
}

/* Pause overlay styling */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pause-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pause-message {
    color: #00ff00;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#spaceship {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    z-index: 10;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Asteroid field */
#asteroid-field {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.asteroid {
    position: absolute;
    color: #ff9900;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #ff9900;
    padding: 5px;
    white-space: nowrap;
}

/* Bullet container */
#bullet-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; /* Allow clicks to pass through */
}

.bullet {
    position: absolute;
    color: #00ffff;
    font-size: 1.5rem;
    text-shadow: 0 0 5px #00ffff;
    z-index: 5;
}

/* Powerup container */
#powerup-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.powerup {
    position: absolute;
    font-size: 2rem;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Typing area */
#typing-area {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20;
    gap: 20px;
    align-items: center;
}

/* Bullet display area */
#bullet-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 200px;
    overflow-y: auto;
    background-color: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    padding: 10px;
    border-radius: 5px;
    min-width: 150px;
}

.bullet-item {
    color: #00ffff;
    font-size: 1rem;
    margin: 2px 0;
    padding: 2px 5px;
    background-color: rgba(0, 50, 0, 0.5);
    border-left: 2px solid #00ffff;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#word-input {
    width: 80%;
    max-width: 500px;
    padding: 15px;
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    outline: none;
}

#word-input:focus {
    box-shadow: 0 0 15px #00ff00;
}

/* Game over screen */
#game-over-screen h2 {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff0000;
}

#game-over-screen p {
    font-size: 1.5rem;
    margin: 10px 0;
}

/* Animation for destruction effect */
@keyframes explode {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.explode {
    animation: explode 0.5s forwards;
}

/* Payment form styling */
.payment-form {
    background-color: rgba(0, 30, 0, 0.9);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    max-width: 400px;
    width: 100%;
    text-align: left;
}

.payment-form h3 {
    color: #00ff00;
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #00ff00;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 3px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.form-actions button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

.form-actions button[type="submit"] {
    background-color: #006600;
}

.form-actions button[type="submit"]:hover {
    background-color: #00ff00;
}

/* Confirmation Modal */
.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.confirmation-modal-overlay.hidden {
    display: none;
}

.confirmation-modal {
    background-color: rgba(0, 20, 0, 0.95);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.confirmation-modal h3 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.confirmation-modal p {
    color: #00ff00;
    margin-bottom: 30px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.confirm-yes-button {
    padding: 12px 30px;
    background-color: transparent;
    color: white;
    border: 2px solid transparent;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    background-image: linear-gradient(
        90deg,
        #ff0000,
        #8b0000,
        #00008b
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: redBlueGradient 4s linear infinite;
}

.confirm-yes-button:hover {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.confirm-no-button {
    padding: 12px 30px;
    background-color: transparent;
    color: white;
    border: 2px solid transparent;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    background-image: linear-gradient(
        90deg,
        #ff0000,
        #ff8000,
        #ffff00,
        #00ff00,
        #00ffff,
        #0000ff,
        #8000ff,
        #ff00ff
    );
    background-size: 400% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowText 5s linear infinite;
}

.confirm-no-button:hover {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

@keyframes rainbowText {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

@keyframes redBlueGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Image Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.image-modal-overlay.hidden {
    display: none;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.7);
    background-color: rgba(0, 20, 0, 0.3);
    padding: 10px;
}

.image-modal-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-caption {
    color: #00ff00;
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
}

/* Settings Screen */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

.settings-content {
    width: 100%;
    max-width: 800px;
    background-color: rgba(0, 20, 0, 0.3);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #00aa00;
}

.settings-section h3 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.profile-picture-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-picture-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #00ff00;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 30, 0, 0.5);
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-picture-placeholder {
    color: #00aa00;
    font-size: 1rem;
}

.help-text {
    color: #00aa00;
    font-size: 0.9rem;
    margin-top: 5px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(0, 30, 0, 0.2);
    border-radius: 5px;
}

.setting-item label {
    color: #00ff00;
    font-weight: bold;
    flex: 1;
}

.setting-item input[type="checkbox"] {
    transform: scale(1.5);
    accent-color: #00ff00;
}

.setting-item select,
.setting-item input[type="text"],
.setting-item input[type="password"] {
    background-color: rgba(0, 30, 0, 0.5);
    border: 1px solid #00aa00;
    color: #00ff00;
    padding: 8px;
    border-radius: 4px;
    flex: 2;
}

.setting-item button {
    background-color: #00aa00;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.setting-item button:hover {
    background-color: #00ff00;
}

input[type="range"] {
    flex: 2;
    accent-color: #00ff00;
}

.settings-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.settings-actions button {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#save-settings-btn {
    background-color: #00aa00;
    color: white;
}

#save-settings-btn:hover {
    background-color: #00ff00;
}

#reset-settings-btn {
    background-color: #333;
    color: #00ff00;
    border: 1px solid #00aa00;
}

#reset-settings-btn:hover {
    background-color: #444;
}

/* Responsive design for settings screen */
@media (max-width: 768px) {
    .settings-content {
        padding: 20px;
        margin: 10px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting-item label {
        margin-bottom: 5px;
    }
    
    .setting-item select,
    .setting-item input[type="text"],
    .setting-item input[type="password"],
    .setting-item input[type="range"] {
        width: 100%;
    }
    
    .profile-picture-preview {
        width: 120px;
        height: 120px;
    }
    
    .settings-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .settings-actions button {
        width: 100%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    #game-container {
        height: 95vh;
    }
    
    #start-screen h1 {
        font-size: 2.5rem;
    }
    
    #start-screen p {
        font-size: 1.2rem;
    }
    
    #ui-panel div {
        font-size: 1rem;
    }
    
    .asteroid {
        font-size: 1rem;
    }
    
    #word-input {
        padding: 10px;
        font-size: 1rem;
    }
}