/* Basic Dark Background */
body {
    background-color: #111;
    color: #fff;
    font-family: 'Creepster', cursive; /* Creepy font from Google Fonts */
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dark Theme for the Room */
#game-container {
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.7);
    color: #ddd;
}

/* Flickering Red Light */
#light {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: red;
    position: fixed;
    top: 20px;
    left: 20px;
    opacity: 0;
    animation: flicker 0.7s infinite; /* Faster flicker */
}

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

/* Mist/Smoke Effect */
#mist {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    animation: mistMove 10s infinite alternate ease-in-out;
}

@keyframes mistMove {
    from { transform: translateX(-50px); }
    to { transform: translateX(50px); }
}

/* Haunted Text */
h2, p, button {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Buttons Styling for Haunted Look */
button {
    background-color: darkred;
    border: none;
    padding: 10px;
    margin: 5px;
    color: white;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: crimson;
    cursor: pointer;
}
#progress {
    background-color: rgba(50, 50, 50, 0.8);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    color: white;
    text-shadow: 1px 1px 5px red;
}
@media (max-width: 600px) {
    #game-container {
        width: 95%;
    }
    button {
        font-size: 0.9em;
    }
    #light {
        width: 80px;
        height: 80px;
    }
}
.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;
}
