body {
    background-color: #333333;
    color: #FF00FF;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    text-align: center;
}

.gallows-fade-in {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

#title-bar {
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    position: relative;
}

#title-bar h1 {
    font-family: 'Orbitron-Bold', 'Orbitron', sans-serif;
    font-size: 24px;
    margin: 0;
}

#close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    background-color: transparent;
    color: #FF00FF;
    border: 2px solid #FF00FF;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
}

#close-button:active {
    color: #B500B5;
    border-color: #B500B5;
}

#gallows {
    display: block;
    margin: 20px auto;
    background-color: #333333;
}

#word-display {
    font-size: 40px;
    margin-top: 20px;
    letter-spacing: 10px;
    font-family: 'Orbitron', sans-serif;
}

#result-message {
    font-size: 28px;
    margin-top: 30px;
    font-family: 'Press Start 2P', cursive;
    color: #FF00FF;
}

.hint {
    margin-top: 40px;
    color: #aaa;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
}

/* Letter animation */
@keyframes floatHoldFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(1.4);
        color: #FF00FF;
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1.6);
        color: #FF00FF;
    }
    21% {
        color: inherit;
    }
    70% {
        opacity: 1;
        transform: translateY(0) scale(1.6);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1);
    }
}

.letter-float {
    position: fixed;
    bottom: 8vw;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-family: 'Orbitron', sans-serif;
    animation: floatHoldFade 1.8s ease-in-out forwards;
    pointer-events: none;
    z-index: 999;
    color: #FF00FF;
    transition: color 0s;
}

.letter-correct {
    color: lime;
}

.letter-wrong {
    color: red;
}