/* Custom Abyss Styles */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Creepster&display=swap');

.glow-text {
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.glow-border {
    box-shadow: 0 0 15px #00ff88, inset 0 0 15px rgba(0, 255, 136, 0.1);
}

.pixel-border {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.pixel-perfect {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@keyframes pulse-glow {
    from {
        text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88;
    }
    to {
        text-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88, 0 0 15px #00ff88;
    }
}

@keyframes float-particles {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Add subtle floating particles effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #00ff88, transparent),
        radial-gradient(1px 1px at 40px 70px, #8a2be2, transparent),
        radial-gradient(1px 1px at 90px 40px, #00ff88, transparent),
        radial-gradient(1px 1px at 130px 80px, #8a2be2, transparent);
    background-size: 200px 200px;
    animation: float-particles 10s linear infinite;
    opacity: 0.3;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0118;
}

::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc6b;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #1a0e3d;
    height: 8px;
    border-radius: 4px;
    border: 1px solid #00ff88;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #00ff88;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid #0a0118;
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    background: #1a0e3d;
    height: 8px;
    border-radius: 4px;
    border: 1px solid #00ff88;
}

input[type="range"]::-moz-range-thumb {
    background: #00ff88;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid #0a0118;
    cursor: pointer;
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* Terminal-style text boxes */
.terminal-box {
    font-family: 'VT323', monospace;
    background: #000;
    color: #00ff88;
    border: 2px solid #00ff88;
    padding: 1rem;
    line-height: 1.4;
}

/* Gothic title styling */
.font-gothic {
    font-family: 'Creepster', cursive;
}

/* Retro CRT effect */
.crt-effect {
    background: linear-gradient(transparent 50%, rgba(0, 255, 136, 0.03) 50%);
    background-size: 100% 4px;
}

/* Glitch effect for emergency button */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.glitch:hover {
    animation: glitch 0.3s ease-in-out infinite;
}