* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hangman-box {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 1rem;
}

.word-display {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 2rem;
}

.word-display span {
    width: 40px;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2c3e50;
    text-transform: uppercase;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 500px;
}

.keyboard button {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.keyboard button:hover {
    background: #e9ecef;
}

.keyboard button.used {
    background: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
}

.keyboard button.correct {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.keyboard button.wrong {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.keyboard button.active {
    transform: scale(0.95);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.game-message {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1rem 0;
    min-height: 1.5rem;
}

.new-game-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.new-game-btn:hover {
    background: #0056b3;
}

.category-display {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-style: italic;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.clue-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.clue-btn:hover {
    background: #218838;
}

.clue-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.topic-selection {
    text-align: center;
    margin-bottom: 2rem;
}

.topic-selection h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.topic-button {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.1rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s;
}

.topic-button:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
}

.topic-button.selected {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.hidden {
    display: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
}

.home-button {
    position: absolute;
    left: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.home-button:hover {
    color: #007bff;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
} 