/* START: Список игр */
.gameFilter {
    /* Бокс со списком фильтров */
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    position: relative;
    margin: 0px 0px 17.5px 0px;
}

.gameSearch {
    /* Элемент поиска */
    display: block;
    width: 100%;
    line-height: 1.42857143;
    font-family: inherit;
    margin: 0px;
    font: inherit;
    color: rgba(255, 255, 255, 0.6);
    height: 46px;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);

    -webkit-transition: .3s all ease-out;
    transition: .3s all ease-out;

    padding: 0px 10px 0px 30px;
    background: url(/img/games/site/search.svg) no-repeat top 50% left 5px;
    background-size: 20px;

}

.gameSearch:active,
.gameSearch:focus {
    /* Элемент поиска */
    outline: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);

}

.gameSearch::-webkit-search-cancel-button,
.gameSearch::-webkit-search-results-button {
    /* Элемент поиска (удалить все) */
    -webkit-appearance: none;
    width: 1em;
    height: 1em;
    cursor: pointer;
    background-color: rgba(189, 56, 50, 1);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.gameSearchResult {
    /* Результаты поиска */
    position: absolute;
    z-index: 2;
    background: rgba(22, 22, 22, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    min-width: 280px;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    margin: 5px 0px 0px 0px;
    padding: 0;
    transition: 0.4s;
}

.gameSearchResult li {
    /* Результаты поиска */
    list-style: none;
    margin: 0px;
    cursor: pointer;
    transition: 0.3s;
}

.gameSearchResult li:not(:last-child) {
    /* Результаты поиска */
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.gameSearchResult li:hover {
    /* Результаты поиска */
    background: rgba(132, 1, 18, 0.3);
    color: rgba(255, 255, 255, 0.65);
}

.gameSearchResult li a,
.gameSearchResult li a:visited {
    /* Результаты поиска */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    width: 100%;
    height: 100%;
    padding: 5px 10px;
}

.gamesBox {
    /* Бокс со списком игр */
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;

}

.gameBox {
    /* Бокс с игрой */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 19%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px double #702210;
    box-shadow: 0px -4px 10px 1px rgb(217, 11, 0, 0.5);
    min-width: 200px;
    min-height: 280px;
    max-height: 300px;
    max-width: 315px;
    overflow: hidden;
    border-radius: 5px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.2;
    transition: 0.4s;
}

@media screen and (max-width: 471px) {
    .gameBox {
        max-width: 400px;
    }
}

.gameBox:hover .gameTop {
    /* Бокс с игрой при наведении*/
    /* transform: scale(1.10, 1.10); */
    box-shadow: 0px -4px 10px 1px rgb(217, 11, 0, 0.5);
}

.gameBox:hover .gameTopActive {
    /* Бокс с игрой при наведении*/
    opacity: 1;
}

.gameBox:hover {
    /* Бокс с игрой при наведении*/
    box-shadow: 0px 0px 10px 4px rgb(217, 11, 0, 0.7);
}

.gameTop {
    /* Верхняя часть */
    flex-grow: 100;
    background: url(/img/games/preview/none.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    /* background-position: top center; */
    /* background-size: 100% 100%; */
    transition: 0.4s;
    position: relative;
}

.gameTopActive {
    /* Верхняя часть при активации */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    transition: 0.4s;
    position: absolute;
}
@media screen and (max-width: 996px) {
    .gameTopActive {
        transition: none;
    }
}
.gameMiddle {
    /* Центральная часть */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    height: 40px;
    flex-grow: 1;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.65);
}

.gameBottom {
    /* Нижняя часть */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px double rgba(255, 255, 255, 0.20);
    flex-grow: 1;
    height: 40px;
}
.gameInfoBox {
    display: flex; 
    justify-content: space-between; 
    padding: 0.5rem 0.25rem;
    flex-wrap: wrap;
}
.gameInfo {
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
    cursor: default;
    gap: 5px;
}
.gameInfo > div {
    display: flex;
    align-items: center;
    font-size: 13px;
}
.gameInfo svg {
    width: 16px;
    height: 16px;
    margin-right: 3px;
}
.gameInfo svg.svgSize14 {
    width: 14px;
    height: 14px;
}

.gameInfo > div:not(:first-child) {
    padding-left: 5px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}




.gameBtn {
    border-radius: 3px;
    box-sizing: border-box;
    width: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    padding: 0;
    height: 40px;
    cursor: pointer;
    border: 2px solid rgba(132, 1, 18, 0.4);
    background: rgba(173, 46, 46, 0.8);
    transition: .3s all ease-in;
}

.gameBtn a,
.gameBtn a:visited {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 100%;

}

.gameBtn:hover {
    border: 2px solid rgba(132, 1, 18, 0.3);
    background: rgb(189, 34, 34, 0.99);
}

.gamesSortBox {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.gamesSortFilter {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.gameSort {
    padding: 5px 15px; 
    border-radius: 3px;
    cursor: pointer;
    background: url("/img/games/site/sortDefaultWhite.svg?8") 0px no-repeat rgba(106, 4, 0, 0.8);
    /*background: url("data:image/svg+xml,%3Csvg fill='%239b6765' width='15px' height='15px' viewBox='-9 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.281 13.063l5.969-7.438c0.531-0.688 1.406-0.688 1.938 0l5.969 7.438c0.531 0.688 0.2811.25-0.625 1.25h-12.625c-0.906 0-1.156-0.563-0.625-1.25zM14.156 18.938l-5.969 7.438c-0.531 0.688-1.406 0.688-1.938 0l-5.969-7.438c-0.531-0.688-0.281-1.25 0.625-1.25h12.625c0.906 0 1.156 0.563 0.625 1.25z'%3E%3C/path%3E%3C/svg%3E") 0px no-repeat rgba(189, 56, 50, 0.6);
   */
   background-size: 14px;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* стандартное значение */
    position: relative;
}
.gameSort[js-order="1"],
.gameSort[js-order="-1"] {
    background: rgba(223, 10, 6, 0.6);
    color:rgba(255, 255, 255, 0.6);
}

.gameSort[js-order="1"]::after,
.gameSort[js-order="-1"]::after {
    top: 50%;
    left: 2px;
    position: absolute;
    font-size: 11px;
    transform: translateY(-50%);
}
.gameSort[js-order="-1"]::after {
	content: "▼"
}

.gameSort[js-order="1"]::after {
	content: "▲"
}

.gameSort:hover {
    background-color: rgba(189, 56, 50, 0.8); 
    color:rgba(255, 255, 255, 0.8);
}
/*
.gameSort.up {
    background-image: url("/img/games/site/sortUp.svg?1") 0px no-repeat;
}
.gameSort.down {
    background-image: url("/img/games/site/sortDefault.svg?3") 0px no-repeat;
}
*/
@media screen and (max-width: 996px) {
    .gameSortText {
        display: none;
    }
}

.hide {
    display: none !important;
}
/* STOP: Список игр */


/* START: Кнопка вверх */
#button-up {
    display: none;
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 2px;
    background: url(/img/wiki/arrowUpActive.png) center center no-repeat, #840112;
    background-size: 20px;
    cursor: pointer;
    z-index: 100;
    -webkit-transition: .3s all;
    transition: .3s all;
}

#button-up:hover {
    filter: brightness(1.1) saturate(1.1);
}

/* STOP: Кнопка вверх */



/* START: Всплывающая подсказка */
#tooltip{ /* Всплывающая подсказка */
    background: rgba(32, 32, 32, 1);
    color:rgba(255,255,255, 0.65);
    border: 2px solid rgba(64, 64, 64, 1);
    text-align:center;
    position:absolute;
    max-width:500px;
    z-index:9999;
    display:none;
    border-radius:3px;
    box-shadow:4px 4px 8px rgba(0, 0, 0, 0.3);
    padding:5px 8px;
    font-size:12px;
    text-shadow:none;
    margin-top:0px;
    margin-left:0px;
    /*overflow: hidden;*/
    word-break: break-word;
}
#tooltip.left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translate(-50%, -50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid rgba(64, 64, 64, 1);
}
#tooltip.right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translate(-50%, -50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(64, 64, 64, 1);
}
#tooltip.top::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(64, 64, 64, 1);
}
#tooltip.bottom::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(64, 64, 64, 1);
}
/* STOP: Всплывающая подсказка */