:root {
    --max-letters: 15;
    --letter-margin: 3%;
}
body {
    font-family: Helvetica;
    padding: 0;
    margin: 0;
    font-size: 18px;
    background: url('../img/bg_effect.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
}
body.hanged, body.escaped {
    background: url('../img/bg.png') no-repeat center center;
    background-size: cover;
}
#rules {
    display: none;
}
h1 {
    /*color: rgb(187, 2, 95);*/
    
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    /*background-color: #fff;*/
    
    padding: 40px 0;
    font-weight: bold;
    font-size: 34px;
}
a {
    color: yellow;
}
.strong {
    font-weight: bold;
}
.square-input {
    width: 40px;
    height: 40px;
    text-align: center;
    margin-left: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}
.btn-primary {
    background-color: #fff;
    color: rgb(187, 2, 95);
    border: none;
    border-radius: 0;
    font-weight: bold;
    font-size: 20px;
    padding: 10px 20px;
}
.btn-primary:hover, .btn-secondary:hover {
    background-color: #000;
}
.btn-secondary {
    background-color: rgb(187, 2, 95);
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: bold;
    font-size: 20px;
    padding: 10px 20px;
}
small {
    font-size: 10px;
}
.success-pic {
    border: 4px solid #fff;
    border-radius: 4px;
}
.good-letters {
    text-align: center;
    padding: 0;
    text-transform: uppercase;
}
.good-letters li {
    display: inline-block;
    width: calc(((100 / var(--max-letters)) * 1%) - (var(--letter-margin) * 2));
    margin: 0 var(--letter-margin);
    font-size: 30px;
    font-weight: bold;
    text-align: center;
}
.good-letters li:first-child {
    margin-left: 0;
}
.good-letters li:last-child {
    margin-right: 0;
}
.good-letters li:empty {
    border-bottom: 3px solid #fff;
}
#win, #lose {
    display: none;
}
.big-text {
    font-size: 26px;
    font-weight: bold;
}
.img-box {
    border: 4px solid #fff;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
}
.img-box li {
    list-style: none;
    background-image: url('../img/1.jpg');
    background-repeat: no-repeat;
    background-size: 300%;
    border: 1px solid #fff;
}
.img-box li:first-child {
    background-position: 0 0;
}
.img-box li:nth-child(2) {
    background-position: 50% 0;
}
.img-box li:nth-child(3) {
    background-position: 100% 0;
}
.img-box li:nth-child(4) {
    background-position: 0 33.3333%;
}
.img-box li:nth-child(5) {
    background-position: 50% 33.3333%;
}
.img-box li:nth-child(6) {
    background-position: 100% 33.3333%;
}
.img-box li:nth-child(7) {
    background-position: 0 66.6666%;
}
.img-box li:nth-child(8) {
    background-position: 50% 66.6666%;
}
.img-box li:nth-child(9) {
    background-position: 100% 66.6666%;
}
.img-box li:nth-child(10) {
    background-position: 0 100%;
}
.img-box li:nth-child(11) {
    background-position: 50% 100%;
}
.img-box li:nth-child(12) {
    background-position: 100% 100%;
}
.img-box li.lostlife {
    filter: grayscale(1);
}
.small-text {
    font-size: 12px;
}
.playui {
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 26px;
    border: 3px solid #c3023c;
}
#smiley-img {
    width: 50%;
    margin: 20px auto;
    display: block;
}
#smiley-text, #smiley-text-mobile {
    font-weight: bold;
    background-color: #ffce00;
    border-radius: 16px;
    color: #000;
    padding: 5px 20px;
    font-size: 16px;
    text-align: center;
}
.smiley-box {
    background: url('../img/smiley_effect.png') no-repeat center center;
    background-size: 65%;
    padding: 10px 0;
}
.big-text-btn img {
    height: 24px;
    display: inline-block;
    vertical-align: top;
}
.endgame-img {
    width: 100%;
}
.answer {
    text-transform: uppercase;
}
@media only screen and (max-width: 600px) {
    #smiley-img {
        width: 30%;
    }
    .smiley-box {
        background: none;
        padding: 0;
    }
    body {
        background: url('../img/bg.png') no-repeat center center;
        background-size: cover;
    }
    .new-game img, .new-game br {
        display: none;
    }
    .new-game {
        padding: 10px 20px;
        font-size: 20px;
    }
    .big-text {
        font-size: 13px;
    }
    .endgame-img {
        width: 50%;
        display: block;
        margin: 0 auto;
    }
    #smiley-img {
        width: 60%;
    }
    .good-letters li {
        width: calc(((100 / var(--max-letters)) * 1%) - (var(--letter-margin) * 1));
    }
    .playui {
        font-size: 16px;
    }
    h1 {
        padding: 30px 0 10px;
        font-size: 18px;
    }
}
