:root {
    --app-sidebar-width: 20%;
    --app-content-width: calc(100% - var(--app-sidebar-width));

    --slider-sidebar-width: 17%;
    --slider-width: calc(100% - var(--slider-sidebar-width) * 2);

    --slider-padding-height: .5vw;
    --slider-padding-width: 1.5vw;
}

html {
    overflow: hidden;
}

body {
    height: 100vh;
}

.header {
    position: absolute;
    top: 0;
}

.header .account-block {
    border: none;
}

section.app {
    background-color: #000000;
    height: 100%;
    padding: 80px 0 0;
    overflow: hidden;
}
section.app:fullscreen {
    padding: 0;
}

.app-body {
    position: relative;
    height: 100%;
}

/* -------------------------------------------------- */
/* ------------------- app-sidebar ------------------ */
.app-sidebar {
    position: absolute;
    border-right: solid 1px #212428;
    width: var(--app-sidebar-width);
    height: 100%;
    top: 0;
    left: 0;
}
.app-sidebar > nav {
    width: 100%;
    height: 100%;
}
.app-sidebar > nav > .app-nav-item {
    width: 100%;
    height: 50%;
    padding: 5%;
}
.app-sidebar > nav > .app-nav-item > .app-nav-title {
    font-size: .9vw;
    font-weight: 600;
    color: #fff;
    text-align: center;
}
.app-sidebar > nav > .app-nav-item > .app-nav-image > img {
    width: 100%;
}

.app-nav-image {
    position: relative;
    margin: 10px;
}
.app-nav-image span {
    position: absolute;
    width: 80%;
    top: 25px;
    left: 10%;
    height: 1px;
    background-color: #00a3ff;
}
.app-nav-image span.vertical {
    position: absolute;
    width: 1px;
    top: 5%;
    left: 25px;
    height: 90%;
    background-color: #00a3ff;
}
/* ------------------- app-sidebar ------------------ */
/* -------------------------------------------------- */

/* -------------------------------------------------- */
/* ------------------- app-header ------------------- */
.app-header {
    background-color: unset;
    position: absolute;
    display: block;
    padding: var(--slider-padding-height) var(--slider-padding-width) 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.app-header-controls {
    display: flex;
    height: 100%;
    align-items: center;
    background-color: #212428;
    width: 100%;
    border-radius: .52vw;
    padding: .9vw .6vw;
    justify-content: center;
    color: #fff;
}
.app-header-controls > div {
    height: 2.15vw;
    margin: 0 .21vw;
}
.app-header-controls > div.separator {
    border-right: solid 1px #3E4146;
}
.app-header-controls > div > button,
.app-header-controls > div > label,
.app-header-controls > div a {
    display: inline-block;
    height: 2.15vw;
    padding: 0 .425vw;
    line-height: 1.3vw;
    color: inherit;
}
.app-header-controls > div button:nth-last-child(n+2) ~ button {
    padding-left: 0;
}
.app-header-controls > div > label,
.app-header-controls > div a {
    text-align: center;
    padding: .425vw;
}
.app-header-controls > div > button > svg:first-child,
.app-header-controls > div > button > span:first-child > svg:first-child,
.app-header-controls > div label > svg:first-child ,
.app-header-controls > div a > svg:first-child {
    width: 1.3vw;
    height: 1.3vw;
    object-position: center center;
    line-height: 1.3vw;
}
.app-header-controls > div button > span:first-child{
    font-size: .9vw;
    line-height: 1.3vw;
    font-weight: 600;
    margin: 0 5px 0;
}

[data-title] {
    position: relative;
}
[data-title]::after {
    content: attr(data-title);
    position: absolute;
    display: none;
    left: 40%;
    top: 90%;
    z-index: 9999;
    background: #000000;
    color: #00a3ff;
    font-size: 11px;
    padding: 5px 10px;
    border: 1px solid #00a3ff;
    white-space: nowrap;
}
[data-title]:hover:after {
    display: block;
}

/* -------------------------------------------------- */
/* ----------------- atlas-dropdown ----------------- */

/* ----------------- atlas-dropdown ----------------- */
/* -------------------------------------------------- */

span.color {
    display: inline-block;
    width: 20px;
    min-width: 20px;
    height: 20px;
    vertical-align: bottom;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid #000;
}

label.checkbox {
    color: #fff;
}
.app-header-popup-content-item > label.checkbox {
    width: 298px;
}
.app-header-controls input[type="checkbox"] + label,
.app-header-controls input[type="checkbox"] + label + label {
    border: 1px solid #fff;
    width: 3vw;
    height: 1.75vw;
    margin: .2vw;
    padding: .225vw .425vw;
    font-size: .9vw;
    line-height: 1.3vw;
    font-weight: 600;
}
.fieldset {
    font-size: 0; /* remove whitespace between labels */
}
.fieldset > input[type=checkbox] + label {
    border-radius: .2vw 0 0 .2vw;
    margin-right: 0;
    background-color: #00a3ff;
}
.fieldset > input[type=checkbox] + label + label {
    border-radius: 0 .2vw .2vw 0;
    margin-left: 0;
}
.fieldset > input[type=checkbox]:checked + label {
    background-color: unset;
}
.fieldset > input[type=checkbox]:checked + label + label {
    background-color: #00a3ff;
}

.i_modes .atlas-dropdown-popup {
    background-color: #212428;
    border-radius: 10px;
    width: 367px;
    top: 110%;
    margin-left: -15px;
    padding: 14px 20px;
}
.atlas-dropdown-popup .app-header-popup-content.type-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 10px 0 0;
}
.atlas-dropdown-popup .app-header-popup-content.type-buttons .app-header-popup-content-item {
    margin: 0;
    padding: 0;
    border: none;
}
.atlas-dropdown-popup .app-header-popup-content.type-buttons .app-header-popup-content-item span {
    background-color: #3E4146;
    padding: 10px 28px;
    border-radius: 52px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 18px;
    font-weight: 500;
    transition: 0.2s;
}
.atlas-dropdown-popup .app-header-popup-content.type-buttons .app-header-popup-content-item.active span,
.atlas-dropdown-popup .app-header-popup-content.type-buttons .app-header-popup-content-item:hover span {
    color: #ffffff !important;
    background-color: #187ed7;
    transition: 0.2s;
}


