*{
    box-sizing: border-box;

}
body{
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

.container{
    margin: 20px auto;
    width: 1000px;
}
.row{
    display: flex;
}
hr{
    border: 1px solid #EEE;
}
.game-info{
    display: flex;
    
    .game-name{
        flex: 1;
        font-weight: bold;
        font-size: 30px;
        color: #009688;
    }
    .category{
        font-size: 30px;
        flex: 1;
        text-align: right;
        span{
            text-transform: capitalize;
            color: #E91E63;
            font-weight: bold;
        }
    }
}
.hangman-draw{
    flex: 1;
    background-color: #f8f8f8;
    padding: 20px;
    height: 324px;
    .the-draw{
        width: 60px;
        height: 280px;
        border-bottom: 4px solid #222;
        position: relative;
        margin: auto;
        left: -60px;
        display: none;

        .the-stand:before{
        content: '';
        position: absolute;
        width: 4px;
        background-color: #222;
        height: 100%;
        left: 50%;
        margin-left: -2px;
        display: none;
        }
        .the-hang{
            display: none;
        }

        .the-hang:before{
        content: '';
        position: absolute;
        height: 4px;
        background-color: #222;
        width: 100px;
        left: 30px;
        top: 15px;
        
        }
        .the-hang::after{
        content: '';
        position: absolute;
        width: 4px;
        height: 30px;
        background-color: #222;        
        left: 130px;
        top: 15px;
        
        }
        .the-rope{
            width: 70px;
            height: 70px;
            border-radius: 50%;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            -ms-border-radius: 50%;
            -o-border-radius: 50%;
            position: absolute;
            left: 95px;
            top: 45px;
            border: 4px dashed #222;
            display: none;
        }
        
                .head{
                width: 50px;
                height: 50px;
                border-radius: 50%;
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                -ms-border-radius: 50%;
                -o-border-radius: 50%;
                border: 4px solid #222;
                position: absolute;
                left: 105px;
                top: 55px;
                display: none;
            }
            .body{
                position: absolute;
                background-color: #222;
                width: 4px;
                height: 110px;
                top: 102px;
                left: 130px;
                display: none;
            }
            .hands{
                display: none;
            }
            .hands::before{
                content: '';
                width: 50px;
                position: absolute;
                background-color: #222;
                height: 4px;
                left: 85px;
                top: 140px;
                transform: rotate(30deg);
                -webkit-transform: rotate(30deg);
                -moz-transform: rotate(30deg);
                -ms-transform: rotate(30deg);
                -o-transform: rotate(30deg);
                
            }
            .hands::after{
                content: '';
                width: 50px;
                position: absolute;
                background-color: #222;
                height: 4px;
                left: 130px;
                top: 140px;
                transform: rotate(-30deg);
                -webkit-transform: rotate(-30deg);
                -moz-transform: rotate(-30deg);
                -ms-transform: rotate(-30deg);
                -o-transform: rotate(-30deg);
                
            }

            .legs{
                display: none;
            }
            .legs::before{
                content: '';
                width: 50px;
                position: absolute;
                background-color: #222;
                height: 4px;
                left: 85px;
                top: 220px;
                transform: rotate(-30deg);
                -webkit-transform: rotate(-30deg);
                -moz-transform: rotate(-30deg);
                -ms-transform: rotate(-30deg);
                -o-transform: rotate(-30deg);
                
}
            .legs::after{
                content: '';
                width: 50px;
                position: absolute;
                background-color: #222;
                height: 4px;
                left: 130px;
                top: 220px;
                transform: rotate(30deg);
                -webkit-transform: rotate(30deg);
                -moz-transform: rotate(30deg);
                -ms-transform: rotate(30deg);
                -o-transform: rotate(30deg);
                
}
        }
    
    
}

.hangman-draw.wrong-1 .the-draw{
    display: block;
}
.hangman-draw.wrong-2 .the-stand:before{
    display: block;
}
.hangman-draw.wrong-3 .the-hang{
    display: block;
}
.hangman-draw.wrong-4 .the-rope{
    display: block;
}
.hangman-draw.wrong-5 .head{
    display: block;
}
.hangman-draw.wrong-6 .body{
    display: block;
}
.hangman-draw.wrong-7 .hands{
    display: block;
}
.hangman-draw.wrong-8 .legs{
    display: block;
}

.letters{
    flex: 1;
    padding: 15px;
    text-align: center;
    .letter-box{
        width: 55px;
        height: 55px;
        display: inline-block;
        background-color: #009688;
        color: #fff;
        font-size: 24px;
        margin-right: 10px;
        line-height: 55px;
        text-transform: uppercase;
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 10px;

        
    }
}
.letters.finished{
    pointer-events: none;

}
.letter-guess{
    margin: 10px auto;
    background-color: #f8f8f8;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 104px;
    span{
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-right: 10px;
        text-align: center;
        line-height: 60px;
        text-transform: uppercase;
        font-weight: bold;
        background-color: #fdfdfd;
        border-bottom: 3px solid #222;
        transition: .3s;
        -webkit-transition: .3s;
        -moz-transition: .3s;
        -ms-transition: .3s;
        -o-transition: .3s;

}
}
        .with-space{
            background-color: none;
            border: none;
            position: relative;
        }
        .with-space::before{
            content: '';
            width: 20px;
            height: 4px;
            background-color: #222;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            -webkit-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
}
.clicked{
            background-color: #222;
            opacity: 0.4;
            pointer-events: none;
        }

.popup{
    background-color: #009688;
    padding: 100px 20px;
    position: fixed;
    width: 80%;
    top: 20%;
    left: 10%;
    display: flex;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: #e02424;
    font-size: 30px;
    border-radius: 15px;
}

.succeccPopup{
    position: fixed;
    width: 80%;
    background-color: #009688;
    color: #EEE;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    top: 25%;
    left: 10%;
    font-size: 30px;
    font-weight: bold;
    border-radius: 15px;
    line-height: 40px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}