/* General Body Styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: black; /* Matches the portfolio */
    color: white;
    font-family: 'Poppins', sans-serif; /* Use Poppins font */
    margin: 0;
    padding: 0;
    overflow: hidden; /* Ensures no scroll bars */
}

/* Game Container */
#game {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    text-align: center;
    height: 100vh; /* Full height for vertical centering */
    position: relative; /* For absolute positioning of elements inside */
}

/* Canvas Styling */
canvas {
    border: 2px solid #fff;
    display: block; /* Ensure no extra space below the canvas */
    margin: 0 auto; /* Center the canvas */
    max-width: 100%; /* Ensure responsiveness */
    position: relative; /* Ensures it overlaps correctly */
    touch-action: none;

}

/* Countdown Style */
#countdown {
    font-size: 3rem;
    color: #ffb7c5;
}

/* Power-up Blue Circle */
.blueCircle {
    position: absolute;
    border-radius: 50%;
    background-color: blue;
    width: 50px;
    height: 50px;
    z-index: 2; /* Ensure it stays above the red target */
}

/* Power-up Green Circle */
.greenCircle {
    position: absolute;
    border-radius: 50%;
    background-color: green;
    width: 75px;
    height: 75px;
    z-index: 2; /* Ensure it stays above the red target */
}

/* Button Style (same as your portfolio) */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #ffb7c5;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #ffb7c5;
    transition: 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.btn:hover {
    transform: scale(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

/* Score and Timer Styling */
#score, #timer {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #ffb7c5; /* Matches your overall color theme */
}

/* Jumpscare Video Styling */
#jumpscareVideo {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    z-index: 9999;
    background: black;
}



/* Mobile Responsiveness */
@media (max-width: 600px) {
    body, #game {
        height: 100%;
    }

    canvas {
        width: 90vw; /* Make canvas width responsive */
        height: 60vh; /* Adjust canvas height */
    }

    h1 {
        font-size: 1.5em; /* Smaller font size for mobile */
    }

    #countdown {
        font-size: 2.5rem; /* Adjust countdown size for smaller screens */
    }

    .btn {
        font-size: 1.4rem; /* Adjust button size for mobile */
        padding: 0.8rem 2rem; /* Smaller padding for mobile */
    }

    #score, #timer {
        font-size: 1.2rem; /* Adjust score/timer size */
    }
}
#riddleScreen {
    display: none;
    position: fixed;
    inset: 0;
    background: black;
    color: #ffb7c5;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#riddleBox {
    text-align: center;
    max-width: 90vw;
    font-size: 1rem;
}

#riddleBox h2 {
    margin-bottom: 10px;
}

#riddleInput {
    width: 90%;
    padding: 10px;
    margin-top: 15px;
    font-size: 1rem;
}

#riddleSubmit {
    margin-top: 10px;
    padding: 10px 20px;
}
#riddleResult {
    display: none;
    margin-top: 15px;
    color: #ff4b4b;
    font-weight: bold;
    white-space: pre-line;
}

#riddleResult {
    white-space: pre-line;
}
@keyframes subtleShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}
