body.dark-theme .game-profile .game-profile-card {
    background: var(--bg-main-color);
}

body.dark-theme .game-profile .page-main {
    padding: 0 10px 10px;
}

.game-profile__add-url {
    background: var(--bg-main-color);
    padding: 15px;
    border-radius: 5px;
}

.game-profile__add-url .add-url__icon svg {
    width: 35px;
    height: 35px;
}

.game-profile__add-url .add-url__title {
    font-weight: 700;
}

.game-profile__add-url .add-url__subtitle {
    color: #a1a1a1;
    font-size: 14px;
}

.game-profile__add-url .uk-input__add-url {
    height: 40px;
}

.dark-theme .game-profile__main-container .function-item {
    color: #fff;
}

.game-profile__main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.game-profile__main-container .iframe-functions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.game-profile__main-container .function-item {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .3s;
}

.game-profile__main-container .function-item svg {
    max-width: 17px;
    min-width: 17px;
    width: 100%;
    max-height: 17px;
    min-height: 17px;
    height: 100%;
}

.game-profile__main-container .function-item:hover {
    cursor: pointer;
    color: var(--main-green-color);
}

.game-profile__main-container .like.is-active {
    color: #47e926;
}

.game-profile__main-container .dislike.is-active {
    color: #f00000;
}

.game-profile__main-container .favourites.is-active {
    color: var(--main-green-color);
}

.game-profile__main-container .function-item__icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-profile__right-sidebar {
    width: 100%;
    /* max-height: calc(100vh + 38px);
    overflow: hidden; */
}

.game-profile__right-sidebar-items {
    width: 100%;
    display: grid;
    -webkit-box-flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    box-sizing: border-box;
    content-visibility: visible;
    padding: 0;
    -webkit-column-gap: 5px;
    gap: 5px;
    margin: 0;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    overflow-y: auto;
    height: 100%;
}

.game-profile__right-sidebar-items {
    scrollbar-width: thin !important;
}

