body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    animation: backgroundPulse 5s infinite alternate;
}

@keyframes backgroundPulse {
    0% { background-color: #000; }
    50% { background-color: #111; }
    100% { background-color: #000; }
}

.haunted-room {
    position: relative;
    width: 80%;
    height: 80%;
    background: #1a1a1a;
    border: 2px solid #333;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: roomGlow 3s infinite alternate;
}

@keyframes roomGlow {
    0% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.3); }
    100% { box-shadow: 0 0 60px rgba(255, 0, 0, 0.5); }
}

.spooky-text {
    font-size: 2em;
    text-align: center;
    padding: 20px;
    color: #f5f5f5;
    animation: flicker 1.5s infinite alternate, textColorChange 4s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes textColorChange {
    0% { color: #f5f5f5; }
    50% { color: #ff0000; }
    100% { color: #f5f5f5; }
}

.bottom-link {
    position: absolute;
    bottom: 20px;
    font-size: 1em;
    color: #f5f5f5;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.bottom-link:hover {
    background: rgba(255, 0, 0, 0.8);
}

.left-link {
    left: 20px;
}

.right-link {
    right: 20px;
}
