body{
    font-family: sans-serif;
}

#game-name{
    font-weight: 600;
}
#header{
display: flex;
justify-content: space-between;
width: 100% ;
}

#man-letters{
    display: flex;
    width: 92%;
    margin: auto;
    gap: 10px;
}

#man{
    background-color: lightgrey;
    min-width: 300px;
    max-width: 300px;
}

#letters{
    margin: auto;
max-width: 500px;
}
#letters div{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
    justify-content: center;
    gap: 14px ;

}



#letters div span{
    color: white;
    background-color: darkcyan;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-size: 20px;
    height: fit-content;
    border-radius: 5px;
    width: 30px;
    margin: 0 4px 4px 4px;
    padding: 8px;

}

#words-place{
    background-color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
}
#header div:last-child{
    margin-right: 20px;
}
#cat{
font-weight: 800;
}

.word-box{
    width: 40px;
    border-radius: 5px;
    background-color: aliceblue;
    height: 38px;
    display: flex;
    align-items:center ;
    justify-content: center;

}

.word-box p {
    width: 90%;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    border-bottom: 2px solid black;
    height: 90%;
    display: none;
}

#letters span.active{
    cursor: none;
    background-color: lightgray;
    opacity: 50%;
}

hr{
    background-color:rgb(20, 187, 20);
    height: 3px;
}

#man{
    position: relative;
    height: 300px;
}

#stand{
    position: absolute;
    bottom: 1%;
    left: 25% ;
    width: 35px;
    border-bottom:  3px solid black;
}


#stick-head-holder{
    height: 220px;
    border-left: 3px solid black;
    position: absolute;
    left: 27%;
    top: 25%;
display:none;
}
#stick-head-holder::after{
    position: absolute;
    content: '';
    width: 70px;
    left: -1px;
    top: 5px;
    border-top: solid 3px;
}

#head-robe{
    border-radius: 50%;
    border-style:dashed;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 33.5% ;
    left:41.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

#head-robe::before{
    position: absolute;
    content: '';
    border-left: solid 3px;
    height: 20px;
    top: -23px;
    left: 25px;
}

#head{
    border-radius: 50%;
    width: 35px;
    height: 35px;
    border: solid 2px;

}

#neck-arms{
    position: absolute;
    top: 155px;
    left: 150px;
    border-left: solid 3px;
    height: 35px;
    display: none;
}

#neck-arms::before{
    content: '';
    position: absolute;
    width: 45px;
    border-top: 3px solid;
    top: 20px;
    left: -5px;
    transform: rotate(-35deg);
}

#neck-arms::after{
    content: '';
    position: absolute;
    width: 45px;
    border-top: 3px solid;
    top: 20px;
    right: -1px;
    transform: rotate(35deg);
}


#body-legs{
    position: absolute;
    top: 180px;
    left: 150px;
    border-left: solid 3px;
    height: 50px; 
    display: none;
}

#body-legs::before{
    content: '';
    position: absolute;
    width: 45px;
    border-top: 3px solid;
    top: 60px;
    left: -5px;
    transform: rotate(-145deg);
}

#body-legs::after{
    content: '';
    position: absolute;
    width: 45px;
    border-top: 3px solid;
    top: 60px;
    right: -1px;
    transform: rotate(145deg);
}

.cong-msg{
    position: absolute;
    width: 70% ;
    top: 50% ;
    right: 50%;
    transform: translate(50% , -50%);
    border: solid 1px;
    border-radius: 10px;
    background-color:white;
    padding: 60px;
    text-align: center;
    font-weight: 700;
}

.cong-msg.failed{
    color: red;
}

@media (max-width: 680px) {
   #man-letters{
    display: block;
    margin: auto;
   } 
   #man{
    margin: auto;
   }
   #letters{
margin-top: 5px;
   }
}

@media (max-width: 300px){
    #man{
        min-width: 100px;
    }
    #letters div span{
        padding: 3px;
    }
}
