*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,'Helvetica Neue', sans-serif;
    user-select : none;
}

body {
    margin:0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    overflow: hidden;
    transition: background 0.5s ease;

}

canvas{
    display: block;
    background: transparent;
}


#CreepyOverlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; 
    z-index: 10; 
    opacity: 0;
    transition: opacity 0.5s ease;
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(20, 0, 0, 0.95) 100%),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 2px, transparent 2px, transparent 4px);
    mix-blend-mode: multiply; 
}

#CreepyOverlay.active {
    opacity: 1;
    animation: horrorFlicker 0.15s infinite; /* Cursed flickering effect */
}

@keyframes horrorFlicker {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

#Start.playing-mode {
    position: relative;
    white-space: nowrap;
}


@keyframes flowGradient {
    0%{background-position:0% center;}
    100% {background-position:200% center;}
}

#Bars {
    position: fixed;
    top:0;
    left:0;
    z-index:1;
}

#UILayer{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index: 2;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:center;
    padding: 24px;
    pointer-events: none;
    transition:opacity 0.5s ease;
}
#Start,#MadeBy, #HowToUse{
    pointer-events: auto;
}

#MadeBy,#HowToUse{
    transition: opacity 0.5s ease;
}
.hidden{
    opacity:0;
    pointer-events:none;
}

#Start{
    font-family: 'Creepster', cursive, sans-serif;
    background:rgba(5,5,10,0.6);
    border:2px solid #00ffff;
    padding:10px 50px;
    font-size:1.3rem;
    font-weight:bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0,255,255,0.2), inset 0 0 10px rgba(0,255,255,0.1);
    transition: all 0.3s ease;
}

#Start:hover{
    background:#ff0000;
    color: #000000;
    box-shadow: 0 0 40px rgba(0,255,255,0.8), inset 0 0 20px rgba(0,255,255,0.6);
    transform:translateY(-3px) scale(1.02);
}


#MadeBy{
    align-self:flex-start;
    display:flex;
    flex-direction:column;
    gap:4px;
    background:rgba(10,10,15,0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    padding:10px 16px;
    border-radius: 8px;
}

#MadeBy .name{
    font:0.9rem;
    font-weight:700;
    letter-spacing:1.5px;
    color: #fff;
    }

#MadeBy .WhatIsIt{
    font-size: 0.72rem;
    color:rgba(255,255,255,0.55);
}


#HowToUse{
    display: flex;
    align-items: center;
    gap:16px;
    background:rgba(10,10,15,0.5);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.1);
    padding: 8px 18px;
    border-radius:30px;
}

.Controls{
    display:flex;
    align-items: center;
    gap:6px;
}

.key {
    display: inline-flex;
    justify-content: center;
    min-width: 22px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: #111;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.Description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 2px;
}

.Divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
}