.app-main-zoom,
.app-main-brightness,
.app-main-contrast {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-main-contrast input[type=range] ~ span,
.app-main-brightness span,
.app-main-zoom span {
    width: 30px;
    font-size: 14px;
    color: #fff;
}

.app-main-contrast input[type=range],
.app-main-brightness input[type=range],
.app-main-zoom input[type=range] {
    -webkit-appearance: none;
    width: 100%;
}

.app-main-contrast input[type=range]::-webkit-slider-thumb,
.app-main-brightness input[type=range]::-webkit-slider-thumb,
.app-main-zoom input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

.app-main-contrast input[type=range]:focus,
.app-main-brightness input[type=range]:focus,
.app-main-zoom input[type=range]:focus {
    outline: none;
}

.app-main-contrast input[type=range]::-ms-track,
.app-main-brightness input[type=range]::-ms-track,
.app-main-zoom input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.app-main-contrast input[type=range]::-webkit-slider-thumb,
.app-main-brightness input[type=range]::-webkit-slider-thumb,
.app-main-zoom input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background-color: #00a3ff;
    cursor: pointer;
    margin-top: -4px;
}

.app-main-contrast input[type=range]::-webkit-slider-runnable-track,
.app-main-brightness input[type=range]::-webkit-slider-runnable-track,
.app-main-zoom input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    background-color: #171717;
    border-radius: 6px;
}

.app-main-contrast input[type=range]:focus::-slider-runnable-track,
.app-main-contrast input[type=range]:focus::-webkit-slider-runnable-track,
.app-main-brightness input[type=range]:focus::-slider-runnable-track,
.app-main-brightness input[type=range]:focus::-webkit-slider-runnable-track,
.app-main-zoom input[type=range]:focus::-slider-runnable-track,
.app-main-zoom input[type=range]:focus::-webkit-slider-runnable-track {
    background-color: #171717;
}

.app-main-contrast input[type=range]::-moz-range-track,
.app-main-brightness input[type=range]::-moz-range-track,
.app-main-zoom input[type=range]::-moz-range-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    background: #3071a9;
    border-radius: 1.3px;
}

