/* Import a futuristic font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: 
        linear-gradient(180deg, #0a0a0a 60%, #1a1a1a 70%, #00f7ff 71%, transparent 75%),
        linear-gradient(180deg, rgba(255, 0, 255, 0.2) 70%, rgba(0, 247, 255, 0.3) 80%, transparent 100%),
        #0a0a0a;
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

header {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.9), transparent);
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid #00f7ff;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.7);
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.5rem;
    color: #00f7ff;
    text-shadow: 0 0 10px #00f7ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    animation: neon-flicker 4s infinite;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.controls {
    text-align: center;
    margin-bottom: 2rem;
}

button {
    background: #1a1a1a;
    color: #00f7ff;
    border: 2px solid #00f7ff;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.7), 0 0 20px rgba(0, 247, 255, 0.3);
}

button:hover {
    background: #00f7ff;
    color: #0a0a0a;
    box-shadow: 0 0 20px #00f7ff, 0 0 30px #00f7ff;
}

button:active {
    transform: scale(0.95);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    border: 2px solid #555;
    color: #555;
}

#weather-btn.active {
    color: #ff00ff;
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7), 0 0 20px rgba(255, 0, 255, 0.3);
}

#weather-btn.active:hover {
    background: #ff00ff;
    color: #0a0a0a;
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff;
}

#story-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.2);
    animation: pulse 6s infinite;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom scrollbar styling for neon cyberpunk aesthetic */
#story-content::-webkit-scrollbar {
    width: 10px;
}

#story-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

#story-content::-webkit-scrollbar-thumb {
    background: #00f7ff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

#story-content::-webkit-scrollbar-thumb:hover {
    background: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

/* Firefox scrollbar styling */
#story-content {
    scrollbar-width: thin;
    scrollbar-color: #00f7ff #1a1a1a;
}

h2 {
    color: #ff00ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
}

p {
    margin-bottom: 1rem;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Neon flicker animation */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 10px #00f7ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Pulse effect for story container */
@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.7), 0 0 50px rgba(255, 0, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.2);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    #story-content {
        padding: 1rem;
        max-height: 50vh;
    }
}