/* styles.css */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    padding: 10px;
}

.game-container {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

div.image {
    width: 200px;
    height: auto;
    background-image: url(hangman-game.png)
}

#gallows {
    position: relative;
    height: 200px;
    width: 120px;
    margin: 0 auto 20px;
}

.part {
    display: none;
    position: absolute;
    background: black;
}

.head {
    top: 30px;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transform: translateX(-50%);
}

.body {
    top: 60px;
    left: 50%;
    width: 10px;
    height: 60px;
    transform: translateX(-50%);
}

.left-arm {
    top: 60px;
    left: 50%;
    width: 40px;
    height: 10px;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: left;
}

.right-arm {
    top: 60px;
    left: 50%;
    width: 40px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    transform-origin: right;
}

.left-leg {
    top: 120px;
    left: 50%;
    width: 40px;
    height: 10px;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: left;
}

.right-leg {
    top: 120px;
    left: 50%;
    width: 40px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    transform-origin: right;
}

#word-container {
    font-size: 2em;
    margin: 20px 0;
}

#letters-container {
    margin: 20px 0;
}

#letters-container button {
    margin: 5px;
    font-size: 1em;
    padding: 10px;
    cursor: pointer;
}

#message {
    font-size: 1.2em;
    margin: 20px 0;
}

#remaining-attempts, #score, #timer {
    font-size: 1em;
    margin: 10px 0;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

button.disabled {
    background-color: #808080;
    color: white;
    cursor: default;
}

#timer {
    font-size: 1.5em;
    margin-top: 20px;
}

#wrong-letters-container {
    margin: 20px 0;
    font-size: 1em;
    color: red;
}