.app-main-contrast input[type=range]::-ms-track,
.app-main-brightness input[type=range]::-ms-track,
.app-main-zoom input[type=range]::-ms-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
}

.contrast_ico,
.brightness_ico,
.zoom_ico {
    height: 100%;
    gap: 11px;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.contrast_ico svg,
.brightness_ico svg,
.zoom_ico svg {
    display: block;
}
.contrast_ico span,
.brightness_ico span,
.zoom_ico span {
    width: 30px;
    font-size: 1vw;
    line-height: 1.2vw;
    font-weight: 500;
    color: #ffffff;
}
.contrast_ico span:before,
.brightness_ico span:before,
.zoom_ico span:before,
.app-main-brightness span:before,
.app-main-contrast span:before,
.app-main-zoom span:before {
    content: 'x';
}
/* ------------------- app-header ------------------- */
/* -------------------------------------------------- */

.app-content {
    position: absolute;
    width: var(--app-content-width);
    height: 100%;
    top: 0;
    left: var(--app-sidebar-width);
    overflow: hidden;
}
button {
    background-color: transparent;
}
.app-main {
    position: relative;
    height: 100%;
    padding: calc(var(--slider-padding-height) + 4vw) 0 0 0;
}
.app-main-title {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: calc(var(--slider-padding-height) + 4.6vw);
    text-align: center;
    color: #fff;
    font-size: .9vw;
    font-weight: 400;
    z-index: 1;
}

.app-main-controls {
    display: flex;
    position: absolute;
    top: calc(var(--slider-padding-height) + 4.6vw);
    left: var(--slider-padding-width);
    z-index: 998;
}
.app-main-switch {
    position: relative;
    display: inline-block;
    width: 1.95vw;
    height: 1.12vw;
}
.app-main-switch input {
    display: none;
}
.app-main-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #171717;
    -webkit-transition: .1s;
    transition: .1s;
    border-radius: 20px;
}
.app-main-switch-slider:before {
    position: absolute;
    content: "";
    height: .9vw;
    width: .9vw;
    left: 2px;
    bottom: 2px;
    background-color: #767676;
    -webkit-transition: .1s;
    transition: .1s;
    border-radius: 50%;
}
.app-main-switch input:checked + .slider {
    background-color: #00a3ff;
}
.app-main-switch input:focus + .slider {
    box-shadow: 0 0 1px #00a3ff;
}
.app-main-switch input:checked + .app-main-switch-slider:before {
    transform: translateX(.8vw);
    background-color: #00a3ff;
}
#atlas-tools {
    display: none;
}

.app-main-area {
    margin-left: 1rem;
    display: flex;
    height: 1.2vw;
    align-items: center;
}
.app-main-area span {
    color: #fff;
    font-size: .8vw;
    cursor: pointer;
}

/* -------------------------------------------------- */
/* ------------------ atlas-slider ------------------ */
.atlas-slider {
    display: flex;
    position: absolute;
    left: var(--slider-padding-width);
    right: var(--slider-padding-width);
    top: calc(var(--slider-padding-height) + 4vw);
    bottom: calc(var(--slider-padding-height) + 4vw);
    overflow: hidden;
}

.atlas-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    align-items: center;
    justify-content: center;
    transform: scale(1) rotate(0deg) rotateX(0deg) rotateY(0deg);
    filter: brightness(100%) contrast(100%);
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.atlas-slide.active {
    display: flex;
}

.atlas-slide.with-overlay {
    z-index: 10000;
    position: relative;
    border: 2px solid #0a58ca;
}

.atlas-slide svg {
    position: absolute;
    top: 0;
    width: var(--slider-width);
    height: 100%;
    left: var(--slider-sidebar-width);
    /*border: 2px solid #0a58ca;*/
}

