/* Classic Terminal Theme - Bright Green on Black */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: #000000;
    color: #00ff00;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #000000;
    padding: 30px;
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    position: relative;
}

h1 {
    text-align: center;
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 2.5em;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Stats Bar */
.stats {
    background: #001100;
    padding: 10px;
    border: 1px solid #00ff00;
    text-align: center;
    margin-bottom: 20px;
    color: #00ff00;
}

.stats p {
    margin: 0;
    font-size: 0.9em;
}

/* Flash Messages */
.flash {
    padding: 12px;
    margin: 10px 0;
    border: 2px solid;
    text-align: center;
    font-weight: bold;
}

.flash-success {
    background: #002200;
    color: #00ff00;
    border-color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.flash-error {
    background: #220000;
    color: #ff0000;
    border-color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.flash-info {
    background: #001122;
    color: #00ffff;
    border-color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Difficulty Selector */
.difficulty {
    text-align: center;
    margin: 20px 0;
    color: #00ff00;
}

.difficulty p {
    margin-bottom: 10px;
}

.btn-difficulty {
    padding: 8px 15px;
    margin: 0 5px;
    background: #000000;
    color: #00ff00;
    border: 2px solid #00ff00;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
}

.btn-difficulty:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Hangman SVG Art */
.hangman-display {
    text-align: center;
    margin: 30px 0;
}

.hangman-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    background: #000000;
    padding: 20px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    display: inline-block;
}

/* Additional glow effect for SVG container */
.hangman-display svg {
    filter: drop-shadow(0 0 3px rgba(0, 255, 0, 0.4));
}

/* Lives */
.lives {
    text-align: center;
    margin: 15px 0;
    font-size: 1.1em;
    color: #00ff00;
}

/* Word Display */
.word-display {
    text-align: center;
    margin: 30px 0;
}

.word-display h2 {
    font-size: 2.5em;
    letter-spacing: 10px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Alphabet Grid */
.alphabet {
    text-align: center;
    margin: 30px 0;
}

.alphabet form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}

.letter {
    width: 50px;
    height: 50px;
    margin: 5px;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid #00ff00;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #00ff00;
}

.letter-available:hover {
    background: #00ff00;
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.letter-correct {
    background: #004400;
    color: #00ff00;
    border-color: #00ff00;
    cursor: not-allowed;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.letter-wrong {
    background: #440000;
    color: #ff0000;
    border-color: #ff0000;
    cursor: not-allowed;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.letter:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Action Buttons */
.actions {
    text-align: center;
    margin-top: 30px;
}

.btn-action {
    padding: 12px 25px;
    margin: 5px;
    background: #000000;
    color: #00ff00;
    border: 2px solid #00ff00;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
}

.btn-action:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.btn-reset {
    border-color: #ff0000;
    color: #ff0000;
}

.btn-reset:hover {
    background: #ff0000;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #00ff00;
    color: #00ff00;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        border-width: 2px;
    }
    
    h1 {
        font-size: 1.8em;
        letter-spacing: 2px;
    }
    
    .word-display h2 {
        font-size: 1.8em;
        letter-spacing: 5px;
    }
    
    .letter {
        width: 40px;
        height: 40px;
        font-size: 1em;
        margin: 3px;
    }
    
    .hangman-svg {
        max-width: 250px;
        padding: 15px;
    }
    
    .btn-action {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}