.game-profile__right-sidebar a {
    display: block;
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.game-profile__right-sidebar .game-card {
    height: 0;
    margin-inline-start: 1px;
    margin-top: 1px;
    width: calc(100% - 1px);
    padding-top: calc(var(--game-thumb-aspect-ratio) * (100% - var(--base-unit) * .5));
    position: relative;
    border-radius: calc(var(--base-unit) * 1 + 2px);
    border: 2px solid transparent;
    box-sizing: border-box;
    display: block;
    contain: layout;
    z-index: 0;
    background-color: var(--bg-main-color);
    background-clip: padding-box;
    transition: border-color .3s;
}

.game-profile__right-sidebar .game-card:hover {
    cursor: pointer;
    border-color: var(--main-green-color);
}

.game-profile__right-sidebar .game-card + .game-card {
    margin: 0;
}

.game-profile__right-sidebar .game-card .game-card__box {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.container-frame-wrapper {
    display: flex;
    flex-direction: column;
}

.container-iframe {
    height: auto;
    /*max-height: calc(100vh - var(--header-height) - 45px - 64px);*/
    width: 100%;
}

.container-iframe__mobile-image {
    position: relative;
}

.container-iframe__mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container-iframe__mobile-image .btn-mobile__fullscreen {
    z-index: 1;
    position: absolute;
    border-radius: 10px;
    /* background: #fff;
    bottom: 10px; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    display: flex;
    align-items: center;
    background-color: var(--main-green-color);
    overflow: hidden;
}

.container-iframe__mobile-image .btn-mobile__fullscreen svg {
    width: 25px;
    height: 25px;
    margin-inline-start: 10px;
    fill: var(--main-peachy-color);
}

._full-max-h {
    max-height: 100% !important;
}

._full-max-h-with-header {
    max-height: calc(100vh - 60px);
}

._iframe-full-h {
    position: relative !important;
    height: calc(100vh - 60px) !important;
}

._full-h-percent {
    height: 100% !important;
}

._full-h-vh {
    height: calc(100vh - var(--header-height)) !important;
}

.container-iframe iframe {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
}

.container-iframe__level-1 {
    max-height: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    /*margin: auto;*/
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.container-iframe__level-2 {
    width: 100%;
    height: 100%;
}

.container-iframe__level-3 {
    width: 100%;
    height: 100%;
    position: relative;
}

/* @media (min-width: 1600px) {
    .container-iframe {
        max-height: calc(100vh - var(--header-height) - 150px - 40px);
    }
} */

.game-profile__main-container-bottom {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
}

.game-profile__main-container-bottom .container-description {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.game-profile__main-container-bottom .container-sidebar {
    width: 100%;
    height: 100%;
}

.iframe-advertising {
    max-width: 728px;
    min-height: 90px;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main-color);
}

/*.game-profile__right-sidebar-items .game-card__media {*/
/*    height: 120px;*/
/*}*/

.game-profile__right-sidebar .game-card__media {
    max-height: unset;
}

.page-wrapper .page-main {
    transition: width .3s;
}

.page-wrapper .page-main.page-main__full-screen {
    width: 100%;
}

.uk-modal__install-game .uk-modal-title {
    font-size: 18px;
}

.install-game__buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.install-game__buttons .btn {
    max-width: 100px;
    width: 100%;
    padding: 5px 0;
}

.install-game__buttons-cancel {
    margin-inline-end: 20px;
    border-color: #323446;
    color: #6c757d;
    transition: background-color .3s;
}

.install-game__buttons-cancel:hover,
.install-game__buttons-cancel:active {
    background-color: #323446 !important;
    color: #6c757d !important;
}

.install-game__buttons-install {
    background-color: var(--main-green-color);
    color: #ffffff;
    transition: background-color .3s, border-color .3s;
}

.install-game__buttons-install:hover,
.install-game__buttons-install:active {
    color: #ffffff !important;
    background-color: transparent !important;
    border-color: var(--main-green-color) !important;
}

.modal-tooltip {
    position: absolute;
    top: var(--header-height);
    border-radius: var(--base-unit);
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: var(--main-green-color);
    /* background: linear-gradient(150deg, rgba(23, 217, 231, 1) 40%, rgba(12, 24, 38, 1) 80%); */
    z-index: 9;
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
}

.modal-tooltip::before {
    content: '';
    position: absolute;
    top: -20px;
    /*left: 50%;*/
    left: var(--left-modal-tooltip);
    margin-inline-start: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent var(--main-green-color) transparent;
}

.modal-tooltip.is-show {
    opacity: 1;
    visibility: visible;
}

.modal-tooltip__description {
    display: flex;
}

.modal-tooltip__description img {
    max-width: 50px;
    max-height: 50px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.modal-tooltip__text {
    color: #353535;
    font-size: 16px;
    margin-inline-start: 15px;
}

.modal-tooltip__button {
    width: 100%;
    background-color: var(--main-peachy-color);
    color: #ffffff;
    transition: background-color .3s;
    margin-top: 15px;
    font-size: 16px;
    line-height: 1;
}

.modal-tooltip__button:hover {
    background-color: var(--main-peachy-color-hover);
    /*background-color: #0C1826;*/
    /*border-color: var(--main-green-color);*/
    /*border-color: #0C1826;*/
    /*border-width: 1px;*/
    /*border-style: solid;*/
    /*border-image: linear-gradient(135deg,rgba(12, 24, 38, 1) 50%, rgba(23, 217, 231, 1) 70%) 1;*/
    /*border-radius: var(--bs-btn-border-radius);*/
    /*border: 5px solid #0000;*/
    /*!*border-radius: 25px;*!*/
    /*background: linear-gradient(#FF4E50,#40C0CB) border-box;*/
    /*background-clip: border-area; !* The new added value *!*/
}

.modal-tooltip__close {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-tooltip__close svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-main-color);
    transition: fill .3s;
}

.modal-tooltip__close:hover svg {
    fill: #ffffff;
}

@media (min-width: 590px) {
    .game-profile__right-sidebar-items {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 959px) {
    body.dark-theme .game-profile .game-profile-card h1 {
        margin: 10px 0;
    }
}

@media (min-width: 576px) {
    .btn-mobile__fullscreen {
        --bs-btn-padding-y: 0.5rem;
        --bs-btn-padding-x: 1rem;
        --bs-btn-font-size: 1.25rem;
        --bs-btn-border-radius: var(--bs-border-radius-lg);
    }
}

.btn-play__pulse:before,
.btn-play__pulse:after {
    content: '';
    position: absolute;
    top: calc(50% - 22px);
    left: calc(50% - 22px);
    background: hsla(0, 0%, 100%, .3);
    border-radius: 100px;
    opacity: 0;
    width: 44px;
    height: 44px;
    z-index: 100;
}

.btn-play__pulse:before {
    transform: scale(1);
    animation: pulseblob 2s linear infinite;
}

.btn-play__pulse:after {
    animation: pulseblob 2.5s linear 2s infinite;
}

@keyframes pulseblob {
    0% {
        transform: scale(.2);
        opacity: 0;
    }

    33% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media only screen and (min-width: 960px) {
    .game-profile__main-container {
        max-width: calc(100% - 336px);
    }

    .container-iframe {
        padding-inline-end: 30px;
    }

    /* .container-iframe__level-1 {
        max-width: 95%;
    } */

    .game-profile__main-container .function-item svg {
        max-width: 22px;
        min-width: 22px;
        width: 100%;
        max-height: 22px;
        min-height: 22px;
        height: 100%;
    }

    .game-profile__right-sidebar {
        max-width: 336px;
    }

    .game-profile__right-sidebar-items {
        grid-template-columns: repeat(2, 1fr);
    }

    /*.game-profile__right-sidebar .game-card__media {*/
    /*    height: 150px;*/
    /*}*/

    .game-profile__right-sidebar .game-card__data {
        padding: 5px 0;
    }

    .game-profile__main-container-bottom {
        margin-top: 30px;
        padding-inline-end: 30px;
        gap: 10px;
    }
}

@media only screen and (min-width: 1200px) {
    .game-profile__main-container-bottom {
        flex-direction: row;
    }

    .game-profile__main-container-bottom .container-description {
        max-width: calc(100% - 300px);
    }

    .game-profile__main-container-bottom .container-sidebar {
        max-width: 300px;
    }

    .dark-theme .game-profile__main-container .iframe-functions {
        justify-content: flex-end;
    }

    /*.game-profile__right-sidebar .game-card__media {*/
    /*    height: 95px;*/
    /*}*/
}

.game-profile__not-for-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0 .5rem;
}

.not-for-mobile__text {
    font-size: .8rem;
}

.uk-button__play-other-game {
    margin-top: .5rem;
    border-radius: 1.5rem;
}

/* Стилі для альбомного */
@media (orientation: landscape) {
    .page-landscape__full-screen .page-wrapper .page-content {
        padding: 0 0 0 var(--header-height);
    }

    .page-landscape__full-screen .page-wrapper .page-main {
        height: 100%;
    }

    /* .page-header {
        height: 100vh;
    }

    .page-header__inner {
        height: 100vh;
        width: var(--header-height);
    } */

    .page-landscape__full-screen .page-header {
        width: 100vh;
        transform: rotate(-90deg);
        position: fixed;
        left: var(--header-height);
        transform-origin: bottom left;
        bottom: 0;
        top: unset;
        z-index: 5;
    }

    .page-landscape__full-screen ._iframe-full-h {
        height: 100% !important;
    }

    ._full-h-vh {
        height: 100vh !important;
    }

    .page-landscape__full-screen .page-header__inner,
    .page-landscape__full-screen .page-header__sidebar,
    .page-landscape__full-screen .page-header__content,
    .page-landscape__full-screen .page-header__content-vote,
    .page-landscape__full-screen .page-header__action .uk-subnav__profile {
        flex-direction: row-reverse;
    }

    .page-landscape__full-screen .page-header__menu-btn,
    .page-landscape__full-screen .page-header__logo,
    .page-landscape__full-screen .page-header__content-vote .function-item__vote,
    .page-landscape__full-screen .page-header__action .uk-subnav__profile .uk-subnav__profile__full-screen,
    .page-landscape__full-screen .page-header__action .uk-subnav__profile .uk-subnav__profile__share,
    .page-landscape__full-screen .page-header__action .uk-subnav__profile .uk-subnav__profile__download,
    .page-landscape__full-screen .uk-subnav__profile-logged-in,
    .page-landscape__full-screen .uk-subnav__profile-favourites,
    .page-landscape__full-screen .uk-subnav__profile-report-error {
        transform: rotate(90deg);
    }

    .page-landscape__full-screen .page-header__content {
        margin-inline-end: 10px;
    }

    .page-landscape__full-screen .page-header__menu-btn {
        margin: 0 0 0 10px;
    }

    .page-landscape__full-screen .page-header__sidebar,
    .page-landscape__full-screen .page-header__action {
        margin: 0;
    }

    .page-landscape__full-screen .modal-tooltip {
        bottom: 0;
        top: auto;
        left: 40px;
        right: unset !important;
    }
    .page-landscape__full-screen .modal-tooltip::before {
        left: 0;
        margin-inline-start: 0;
        top: unset;
        bottom: 15px;
        transform: rotate(-90deg);
        transform-origin: bottom left;
    }
    .page-landscape__full-screen .sidebar {
        padding: 20px 20px 20px 0;
        top: 0;
        height: 100%;
    }
    .page-landscape__full-screen .sidebar.is-show {
        left: var(--header-height);
    }
}