.atlas-slide .text {
    position: absolute;
    height: 100%;
    width: var(--slider-sidebar-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px 0;
}

.atlas-slide .text p {
    margin-bottom: .65vw;
    padding: 0 .4vw;
    font-size: .8vw;
    line-height: 1vw;
}

.atlas-slide .text.left {
    align-items: flex-end;
    left: 0;
}

.atlas-slide .text.left p {
    text-align: right;
    border-right-width: 2px;
    border-right-style: solid;
}

.atlas-slide .text.right {
    right: 0;
}

.atlas-slide .text.right p {
    border-left-width: 2px;
    border-left-style: solid;
}
/* ------------------ atlas-slider ------------------ */
/* -------------------------------------------------- */

/* -------------------------------------------------- */
/* ------------------- contextmenu ------------------ */
ul.atlas-contextmenu {
    display: none;
    position: absolute;
    width: 270px;
    padding: 10px 27px;
    z-index: 10;
    outline: none;
    background: #ffffff;
    border-radius: 10px;
    list-style-type: none;

    flex-direction: column;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
}
ul.atlas-contextmenu li {
    padding: 0;
    width: 100%;
}
ul.atlas-contextmenu li button {
    display: flex;
    width: 100%;
    align-items: center;
    cursor: pointer;
    height: 45px;
    margin: 0;
    padding: 13px 0;
    border-bottom: solid 1px #3e4045;
}
ul.atlas-contextmenu li:last-child button {
    border: none;
}
ul.atlas-contextmenu li button svg {
    margin-right: 10px;
    fill: var(--color3);
    transition: 0.2s;
}
ul.atlas-contextmenu li button span {
    color: #212121;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s;
}
ul.atlas-contextmenu li button:hover span {
    color: #187ed7;
    transition: 0.2s;
}
ul.atlas-contextmenu li button:hover svg path {
    fill: #187ed7;
}
/* ------------------- contextmenu ------------------ */
/* -------------------------------------------------- */

/* -------------------------------------------------- */
/* ------------------- app-footer ------------------- */
.app-footer {
    position: absolute;
    display: flex;
    height: 4vw;
    bottom: var(--slider-padding-height);
    left:  var(--slider-padding-width);
    right:  var(--slider-padding-width);
    grid-area: footer;
    justify-content: space-between;
    border-top: unset;
    border-top: 1px solid #fff;
}
.app-footer-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 160px);
    overflow-x: scroll;
}
.app-footer-wrapper::-webkit-scrollbar {
    width: 3px;
    height: 5px;
}
.app-footer-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.app-footer-wrapper::-webkit-scrollbar-thumb {
    background-color: #00a3ff;
    border-radius: 6px;
}
.app-footer-slides {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    align-items: center;
    justify-content: space-between
}
.app-footer-slide {
    display: flex;
    width: 3vw;
    height: 65%;
    padding: .15vw;
    border-radius: .5vw;
    align-items: center;
    justify-content: center;
}
.app-footer-slide.active {
    border: .1vw solid #00a3ff;
}
.app-footer-slide img {
    cursor: pointer;
    height: 100%;
    max-width: 2.8vw;
    object-fit: contain;
    object-position: center;
}
.app-footer-controls {
    width: 10vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.app-footer-controls button {
    margin: 0 .25vw;
}
.app-footer-controls button img {
    width: 1vw;
}
.app-footer-controls span {
    width: .125vw;
    height: 1.5vw;
    border-radius: 10px;
    margin-top: -.125vw;
    background-color: #00a3ff;
}
p.app-footer-score {
    width: 5vw;
    margin: 0;
    color: #00a3ff;
    font-size: 1vw;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
/* ------------------- app-footer ------------------- */
/* -------------------------------------------------- */

.portrait-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.portrait-overlay > div {
    background: #212428;
    border-radius: .52vw;
    padding: .9vw 2.5vw;
    font-size: 1.52vw;
    color: #fff;
}
@media (orientation: portrait) {
    .atlas-overlay.portrait-overlay {
        display: flex;
    }
}

/*@media (max-width: 1540px) {
    .optional {
        display: none;
    }
}

@media handheld {
    .logo-block:after {
        content: 'handheld';
    }
}
@media screen, speech {
    .logo-block:after {
        content: 'screen';
    }
}

@media (orientation: portrait) {
    .menu-block:after {
        content: 'portrait';
    }
}
@media (orientation: landscape) {
    .menu-block:after {
        content: 'landscape';
    }
}/**/
