* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Achievement and notification styles */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: -300px;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: right 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.achievement-notification.show {
    right: 20px;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.achievement-text h4 {
    color: #00ff00;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.achievement-text p {
    color: #cccccc;
    font-size: 0.7rem;
}

.game-notification {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 5px;
    padding: 10px 20px;
    color: #00ff00;
    font-size: 0.8rem;
    z-index: 1000;
    transition: bottom 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.game-notification.show {
    bottom: 20px;
}

.save-notification {
    border-color: #00ff00;
    color: #00ff00;
}

.load-notification {
    border-color: #00aaff;
    color: #00aaff;
}

/* Game settings styles */
.game-settings {
    margin: 20px auto;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #444;
    padding: 15px;
    border-radius: 5px;
}

.setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setting label {
    font-size: 0.7rem;
    color: #00ff00;
}

select {
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
}

.secondary-button {
    background-color: #000;
    color: #ff00ff;
    border: 2px solid #ff00ff;
    font-size: 0.8rem;
}

.secondary-button:hover {
    background-color: #ff00ff;
    color: #000;
}

/* Achievements screen styles */
.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.achievement-item {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #444;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.achievement-item.unlocked {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.achievement-item.locked {
    filter: brightness(0.5);
    opacity: 0.7;
}

.achievement-title {
    font-size: 0.8rem;
    color: #00ff00;
    margin-bottom: 10px;
}

.achievement-description {
    font-size: 0.6rem;
    color: #ccc;
}

/* Game controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.control-button {
    padding: 8px 15px;
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.control-button:hover {
    background-color: #00ff00;
    color: #000;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #121212;
    color: #00ff00;
    line-height: 1.6;
    padding: 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), 
                      url('images/grid-bg.svg');
    background-size: 50px 50px;
    background-position: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.game-title {
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.game-title h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00ff00;
}

.subtitle {
    font-size: 1rem;
    color: #ff00ff;
}

.screen {
    display: none;
    padding: 20px;
}

.active {
    display: block;
}

.pixel-art-container {
    text-align: center;
    margin: 20px 0;
}

.pixel-art {
    max-width: 200px;
    image-rendering: pixelated;
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.game-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background-color: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.game-button:hover {
    background-color: #00ff00;
    color: #000;
    transform: scale(1.05);
}

.stats-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #444;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
}

.progress-bar {
    flex-grow: 1;
    height: 15px;
    background-color: #333;
    margin: 0 10px;
    border: 1px solid #555;
    position: relative;
}

.progress {
    height: 100%;
    width: 0%;
    transition: width 0.5s;
}

#awareness-progress {
    background-color: #ff0000;
}

#control-progress {
    background-color: #00ff00;
}

#meme-progress {
    background-color: #ff00ff;
}

#event-container {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #444;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 300px;
}

#event-image-container {
    text-align: center;
    margin-bottom: 20px;
}

#event-image {
    max-width: 200px;
    max-height: 200px;
    image-rendering: pixelated;
}

#event-text {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}

#event-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-button {
    padding: 10px;
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.choice-button:hover {
    background-color: #003300;
    transform: translateX(5px);
}

#news-ticker {
    background-color: #000;
    border: 1px solid #ff0000;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    color: #ff0000;
    font-size: 0.7rem;
}

#ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#game-over {
    text-align: center;
}

#ending-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ff0000;
}

#ending-image-container {
    margin: 20px 0;
}

#ending-image {
    max-width: 300px;
    max-height: 300px;
}

#ending-text {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.stats-summary {
    margin: 20px 0;
    font-size: 0.8rem;
}

.share-container {
    margin-top: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.share-button {
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
}

#twitter-share {
    background-color: #1DA1F2;
}

#facebook-share {
    background-color: #4267B2;
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.7rem;
    color: #666;
}

@media (max-width: 768px) {
    .game-title h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .intro-text {
        font-size: 0.8rem;
    }
    
    .game-button {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
    
    .stat {
        font-size: 0.6rem;
    }
    
    #event-text {
        font-size: 0.8rem;
    }
    
    .choice-button {
        font-size: 0.7rem;
    }
}