:root {
    --skin-color: rgb(184, 147, 112);
    --wood-color: #825A2C;
}

* {
    font-family: monospace, Arial, Helvetica, sans-serif;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    justify-content: center;
    overflow: auto;
}

.board {
    min-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    text-transform: uppercase;
    font-size: 3rem;
}

#word-container {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-top: 20px;
}

.label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid gray;
    font-size: 1.5rem;
}

#keyboard {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    margin-top: 20px;
    gap: 5px;
}

input {
    font-size: 1.5rem;
}

.hangman {
    position: relative;
    height: 200px;
    min-height: 200px;
    width: 200px;
    border: 1px solid gray;
    background-color: rgb(241, 241, 241);
    border-radius: 5px;
    overflow: hidden;
}

.post1 {
    position: absolute;
    width: 40%;
    height: 10px;
    background-color: var(--wood-color);
    top: 20px;
    left: 30px;
}

.post2 {
    position: absolute;
    width: 10px;
    height: calc(100% - 60px);
    background-color: var(--wood-color);
    top: 20px;
    left: 30px;
}

.post3 {
    position: absolute;
    width: 10px;
    height: 30px;
    background-color: var(--wood-color);
    top: 22px;
    left: 42px;
    transform: rotate(45deg);
}

.floor {
    position: absolute;
    width: 100%;
    height: 40px;
    background-color: #60A917;
    bottom: 0;
    left: 0;
}

#head {
    position: absolute;
    width: 35px;
    height: 35px;
    background-color: var(--skin-color);
    top: 35px;
    left: calc(50% - 12px);
    border-radius: 50%;
}

#torso {
    position: absolute;
    width: 15px;
    height: 50px;
    background-color: var(--skin-color);
    top: 65px;
    left: calc(50% - 2.5px);
}

#left-arm {
    position: absolute;
    width: 8px;
    height: 35px;
    background-color: var(--skin-color);
    top: 65px;
    left: calc(50% - 15px);
    transform: rotate(45deg);
}

#right-arm {
    position: absolute;
    width: 8px;
    height: 35px;
    background-color: var(--skin-color);
    top: 65px;
    left: calc(50% + 16px);
    transform: rotate(-45deg);
}

#left-leg {
    position: absolute;
    width: 8px;
    height: 40px;
    background-color: var(--skin-color);
    top: 105px;
    left: calc(50% - 13px);
    transform: rotate(30deg);
}

#right-leg {
    position: absolute;
    width: 8px;
    height: 40px;
    background-color: var(--skin-color);
    top: 105px;
    left: calc(50% + 14px);
    transform: rotate(-30deg);
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

h2 {
    font-size: 2rem;
    margin: 0;
    margin-bottom: 20px;
}

a {
    font-size: 1.5rem;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}