@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 800px;
    padding: 20px;
    width: 100%;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.difficulty-select {
    margin: 20px 0;
    text-align: center;
}

button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #2196f3;
    color: white;
    font-weight: bold;
}

button:hover {
    background-color: #1976d2;
}

.game-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#hangmanCanvas {
    border: 2px solid #ddd;
    border-radius: 8px;
}

.word-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.letter-space {
    width: 30px;
    height: 40px;
    border-bottom: 3px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 5px;
    width: 100%;
    max-width: 500px;
}

.key {
    padding: 10px;
    background-color: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.key:hover:not(.used) {
    background-color: #e8e8e8;
    transform: scale(1.05);
}

.key.used {
    opacity: 0.7;
    cursor: not-allowed;
}

.key.correct {
    background-color: #4caf50;
    color: white;
    border-color: #45a049;
}

.key.wrong {
    background-color: #f44336;
    color: white;
    border-color: #da190b;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.modal-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.hint-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hint-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #2196f3;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.hint-button:hover {
    transform: scale(1.1);
    color: #1976d2;
}

.hint-text {
    font-style: italic;
    color: #666;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hint-label {
    font-weight: bold;
    color: #333;
}

@media (max-width: 768px) {
    .keyboard {
        grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    }

    .letter-space {
        width: 25px;
        height: 35px;
        font-size: 20px;
    }
}

.game-settings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.theme-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-select label {
    font-weight: bold;
    color: #333;
}

.theme-select select {
    padding: 8px;
    border: 2px solid #2196f3;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

.theme-select select:hover {
    border-color: #1976d2;
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2196f3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #1976d2;
}

.back-button i {
    font-size: 16px;
}

.reset-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.reset-button:hover {
    background-color: #1976d2;
}

.reset-button i {
    font-size: 14px;
} 