body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    background: linear-gradient(45deg, #121212, #1e1e1e);
    color: #e0e0e0;
}

#map-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: radial-gradient(circle at center, rgba(164, 209, 227, 0.2), rgba(0, 0, 0, 0.8));
    overflow: hidden;
}

svg {
    width: 100%;
    height: 100%;
    background: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.country {
    fill: #2E7D32;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 0.5px;
    vector-effect: non-scaling-stroke;
    transition: all 0.5s ease;
}

.country:hover {
    fill: #4CAF50;
    transform: scale(1.02);
    stroke: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    padding: 15px;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    font-family: 'Courier New', monospace;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 15px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 150px;
    max-height: 400px;  
    overflow-y: auto;   
    scrollbar-width: thin;  
    scrollbar-color: #4CAF50 rgba(0,0,0,0.5);  
}

.controls::-webkit-scrollbar {
    width: 8px;
}

.controls::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.controls::-webkit-scrollbar-thumb {
    background-color: #4CAF50;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.5);
}

.controls::-webkit-scrollbar-thumb:hover {
    background-color: #45a049;
}

.secondary-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 15px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 200px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #9C27B0 rgba(0,0,0,0.5);
}

.secondary-controls button {
    width: 100%;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.secondary-controls::-webkit-scrollbar {
    width: 8px;
}

.secondary-controls::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.secondary-controls::-webkit-scrollbar-thumb {
    background-color: #9C27B0;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.5);
}

.secondary-controls::-webkit-scrollbar-thumb:hover {
    background-color: #7B1FA2;
}

.extra-interactions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

button {
    margin: 1px;
    padding: 5px 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s;
}

button:hover::before {
    left: 100%;
}

#tutorial-button {
    background-color: #4CAF50;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.changelogs-button {
    background-color: #9C27B0;  
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.changelogs-button:hover {
    background-color: #7B1FA2;  
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 30px;
    border-radius: 20px;
    z-index: 200;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.rocket {
    position: absolute;
    width: 30px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="red"><path d="M6 2a2 2 0 0 1 2 2v3.29c0 .39.15.76.43 1.04l7.28 7.29c.31.31.51.73.51 1.18V20a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-3.5c0-.45-.19-.88-.51-1.19L2.71 8.4A1.5 1.5 0 0 1 2 7.22V4a2 2 0 0 1 2-2h2zm10 2a2 2 0 0 1 2 2v3a2 2 0 0 1-.59 1.42L16 10l-2-2 1.59-1.59A2 2 0 0 1 16 6V4z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
    transition: all 3s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: rocketLaunch 2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.targeted-country {
    fill: red !important;
}

.war-country {
    fill: darkred !important;
    animation: war-pulse 1s infinite alternate;
}

@keyframes war-pulse {
    from { fill: darkred; }
    to { fill: crimson; }
}

.rain-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
    background: linear-gradient(to bottom, rgba(0, 0, 255, 0.1), transparent);
    animation: rain 0.5s linear infinite;
}

@keyframes rain {
    0% { background-position: 0 0; }
    100% { background-position: 20px 200px; }
}

.danger-symbol {
    position: absolute;
    animation: pulse 1s infinite alternate;
    z-index: 1000;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rocketLaunch {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(45deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50vh) rotate(90deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(135deg);
    }
}

.achievements-panel {
    position: absolute;
    top: 10px;
    right: 250px;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 10px;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 150px;
    font-size: 10px;
}

.achievement-item {
    margin: 2px 0;
    padding: 3px;
    background-color: #e0e0e0;
    border-radius: 3px;
    font-size: 8px;
}

.achievement-item.unlocked {
    background-color: #4CAF50;
    color: white;
}

#clear-danger {
    background-color: #FF5722; 
}

#clear-danger:hover {
    background-color: #F44336; 
}

.menu-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
}

.menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.menu-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.menu-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInMenu 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.start-button {
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.start-button:hover {
    transform: scale(1.1);
}

.game-title {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.5s ease-in-out;
}

.modal-content {
    background-color: rgba(20, 20, 50, 0.95);
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    color: #00ff00;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    font-family: 'Orbitron', sans-serif;
    line-height: 1.6;
}

.close-tutorial {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-tutorial:hover {
    color: #ff6666;
}

.tutorial-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.tutorial-section h3 {
    color: cyan;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

.tutorial-warning {
    text-align: center;
    color: red;
    font-style: italic;
    margin-top: 20px;
}

.changelog-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(50, 50, 100, 0.6);
    border-radius: 10px;
    border-left: 5px solid #9C27B0;
}

.changelog-section h3 {
    color: #9C27B0;
    border-bottom: 1px solid #7B1FA2;
    padding-bottom: 10px;
}

.changelog-warning {
    text-align: center;
    color: #FF9800;  
    font-style: italic;
    margin-top: 20px;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 10px;
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.meteor-country {
    fill: orange !important;
    animation: meteor-burn 2s infinite alternate;
}

@keyframes meteor-burn {
    from { 
        fill: orange; 
        opacity: 0.7;
    }
    to { 
        fill: darkorange; 
        opacity: 1;
    }
}

.meteor {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255,165,0,0.8), rgba(255,69,0,0.5), transparent);
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255,140,0,0.7);
    animation: meteor-trail 2s linear;
}

