
* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    max-width: 770px;
    min-height: 650px;
    background-color: #0a0a0a;
    background-image: url('https://rodina-testers.ru/api/cdn/background.jpg');
    background-repeat: no-repeat;
    position: relative;
    font-family: 'Inter', sans-serif;
    user-select: none;
    color: white;
    overflow: hidden;
}

.frame {
    position: absolute;
    height: 25px;
    width: 100%;
    top: 0;
    -webkit-app-region: drag;
    left: 0;
}

body:before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, black 20%, transparent 60%, black 95%);
    opacity: 0.6;
    z-index: 1;
}

.page-wrapper {
    position: relative;
    padding: 26px;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding-bottom: 25px;
    z-index: 1;
}

.header__wrapper {
    display: flex;
    align-items: center;
    z-index: 1;
}

.header__logo {
    margin: 6px 15px 7px 0;
}

.header__nickname {
    padding: 15px 25px;
    border: none;
    background-color: #1C1E26;
    border-radius: 13px;
    color: white;
    outline: none;
    font-size: 15px;
}

.window-controls {
    display: flex;
    gap: 10px;
    z-index: 1;
    align-self: start;
}

.window-controls__btn {
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
}

.window-controls__btn:hover {
    cursor: pointer;
}


.btn-settings {
    background-image: url('https://rodina-testers.ru/api/cdn/btn-settings.svg');
}

.btn-minimize {
    background-image: url('https://rodina-testers.ru/api/cdn/btn-minimize.svg');
    background-position: center bottom;
    align-self: flex-end;
}

.btn-close {
    background-image: url('https://rodina-testers.ru/api/cdn/btn-close.svg');
}

.main {
    color: white;
    display: flex;
    margin-bottom: 246px;
}

.information {
    display: flex;
    z-index: 1;
    flex-direction: column;
}

.information__header {
    font-size: 40px;
    letter-spacing: -1px;
    margin: 0 0 50px;
    text-shadow: 0 0 25px black;
}

.card__text {
    text-transform: uppercase;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    letter-spacing: -1.3px;
    z-index: 1;
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 224px;
    height: 134px;
    background-color: #1C1E26;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    transition: background-color .2s ease-in-out;
}

.card__img {
    position: absolute;
}

.rey {
    left: 0;
    bottom: 0;
    transform: translate(-50px, 0);
    transition: transform .2s;
    z-index: 1;
}

.desolate {
    left: 0;
    bottom: 0;
    transform: translate(0, -150px);
    transition: transform .2s;
}

.triss {
    right: 0;
    bottom: 0;
    transform: translate(50px, 0);
    transition: transform .2s;
    z-index: 1;
}

.add-vip {
    right: 0;
    bottom: 0;
    transform: translate(0, 50px);
    transition: transform .2s ease-in-out;
}

.card:hover {
    background-color: rgba(196, 32, 106, 0.7);
    cursor: pointer;
}

.card:hover .add-vip {
    transform: translate(-25px, 0)
}

.card:hover .triss {
    transform: translate(0, 0)
}

.card:hover .rey {
    transform: translate(0, 0)
}

.card:hover .desolate {
    transform: translate(0, 0)
}

.footer {
    display: flex;
    z-index: 1;
    justify-content: space-between;
}

.option-element {
    z-index: 5;
    height: 49px;
    width: 240px;
    background-color: #1C1E26;
    border-radius: 13px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

.option-element_pos-left {
    justify-content: flex-start;
}


.start-game-btn {
    text-transform: uppercase;
    font-size: 24px;
    border: none;
}

.start-game-btn:disabled {
    background-color: #4c4c4c;
}

.start-game-btn:hover, .select-server:hover {
    cursor: pointer;
}

.select-server {
    display: flex;
    justify-content: space-between;
    padding: 0 10px 0;
    position: relative;
}

.selected-item {
    display: flex;
    padding: 0 10px 0;
    font-size: 15px;
    line-height: 1.2;
    width: 239px;
    height: 100%;
    align-items: center;
    border-radius: 13px;
}

.select-bg {
    background-color: #0A0B0D;
    width: 199px;
    border-radius: 13px;

}

.selected-item__icon {
    height: 19px;
    width: 19px;
}

.selected-item__icon-list {
    margin-left: auto;
}

.selected-item:hover {
    cursor: pointer;
}

.items-list-wrapper {
    padding: 10px;
    border-radius: 15px;
    background-color: #0A0B0D;
    position: absolute;
    top: -155px;
}

.servers-list-wrapper {
    width: 239px;
    opacity: 1;
    visibility: visible;
    transition: all .2s ease;
}

.backgrounds-list-wrapper {
    width: 199px;
    top: 49px;
    visibility: visible;
    opacity: 1;
    transition: all .2s ease;
}

.items-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 135px;
    background-color: #0A0B0D;
    overflow-y: scroll;
}

.items-list__element {
    display: flex;
    gap: 10px;
    min-height: 40px;
    font-size: 15px;
    align-items: center;
}

.items-list__element-icon {
    height: 19px;
    width: 19px;
}

