.escgame {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.escgame label {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.escgame input {
    font-size: 16px;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    width: 300px;
    /* text-transform: ; Forces uppercase input */
    margin-bottom: 15px !important;
}

.escgame button {
    background-color: #E02B20;
    color: white;
    font-size: 16px;
    font-weight: 800;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.escgame button:hover{
    background-color: #8d1a14;
}

#escapegame-gif img {
    height: 300px;
}








#escapegame-hints {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.hint {
    padding: 0.25rem;
    border: 1px solid #000;
    border-radius: 8px;
    background-color: #222;
    background-image: linear-gradient(to right, rgb(48, 48, 48), rgb(0, 0, 0));
    position: relative;
    display: flex;
    gap: 10px;
}

.hint-content {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #fff;
    
}

.use-hint {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #fff;
    background-color: #E02B20;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.use-hint:disabled {
    background-color: #ccc;
    color: #000;
    cursor: not-allowed;
}

.use-hint:not(:disabled):hover {
    background-color: #8d1a14;
}
.countdown {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #999;
}


.escgame .combination-lock-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: Arial, sans-serif;
}
.escgame .lock-section {
    text-align: center;
}
.escgame .lock-arrow {
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}
.escgame .lock-display {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border: 2px solid #333;
    border-radius: 8px;
}
.escgame .message {
    margin-top: 20px;
    font-size: 1.2rem;
}

.escgame .multiple-choice-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.escgame .choice-option {
    position: relative;
    cursor: pointer;
}

.escgame .choice-circle {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: white;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.escgame .choice-option input[type="radio"] {
    display: none;
}

.escgame .choice-option input[type="radio"]:checked + .choice-circle {
    background-color: #E02B20;
    color: white;
    transform: scale(1.2);
}

.timer-display.small {
    font-size: 1.5rem; 
    margin-left: 1rem;
}






@media (max-width: 600px) {
    .use-hint {
        width: 100%;
        text-align: center;
    }
}

.timer-display.glow {
    animation: glow-pulse 1s infinite alternate ease-in-out;
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px red;
        transform: scale(1);
        color: inherit; /* Original text color */
    }
    50% {
        text-shadow: 0 0 15px red, 0 0 25px red, 0 0 35px red;
        transform: scale(1.05); /* Slightly enlarge */
        color: red; /* Change text color to red */
    }
    100% {
        text-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px red;
        transform: scale(1); /* Return to original size */
        color: inherit; /* Back to original text color */
    }
}

.shake {
    animation: shake-animation 0.5s ease-in-out;
}

@keyframes shake-animation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

#lock-message {
    transition: opacity 0.5s ease;
}