.wha-crossword-row {

    height: 100%;
    min-width: 400px;
    margin: 0;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wha-square.wha-letter.wha-first {
    position: relative;
}

input.wha-word {
    display: none;
}

.wha-square.wha-letter.wha-correct {
    background-color: #b3ffb4;
}

.wha-square.wha-letter.wha-correct .wha-char {
    background-color: transparent !important;
}

.wha-square.wha-letter.wha-error {
    background-color: #ff372c63 !important;
}

.wha-square.wha-letter.wha-error .wha-char {
    background-color: transparent !important;
}

.wha-row {
    margin: 0;
    line-height: 1.4;
}

.wha-square.wha-letter.wha-first div.wha-counter {
    content: '1';
    z-index: 10;
    position: absolute;
    font-size: 15px;
    line-height: 1em;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    text-align: right;
}

.wha-crossword-container {
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.wha-square {
    border: 1px solid transparent;
}

.wha-square.wha-letter {
    border-color: #202020;
}

.wha-center {
    margin: 0 auto;
}

.wha-crossword-container .wha-word, .wha-crossword-container .wha-clue {
    display: inline-block;
    height: 1.5em;
    padding: 0 5px;
}

.wha-crossword-container .wha-word {
    text-align: right;
    width: 100px;
}

.wha-crossword {
    display: block;
    padding: 0 15px;
}

.wha-square {
    margin: 0 1px 1px 0;
    display: inline-block;
    font: 24px Calibri;
    width: 1.25em;
    height: 1.25em;
    line-height: 1.25em;
    vertical-align: middle;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wha-letter {
    background-color: rgb(255, 255, 255);
    /*-webkit-touch-callout: text;*/
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.wha-char:focus {
    -webkit-box-shadow: 0 0 0 2px rgba(255, 32, 32, 1);
    -moz-box-shadow: 0 0 0 2px rgba(255, 32, 32, 1);
    box-shadow: inset 0 0 0 2px rgba(255, 32, 32, 1);
}

#wha-crossword input.wha-char {
    z-index: 9;
    position: relative;
    background-color: transparent;
    font-size: inherit;
    text-transform: uppercase;
    outline: 0;
    border: 0;
    padding: 0;
    margin: -1px 0 0 -1px;
    width: 1.35em;
    height: 1.35em;
    text-align: center;
    background: none;
    cursor: pointer;
}

.wha-hide {
    visibility: hidden;
}

.wha-clueReadOnly {
    border: 0;
    outline: 0;
}


.crossword_wrapper {
    display: flex;
    align-items: center;
    width: max-content;
    margin: 0 auto !important;
    flex-direction: row;
}

.radio_btn {
    padding: 0 10px;
    margin: 0;
}

.wha-crossword-questions {
    max-width: 300px;
    padding: 0 25px;
}




/*** Modal window ***/
#modal_form_crossword {
    width: 100%;
    max-width: 25%;
    border-radius: 5px;
    border: 1px #7f7f7f solid;
    background: #ffffff;
    position: fixed;
    left: 37%;
    margin-top: -150px;
    display: none;
    z-index: 1100;
    padding: 30px 10px;
}
#modal_form_crossword #modal_close {
    width: 21px;
    height: 21px;
    position: absolute;
    top: 0;
    right: 10px;
    cursor: pointer;
    display: block;
    font-size: 16px;
    font-family: cursive;
}
#modal_form_crossword .content {
    padding: 15px;
    text-align: center;
}

#overlay {
    z-index:1000;
    position:fixed;
    background-color:#000;
    opacity:0.6;
    -moz-opacity:0.8;
    filter:alpha(opacity=80);
    width:100%;
    height:100%;
    max-width: 100%;
    top:0;
    left:0;
    cursor:pointer;
    display:none;
}
/*** ----  End modal --- ***/

@media screen and (max-width: 767px) {
    .wha-square,
    #wha-crossword input.wha-char {
        font-size: inherit;
    }

    .wha-clue {
        width: 300px;
    }

    body .crossword_wrapper {
        display: block;
    }

    .wha-crossword-questions {
        max-width: 100%;
    }

    .wha-crossword-row {
        min-width: auto;
    }

    .wha-crossword {
        width: 100%;
        overflow: scroll;
    }
    .crossword_wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        flex-direction: row;
        overflow: hidden;
        padding-top: 50px;
    }

    .wha-crossword-container {
        display: flex;
        align-items: center;
        width: max-content;
        margin: 0 auto;
        flex-direction: row;
    }

    .wha-crossword-row{
        overflow: scroll;
    }

    #modal_form_crossword {
        width: 100%;
        max-width: 90%;
        border-radius: 0;
        left: 0;
        margin: 0 auto;
        right: 0;
    }

}