body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.game-container {
    max-width: 600px;
    margin: 50px auto;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

#wordDisplay {
    font-size: 2em;
    margin-bottom: 20px;
    letter-spacing: 0.3em;
}

.alphabet {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.alphabet button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
}

.alphabet button:hover {
    background-color: #0056b3;
}

#hangman-figure {
    margin-top: 30px;
    position: relative;
}

.figure-part {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border-radius: 50%;
    border: 3px solid black;
    position: absolute;
    display: none;
}

#head {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#body {
    width: 10px;
    height: 60px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}

#left-arm, #right-arm {
    width: 50px;
    height: 10px;
    top: 70px;
}

#left-arm {
    left: calc(50% - 50px);
}

#right-arm {
    left: calc(50% + 10px);
}

#left-leg, #right-leg {
    width: 50px;
    height: 10px;
    top: 110px;
}

#left-leg {
    left: calc(50% - 50px);
}

#right-leg {
    left: calc(50% + 10px);
}

#message {
    margin-top: 20px;
    font-size: 1.2em;
    color: red;
}

#resetBtn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

/* restul stilurilor rămân la fel */

#hangman-figure {
    margin-top: 30px;
    position: relative;
    height: 200px;
    width: 120px;
    margin: 0 auto;
}

#head {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 3px solid black;
	background-color: yellow;
}

#body {
    width: 5px;
    height: 80px;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: green;
}

#left-arm, #right-arm {
    width: 60px;
    height: 5px;
    top: 80px;
    background-color: black;
}

#left-arm {
    left: calc(50% - 60px);
}

#right-arm {
    left: calc(50% + 5px);
}

#left-leg, #right-leg {
    width: 60px;
    height: 5px;
    top: 140px;
    background-color: magenta;
}

#left-leg {
    left: calc(50% - 30px);
    transform: rotate(45deg);
}

#right-leg {
    left: calc(50% - 30px);
    transform: rotate(-45deg);
}

/* Actualizare pentru evitarea suprapunerii */
#resetBtn {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.alphabet button {
    padding: 10px;
    margin: 5px;
    font-size: 1.2em;
    border-radius: 5px;
    width: 50px;  /* Ajustat pentru a încăpea caracterele mai bine */
}