/* Main styling */
body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #0099cc;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Splash Screen */
.splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #0099cc;
}

#beginBtn {
    padding: 1rem 2rem;
    background-color: #006699;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
    animation: revealButton 3s 0s forwards !important;
}

#beginBtn:hover {
    background-color: #0099cc;
}

/* Other effects styling (as before) */
.container {
    text-align: center;
    opacity: 0;
    animation: fadeIn 3s ease-in-out forwards;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
    margin: 0;
    color: #006699;
}

.message p {
    font-size: 1.2rem;
    color: #0099cc;
    opacity: 0;
    animation: revealText 2s 3s forwards;
}

button {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: #006699;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    animation: revealButton 3s 5s forwards;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0099cc;
}

/* Countdown Timer */
.countdown {
    position: absolute;
    top: 5%;
    right: 5%;
    color: #0099cc;
    font-size: 1rem;
    display: none;
    /* Initially hidden */
}

/* Hidden message styling */
.hiddenMessage {
    position: absolute;
    top: 15%;
    /* Position just under the timer */
    right: 5%;
    color: #006699;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    /* Prevents unintended interaction */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes revealText {
    to {
        opacity: 1;
    }
}

@keyframes revealButton {
    to {
        opacity: 1;
    }
}

/* Glitch effect */
.glitch {
    position: absolute;
    font-size: 1.2rem;
    color: #0099cc;
    opacity: 0.8;
    animation: flicker 0.5s infinite;
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0;
    }
}

/* Background smoke */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('smoke.png') repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    animation: moveBackground 350s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Styling for random creepy phrases */
.creepy-phrase {
    font-size: 1rem;
    color: #ff4444;
    /* A dark red for creepiness */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    /* Prevent interaction */
    font-family: 'Courier New', Courier, monospace;
    /* Adds to the unsettling look */
}

@media only screen and (max-width: 768px) {
    body::before {
        background: none !important;
    }
}