/* FNAF CLASH - Horror Theme Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
    font-family: 'Creepster', cursive;
    position: fixed;
    top: 0;
    left: 0;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
}

#game-container canvas {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100%;
    max-height: 100%;
}

/* Desktop only - decorative border */
@media (min-width: 801px) {
    #game-container canvas {
        border: 4px solid #3d0000;
        box-shadow: 
            0 0 20px rgba(139, 0, 0, 0.5),
            0 0 40px rgba(139, 0, 0, 0.3),
            0 0 60px rgba(139, 0, 0, 0.1);
        border-radius: 4px;
    }
}

/* Horror Scanline Effect */
#game-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Flickering Animation */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.8; }
    43% { opacity: 1; }
    45% { opacity: 0.3; }
    46% { opacity: 1; }
}

/* Glitch Effect */
@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); }
}

/* Blood Drip Animation */
@keyframes bloodDrip {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-text {
    font-family: 'Nosifer', cursive;
    font-size: 48px;
    color: #8b0000;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000;
    animation: flicker 3s infinite;
}

.loading-bar-container {
    width: 300px;
    height: 20px;
    background: #1a0a0a;
    border: 2px solid #3d0000;
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #3d0000, #8b0000, #ff0000);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #ff0000;
}

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

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

::-webkit-scrollbar-thumb {
    background: #3d0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}
