@font-face {
    font-family: 'CustomStrangerFont';
    src: url('../storage/Stranger Things Outlined.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'WallPaintFont';
    src: url('../storage/Crimes Times Six.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100vh;
    overflow: hidden;
}

body {
    background-image: url('https://i.imgur.com/BIpiOAi.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #000000;
    font-family: 'Inter', sans-serif;
    position: relative; 
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.8) 100%);
    pointer-events: none; 
    z-index: 20; 
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.font-stranger {
    font-family: 'CustomStrangerFont', 'Bungee Shade', cursive;
}

.glow {
    color: #E72A2A; 
    text-shadow:
        0 0 2px #FF0000,
        0 0 5px #FF0000,
        0 0 10px #FF0000,
        0 0 20px #E72A2A,
        0 0 30px #E72A2A;
}

.font-wall {
    font-family: 'WallPaintFont', 'Permanent Marker', cursive;
}

.alphabet-wall {
    max-width: 1200px; 
    margin-top: 6rem;
}

.row-wrapper {
    position: relative;
    padding-bottom: 10px;
}

.letter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 120px;
}

.rope-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; 
}

.letter-container {
    position: relative;
    padding: 1rem 0.25rem 0.5rem;
    margin: 0.1rem;
    text-align: center;
    z-index: 2; 
}

.letter-paint {
    font-size: 2.75rem;
    color: transparent;
    text-shadow: 
        0 0 2px rgba(255, 0, 0, 0.5),
        0 0 5px rgba(255, 0, 0, 0.3);
}

.light-bulb {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%); 
    width: 18px;
    height: 25px;
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    transition: all 0.1s ease-in-out;
    
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(51, 51, 51, 0.7);
    box-shadow: none;
    z-index: 3;
}

.light-bulb::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 9px;
    background-color: #3a3a3a; 
    border-radius: 2px;
    border: 1px solid #1a1a1a; 
    z-index: -1;
}

@media (min-width: 768px) {
    .alphabet-wall {
        margin-top: 6rem;
    }
    .row-wrapper {
        padding-bottom: 15px;
    }
    .letter-row {
        min-height: 140px;
    }
    .letter-container {
        padding: 1.25rem 0.5rem 0.75rem;
        margin: 0.25rem;
    }
    .letter-paint {
        font-size: 4rem;
    }
    .light-bulb {
        width: 22px;
        height: 30px;
        top: 0px;
    }
    .light-bulb::after {
        width: 16px;
        height: 11px;
        top: -11px;
    }
}

.blink[data-light-color="red"] { animation: blink-red 0.5s ease-out; }
.blink[data-light-color="blue"] { animation: blink-blue 0.5s ease-out; }
.blink[data-light-color="green"] { animation: blink-green 0.5s ease-out; }
.blink[data-light-color="yellow"] { animation: blink-yellow 0.5s ease-out; }

@keyframes blink-red {
    0%, 100% {
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: none;
        border-color: rgba(51, 51, 51, 0.7);
        filter: brightness(1);
    }
    50% {
        background-color: rgba(255, 71, 71, 1);
        box-shadow: 0 0 15px #ff4747, 0 0 30px #ff4747;
        filter: brightness(2);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
@keyframes blink-blue {
    0%, 100% {
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: none;
        border-color: rgba(51, 51, 51, 0.7);
        filter: brightness(1);
    }
    50% {
        background-color: rgba(71, 126, 255, 1);
        box-shadow: 0 0 15px #477eff, 0 0 30px #477eff;
        filter: brightness(2);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
@keyframes blink-green {
    0%, 100% {
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: none;
        border-color: rgba(51, 51, 51, 0.7);
        filter: brightness(1);
    }
    50% {
        background-color: rgba(71, 255, 95, 1);
        box-shadow: 0 0 15px #47ff5f, 0 0 30px #47ff5f;
        filter: brightness(2);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
@keyframes blink-yellow {
    0%, 100% {
        background-color: rgba(0, 0, 0, 0.5);
        box-shadow: none;
        border-color: rgba(51, 51, 51, 0.7);
        filter: brightness(1);
    }
    50% {
        background-color: rgba(251, 255, 71, 1);
        box-shadow: 0 0 15px #fbff47, 0 0 30px #fbff47;
        filter: brightness(2);
        border-color: rgba(255, 255, 255, 0.2);
    }
}