.items-list__element:hover {
    color: red;
    cursor: pointer;
}

.selected-item__text {
    font-size: 15px;
    margin-left: 10px;
}

.servers-list {
    padding: 0;
    list-style: none;
    height: 135px;
    overflow-y: scroll;
    margin: 0;
}

.items-list::-webkit-scrollbar {
    width: 8px;
}

.items-list::-webkit-scrollbar-thumb {
    background-color: #393B43;
    border-radius: 13px;
}

.items-list::-webkit-scrollbar-track {
    background-color: #0A0B0D;
}


.option-element_color_red {
    background-color: #E11315;
    transition: background-color .2s;
}

.option-element_color_red:enabled:hover {
    background-color: #ff4345;
}

.servers-list__element {
    transition: color .2s ease-in-out;
    padding: 10px 0;
    display: flex;
    gap: 10px;
}


.servers-list__element:not(:last-child) {
    margin-bottom: 5px;
}

.servers-list__element:hover {
    color: red;
    cursor: pointer;
}


.nav-menu {
    position: absolute;
    width: 296px;
    right: 0;
    top: 0;
    background-color: #1C1E26;
    min-height: 100%;
    z-index: 10;
    padding: 39px 40px 20px 31px;
    transform: translateX(0);
    transition: all .3s ease;
    will-change: opacity, transform;
    opacity: 1;
}

.nav-menu--hidden {
    opacity: 0.01;
    transform: translateX(296px);
}

.nav-menu__header-wrapper {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-bottom: 25px;
    align-items: center;
}

.nav-menu__header {
    font-size: 18px;
    font-weight: bold;
    line-height: 0.8;
}

.nav-menu__back-icon {
    margin-left: auto;
    height: 15px;
    width: 15px;

}

.nav-menu__back-icon:hover {
    cursor: pointer;

}

.option {
    margin-bottom: 15px;
    z-index: 1;
}

.option__text {
    color: #6A6F78;
    font-size: 16px;
    margin-left: 4px;
}

.input {
    background-color: #0A0B0D;
    border-radius: 13px;
    font-size: 14px;
    font-weight: bold;
    padding: 9px 12px 9px 21px;
    width: 199px;
    justify-content: space-between;
    margin-top: 10px;
    display: flex;
    max-height: 34px;
    z-index: 1;
}

.input:hover {
    cursor: pointer;
}

.input-file {
    display: flex;
}

.input-file__text {
    overflow: hidden;
    max-width: 140px;
}

.input__pass {
    background-color: transparent;
    border: none;
    max-width: 140px;
    color: white;
    outline: none;
}

.params__text {
    font-size: 14px;
    line-height: 1.2;
    color: #6A6F78;
    margin-bottom: 19px;
}

.params__item-text {
    font-size: 16px;
    font-weight: bold;
}


.custom-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}

.params__checkbox {
    appearance: none;
    position: relative;
    width: 39px;
    height: 17px;
    background-color: #6F747D;
    border-radius: 13px;
    margin: 0;
}

.params__checkbox::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    background-color: white;
    border-radius: 50px;
    top: 3px;
    left: 3px;
    transition: all .2s ease-in-out;
}

.params__checkbox:checked::after {
    content: '';
    transform: translateX(22px);
}

.params__checkbox:checked {
    background-color: #67B04F;
}

.params {
    margin-bottom: 130px;
}

.custom-checkbox:not(:last-child) {
    margin-bottom: 25px;
}

.load-screen {
    position: absolute;
    background-color: black;
    inset: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: all .5s ease;
}

.load-screen__animation {
    height: 70px;
    width: 70px;
    background-color: transparent;
    border-radius: 50%;
    border: 5px solid #282828;
    border-top: 5px solid white;
    animation: loading 1.5s linear infinite;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error-popup {
    position: absolute;
    inset: 0;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s ease;
    opacity: 1;
    visibility: visible;
}

.error-popup__container {
    height: 300px;
    width: 400px;
    background-color: #1C1E26;
    border-radius: 13px;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.error-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    height: 10px;
}

.error-popup__close:hover {
    cursor: pointer;
}

.error-popup__image {
    width: 35px;
    height: 35px;
    margin-top: 40px;
    margin-bottom: 15px;
}

.error-popup__header {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-popup__text {
    text-align: center;
    padding: 0 50px 0;
}

.error-popup__button {
    border: none;
    background-color: #E11315;
    color: white;
    border-radius: 13px;
    padding: 5px 20px;
    margin-top: 20px;
}

.error-popup__button:hover {
    cursor: pointer;
}

.nav-menu__feedback-text {
    text-decoration: underline;
    color: #6A6F78;
    transition: color .2s ease-in-out;
}

.nav-menu__feedback-text:hover {
    cursor: pointer;
    color: rgba(106, 111, 120, 0.83);
}

.nav-manu__footer {
    font-size: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.video-background {
    position: absolute;
    inset: 0;
    background-color: black;
    z-index: -1;
    visibility: visible;
    opacity: 1;
}

.video-background__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden {
    visibility: hidden;
    opacity: 0;
}