body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
}

#game-container {
    position: relative;
    width: 700px;
    height: 350px;
    margin-bottom: 20px;
}

#alien-image {
    width: 325px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
}

#alien-mouth-target {
    width: 163px;
    height: 114px;
    border: 3px dashed transparent;
    border-radius: 50%;
    transition: border-color 0.3s, background-color 0.3s;
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#alien-mouth-target.over {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

#draggable-letters-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#progress-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 800px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: grab;
    user-select: none;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, opacity 0.3s;
}

.progress-letter {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #aaa;
    transition: background-color 0.3s, color 0.3s;
}

.progress-letter.correct {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

#alphabet-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 800px;
}

.letter {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: grab;
    user-select: none;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, opacity 0.3s;
}

.letter.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.letter.correct {
    background-color: #28a745;
    color: white;
    cursor: default;
    opacity: 0;
    pointer-events: none;
}

.letter.incorrect {
    animation: shake 0.5s;
    background-color: #dc3545;
    color: white;
}

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

#win-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 100;
}

#win-message.hidden {
    display: none;
}

#restart-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    margin-top: 10px;
}

#restart-button:hover {
    background-color: #0056b3;
}