@keyframes meteor-trail {
    from {
        transform: translate(-100%, -100%) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate(100vw, 100vh) rotate(360deg);
        opacity: 0;
    }
}

#thanks-modal .modal-content {
    text-align: center;
    background-color: rgba(0, 100, 0, 0.9);
    color: #00ff00;
    border: 3px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

#thanks-modal .thanks-footer {
    margin-top: 20px;
}

#thanks-modal #continue-to-game {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: background-color 0.3s ease;
}

#thanks-modal #continue-to-game:hover {
    background-color: #45a049;
}

.feedback-section {
    background-color: rgba(50, 50, 100, 0.6);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.feedback-section textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.feedback-contact {
    display: flex;
    gap: 10px;
}

.feedback-contact input {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
}

.feedback-contact button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}

.feedback-warning {
    text-align: center;
    color: #FF9800;
    font-style: italic;
    margin-top: 20px;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.tips-section, .music-credits-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.tips-section h3, .music-credits-section h3 {
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

.tips-section ul, .music-credits-section ul {
    list-style-type: none;
    padding-left: 0;
}

.tips-section li, .music-credits-section li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tips-section li::before, .music-credits-section li::before {
    content: '▶';
    color: #00ff00;
    position: absolute;
    left: 0;
}

.tips-warning, .music-warning {
    text-align: center;
    color: #FF9800;
    font-style: italic;
    margin-top: 20px;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 10px;
    border-radius: 10px;
}

#tips-button, #music-credits-button {
    background-color: #2196F3;
    color: white;
    margin: 5px;
}

.party-mode .country {
    animation: party-color 1s infinite alternate;
    transition: all 0.5s ease;
}

@keyframes party-color {
    from { 
        fill: hsl(0, 100%, 50%);
        transform: scale(1);
    }
    to { 
        fill: hsl(360, 100%, 50%);
        transform: scale(1.05);
    }
}

.party-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg, 
        rgba(255, 0, 0, 0.3), 
        rgba(0, 255, 0, 0.3), 
        rgba(0, 0, 255, 0.3)
    );
    animation: party-background 2s infinite alternate;
    pointer-events: none;
    z-index: 9999;
}

@keyframes party-background {
    from {
        opacity: 0.3;
        background-position: 0% 50%;
    }
    to {
        opacity: 0.5;
        background-position: 100% 50%;
    }
}

#party-mode-button {
    background-color: #FF1493;  
    color: white;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.starfall-country {
    fill: purple !important;
    animation: starfall-pulse 1s infinite alternate;
}

@keyframes starfall-pulse {
    from { 
        fill: purple; 
        opacity: 0.7;
    }
    to { 
        fill: mediumpurple; 
        opacity: 1;
    }
}

@keyframes global-war-shake {
    0%, 100% { transform: translate(0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-5px, -5px); }
    20%, 40%, 60%, 80% { transform: translate(5px, 5px); }
}

.global-war-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 165, 0, 0.3); 
    pointer-events: none;
    z-index: 9999;
    animation: global-war-pulse 1s infinite alternate;
}

@keyframes global-war-pulse {
    from { 
        background-color: rgba(255, 165, 0, 0.3); 
    }
    to { 
        background-color: rgba(255, 140, 0, 0.5); 
    }
}

.corruption-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 192, 203, 0.3); /* Pink overlay */
    pointer-events: none;
    z-index: 9998;
    animation: corruption-pulse 1s infinite alternate;
}

@keyframes corruption-pulse {
    from { 
        background-color: rgba(255, 192, 203, 0.3);
        opacity: 0.7;
    }
    to { 
        background-color: rgba(255, 105, 180, 0.5);
        opacity: 1;
    }
}

.corruption-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 50%;
    max-height: 50%;
    z-index: 9999;
    animation: glitch-effect 0.3s infinite alternate;
}

@keyframes glitch-effect {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.02) rotate(1deg);
        filter: hue-rotate(50deg);
    }
    100% { 
        transform: translate(-50%, -50%) scale(0.98) rotate(-1deg);
        filter: hue-rotate(100deg);
    }
}