.ahvtm-ws-grid {
    display: inline-block;
    line-height: normal
}

.ahvtm-hidden{
	visibility: hidden;
}

button.ahvtm-word {
    margin: 5px
}

.ahvtm-ws-cell {
    z-index: 6;
    border: 1px solid #d3d3d361;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    font-size: 30px;
    position: relative;
    transition: background 0.9s;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.ahvtm-ws-cell div {
    position: absolute;
    display: inline-block;
    z-index: -1;
    top: 0px;
    left: 0px;
    width: 40px;
    height: 40px
}

.ahvtm-ws-grid.ahvtm-color1 .ahvtm-ws-cell:hover {
    transition: background 0.2s;
    background: rgba(255, 69, 0, 0.2)
}

.ahvtm-ws-grid.ahvtm-color1 .ahvtm-ws-cell.ahvtm_selected {
    transition: background 0.2s;
    background: rgba(255, 69, 0, 0.3)
}

.ahvtm-ws-grid.ahvtm-color1 .ahvtm-ws-cell.ahvtm_path {
    transition: background 0.2s;
    background: rgba(255, 69, 0, 0.3)
}

.ahvtm-ws-grid.ahvtm-color1 .ahvtm-ws-cell.ahvtm_correct-path {
    transition: background 0.2s;
    background: rgba(255, 69, 0, 0.5)
}

.ahvtm-ws-cell div.ahvtm-solved.ahvtm-color1 {
    transition: background 0.2s;
    background: rgba(255, 69, 0, 0.6)
}

.ahvtm-word.ahvtm-solved.ahvtm-color1 {
    color: #ff4500;
    text-decoration: line-through
}

.ahvtm-ws-grid.ahvtm-color2 .ahvtm-ws-cell:hover {
    transition: background 0.2s;
    background: rgba(50, 205, 50, 0.2)
}

.ahvtm-ws-grid.ahvtm-color2 .ahvtm-ws-cell.ahvtm_selected {
    transition: background 0.2s;
    background: rgba(50, 205, 50, 0.3)
}

.ahvtm-ws-grid.ahvtm-color2 .ahvtm-ws-cell.ahvtm_path {
    transition: background 0.2s;
    background: rgba(50, 205, 50, 0.3)
}

.ahvtm-ws-grid.ahvtm-color2 .ahvtm-ws-cell.ahvtm_correct-path {
    transition: background 0.2s;
    background: rgba(50, 205, 50, 0.5)
}

.ahvtm-ws-cell div.ahvtm-solved.ahvtm-color2 {
    transition: background 0.2s;
    background: rgba(50, 205, 50, 0.6)
}

.ahvtm-word.ahvtm-solved.ahvtm-color2 {
    color: #32cd32;
    text-decoration: line-through
}

.ahvtm-ws-grid {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.ahvtm-ws-grid .ng-scope{
    margin: 0;
}

.ahvtm-ws-grid.ahvtm-color3 .ahvtm-ws-cell:hover {
    transition: background 0.2s;
    background: rgba(0, 255, 255, 0.2)
}

.ahvtm-ws-grid.ahvtm-color3 .ahvtm-ws-cell.ahvtm_selected {
    transition: background 0.2s;
    background: rgba(0, 255, 255, 0.3)
}

.ahvtm-ws-grid.ahvtm-color3 .ahvtm-ws-cell.ahvtm_path {
    transition: background 0.2s;
    background: rgba(0, 255, 255, 0.3)
}

.ahvtm-ws-grid.ahvtm-color3 .ahvtm-ws-cell.ahvtm_correct-path {
    transition: background 0.2s;
    background: rgba(0, 255, 255, 0.5)
}

.ahvtm-ws-cell div.ahvtm-solved.ahvtm-color3 {
    transition: background 0.2s;
    background: rgba(0, 255, 255, 0.6)
}

.ahvtm-word.ahvtm-solved.ahvtm-color3 {
    color: cyan;
    text-decoration: line-through
}

.ahvtm-ws-grid.ahvtm-color4 .ahvtm-ws-cell:hover {
    transition: background 0.2s;
    background: rgba(255, 215, 0, 0.2)
}

.ahvtm-ws-grid.ahvtm-color4 .ahvtm-ws-cell.ahvtm_selected {
    transition: background 0.2s;
    background: rgba(255, 215, 0, 0.3)
}

.ahvtm-ws-grid.ahvtm-color4 .ahvtm-ws-cell.ahvtm_path {
    transition: background 0.2s;
    background: rgba(255, 215, 0, 0.3)
}

.ahvtm-ws-grid.ahvtm-color4 .ahvtm-ws-cell.ahvtm_correct-path {
    transition: background 0.2s;
    background: rgba(255, 215, 0, 0.5)
}

.ahvtm-ws-cell div.ahvtm-solved.ahvtm-color4 {
    transition: background 0.2s;
    background: rgba(255, 215, 0, 0.6)
}

.ahvtm-word.ahvtm-solved.ahvtm-color4 {
    color: gold;
    text-decoration: line-through
}

.ahvtm-ws-grid.ahvtm-color5 .ahvtm-ws-cell:hover {
    transition: background 0.2s;
    background: rgba(199, 21, 133, 0.2)
}

.ahvtm-ws-grid.ahvtm-color5 .ahvtm-ws-cell.ahvtm_selected {
    transition: background 0.2s;
    background: rgba(199, 21, 133, 0.3)
}

.ahvtm-ws-grid.ahvtm-color5 .ahvtm-ws-cell.ahvtm_path {
    transition: background 0.2s;
    background: rgba(199, 21, 133, 0.3)
}

.ahvtm-ws-grid.ahvtm-color5 .ahvtm-ws-cell.ahvtm_correct-path {
    transition: background 0.2s;
    background: rgba(199, 21, 133, 0.5)
}

.ahvtm-ws-cell div.ahvtm-solved.ahvtm-color5 {
    transition: background 0.2s;
    background: rgba(199, 21, 133, 0.6)
}

.ahvtm-word.ahvtm-solved.ahvtm-color5 {
    color: #c71585;
    text-decoration: line-through
}

.ahvtm-rtl ul#ahvtm-level-select-dropdown {
    right: 0px;
}

.ahvtm-modal-wordsearch.opened {
    position: fixed;
    top: 0;
    bottom: 0;
    background: #0000007a;
    left: 0;
    z-index: 100;
    right: 0;
}

.ahvtm-wrap-drop {
    background: #ffffff;
    cursor: pointer;
    max-width: 225px;
    border: 1px solid;
    padding: 7px;
    position: relative;
    width: 75%;
    z-index: 10;
}

.ahvtm-wrap-drop::after {
    border-color: #858585 rgba(255, 0, 0, 0);
    border-style: solid;
    border-width: 9px 7px 0;
    content: "";
    height: 0;
    margin-top: -4px;
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0;
}

.rtl .ahvtm-wrap-drop::after {
    left: 1rem;
    right: initial;
}

.ahvtm-wrap-drop .ahvtm-drop {
    background: #ffffff;
    display: none;
    left: 0;
    border: 1px solid;
    list-style: none;
    margin-top: 0;
    opacity: 0;
    padding-left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 2;
}

.ahvtm-wrap-drop .ahvtm-drop li a {
    color: #000000;
    display: block;
    padding: 7px;
    text-decoration: none;
}

.ahvtm-wrap-drop span {
    color: #443a35;
}

.ahvtm-wrap-drop .ahvtm-drop li:hover a {
    background-color: #ddd9e3;
    color: #000000;
}

.ahvtm-wrap-drop.active::after {
    border-width: 9px 7px 0;
}

.ahvtm-wrap-drop.active .ahvtm-drop {
    display: block;
    opacity: 1;
    pointer-events: auto;
    overflow: scroll;
    height: 250px;
}

.ahvtm-word {
    padding: 8px 20px;
    background: white;
    border: 1px solid black;
    color: black;
}

/* Modal window */
.btn {
    background: #428bca;
    border: #357ebd solid 0px;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    padding: 8px 15px;
    text-decoration: none;
    text-align: center;
    min-width: 60px;
    position: relative;
    transition: color .1s ease;
}

.btn:hover {
    background: #357ebd;
}

.btn.btn-big {
    font-size: 18px;
    padding: 15px 20px;
    min-width: 100px;
}

.ahvtm-btn-close {
    color: #aaaaaa;
    font-size: 20px;
    text-decoration: none;
    position: absolute;
    right: 12px;
    float: right;
    top: 1px;
}

.ahvtm-btn-close:hover {
    color: #919191;
}

.opened:before {
    display: block;
}

.opened .ahvtm-modal-dialog {
    top: 20%;
    position: fixed;
    margin: 0 auto;
    left: 0;
    right: 0;
    height: 0;
    text-align: center;
}

.ahvtm-modal-dialog {
    background: #fefefe;
    border: #333333 solid 0px;
    border-radius: 5px;
    text-align: center;
    position: fixed;
    left: 50%;
    top: -100%;
    z-index: 100;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    -webkit-transform: translate(0, -500%);
    -ms-transform: translate(0, -500%);
    transform: translate(0, -500%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -moz-transition: -moz-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
}

.ahvtm-modal-body input {
    width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    color: #888;
    outline: 0;
    font-size: 14px;
    font-weight: bold
}

.ahvtm-modal-body {
    padding-bottom: 20px;
}

@media(max-width: 767px){
    .ahvtm-modal-body{
        font-size: 14px;
        word-break: break-all;
    }
}

.ahvtm-modal-wrap {
    background: white;
    padding: 0 0 1px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    margin: 0 15px;
}

.ahvtm-modal-header {
    padding: 15px 20px;
    position: relative;
}

.ahvtm-modal-header h2 {
    font-size: 20px;
}

.ahvtm-wordsearch-app {
    max-width: 1400px;
    margin: 0 auto;
}

.ahvtm-wordsearch-row {
    max-width: 100% !important;
}

.ahvtm-words_field {
    width: 100%;
    justify-content: center;
    text-align: center
}

.ahvtm-words_field .text-center {
    display: block;
    justify-content: center;
}

.flex_container {
    display: flex;
}

.column-1-2 {
    width: 50%;
}

.padding-vertical {
    padding: 40px 0;
}

.ahvtm-closemodale:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .ahvtm-dropdown.ahvtm-wrap-drop {
        margin: 0 auto;
    }
}

.ahvtm-word-list {
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 425px) {
    .ahvtm-word-list .ahvtm-word {
        font-size: 14px;
    }
}

@media (max-width: 374px) {
    .ahvtm-ws-cell,
    .ahvtm-ws-cell div {
        width: 25px;
        height: 25px;
        font-size: 20px;
    }

}

@media screen and (min-width: 375px) and (max-width: 424px) {
    .ahvtm-ws-cell,
    .ahvtm-ws-cell div {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
}

@media screen and (min-width: 425px) and (max-width: 499px) {
    .ahvtm-ws-cell,
    .ahvtm-ws-cell div {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}

@media (min-width: 500px) {
    .ahvtm-ws-cell,
    .ahvtm-ws-cell div {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}


/* Direction */
.ahvtm-dir-right {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.ahvtm-dir-right .ahvtm-word-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0;
    height: 100%;
    justify-content: center;
    align-content: baseline;
    padding: 40px;

}

.ahvtm-dir-right .text-center.ahvtm-word-list .ahvtm-word,
.ahvtm-dir-left .text-center.ahvtm-word-list .ahvtm-word,
.ahvtm-dir-top .text-center.ahvtm-word-list .ahvtm-word{
    display: block;
}


.ahvtm-dir-left {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    flex-direction: row-reverse;
    /*justify-content: flex-end;*/
    justify-content: center;
}

.ahvtm-dir-bottom .ahvtm-word-list {

}

.ahvtm-dir-left .ahvtm-word-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0;
    height: 100%;
    justify-content: left;
    align-content: baseline;
    padding: 40px 40px 40px 0;
}

.ahvtm-dir-top {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    flex-direction: column-reverse;
    align-items: center;
}

.ahvtm-dir-top .ahvtm-word-list{
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    justify-content: left;
    align-content: baseline;
    padding: 40px 0 0;
    max-width: 600px;
}









