/**
 * CMSXL and Application User Interface Soft Touch Buttons.
 * Copyright (c) 2023 Anthony Albit. All rights reserved.
 *
 * For more information, please contact:
 * Email: anthony.albit@wayovermedia.com
 * Website: https://cmsxl.com
 */

/* Core CSS */
/*•••••••••••••••••••••••••••••••••••••••••••••••••••••••*/

@media (max-width: 576px) {
    @-ms-viewport {
        /*width: 440px;*/
    }
}
@media (max-width: 1600px) {
}
@media (max-width: 1399px) {
}
@media (max-width: 1199px) {
}
@media (max-width: 991px) {
}
@media (max-width: 767px) {
}
@media (max-width: 576px) {
}

:root {
    /* Default Template Variables */
    --accent-color: #bebdb5;
    --accent-color-hover: #9d9d97;

    --background-color: #f0eee4;

    --header-background-color: #2b2b2b;
    --header-menu-bg: #f5f5f5;

    --footer-border-color: #e5e5e5;
    --footer-background-color: #ffffff;

    --footer-benefits-color: #757575;
    --footer-benefits-color-hover: #444444;

    --holder-padding: 50px;
    --site-max-width: 1190px;

    --bg-account-box: #ffffff;
    --bg-account-social: #f0f0f0;
    --bg-account-social-h: #f0eee4;

    --selection-background-color: var(--accent-color);

    /* Text Vars */
    --text-margin: 15px;
    --text-line-height: 1.3;
    --text-family: 'Roboto Condensed';
    --text-size: 18px;
    --text-color: #333333;
    --text-background-color: #ffffff;

    --content-heading-padding: 50px;
    --content-heading-bg: transperent;
    --content-heading-bg: #a0a000;

    --link-color: #333333;
    --link-color-hover: #757575;

    --blockquote-margin: 50px;
    --header-size: 24px;

    /* Input Vars */
    --input-radius: 5px;
    /*--input-radius: 0;*/
    --input-height: 24px;
    --input-size: 16px;
    --input-placeholder-color: #9d9d97;

    /* Floating Menu Vars */
    --site-menu-height: 120px;
    --site-menu-padding: 15px;

    /* Header Vars */
    --header-menu-height: calc(var(--site-menu-height) - (var(--site-menu-padding) * 2));

    --header-scroller-height: 510px;
    --header-scroller-min-height: calc(var(--header-scroller-height) - var(--header-menu-height));
    --header-scroller-max-height: calc(var(--header-scroller-height) + var(--header-menu-height));

    /* Footer Vars */
    --social-background-color: var(--background-color);

    --window-inner-height: auto;
}
@media (max-width: 768px) {
    :root {
        --holder-padding: 30px;
        --header-scroller-height: 430px;
    }
}
:root {
    --anti-padding: calc(var(--holder-padding) * -1);
}
*:focus {
    outline: none !important;
}

html, body {
    /*overflow-x: hidden;*/
}

body {
    position: relative;
    /*min-width: 440px;*/
    line-height: var(--text-line-height);
    font-family: var(--text-family), Verdana, Arial, Helvetica, sans-serif;
    font-size: 0;
    font-weight: 300;
    font-feature-settings: 'lnum' 1;
    color: var(--text-color);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: var(--background-color);
    overflow-y: scroll;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    -webkit-text-size-adjust: none;
}
.overover {
    display: none;
    position: fixed !important;
    z-index: 6;
    top: 0;
    right: var(--app-panel-width);
    bottom: 0;
    left: 0;
    background-color: #00000080;
}
@media (max-width: 991px) {
    .overover {
        right: 0;
    }
}
.overover.off {
    right: 0;
}
.overover .spinner-holder {
    background-color: transparent;
}

.app-content div,
.app-content article,
.app-content aside,
.app-content footer,
.app-content header,
.app-content section {
    position: relative;
}
div, header, footer, article, section {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    box-sizing: border-box;
}
img, video {
    max-width: 100%;
}
figure {
    display: inline-block;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    line-height: 0;
    font-size: 0;
}
figure svg {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
}
hr {
    margin: 30px auto;
    max-width: var(--site-max-width);
    height: 2px;
    background-color: var(--text-color);
    border: 0;
}
h1, h2, h3, h4, h5, h6 {
    margin: 40px 0 20px 0;
    line-height: 30px;
    line-height: calc(var(--text-size) * 1.9);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}
h1 {
    font-size: calc(var(--text-size) * 2);
}
h2 {
    font-size: calc(var(--text-size) * 1.9);
}
h3 {
    font-size: calc(var(--text-size) * 1.8);
}
h4 {
    font-size: calc(var(--text-size) * 1.7);
}
h5 {
    font-size: calc(var(--text-size) * 1.6);
}
h6 {
    font-size: calc(var(--text-size) * 1.5);
}
sub {
    text-transform: lowercase;
}
p {
    margin-bottom: var(--text-margin);
    font-size: var(--text-size);
}
p:last-child {
    margin-bottom: 0 !important;
}
b, strong {
    font-weight: 600 !important;
}
i, em {
    font-style: oblique !important;
}
blockquote {
    position: relative;
    margin: 50px 0;
    margin-right: calc(var(--blockquote-margin) + 80px);
    margin-left: 80px;
    padding-left: 50px;
}
@media (max-width: 991px) {
    blockquote {
        margin-right: calc(var(--blockquote-margin) + 40px);
        margin-left: 40px;
    }
}
@media (max-width: 768px) {
    blockquote {;
        margin-right: calc(var(--blockquote-margin) + 10px);
        margin-left: 10px;
    }
}
blockquote:before {
    content: '“';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 90px;
    color: rgba(255, 255, 255, .4);
}
blockquote b, blockquote strong {
    display: block;
    line-height: 60px;
    font-size: 90%;
    font-weight: 400;
    color: #e0e0e0;
}
blockquote i, blockquote em {
    display: block;
    margin-top: -47px;
    font-size: 80%;
    font-weight: 200;
    font-style: normal;
    color: #808080;
}

a {
    color: var(--link-color);
}
a:hover {
    color: var(--link-color-hover);
}

.app-wrapper {
    /*TODO: Перенести из body сюда текстовые свойства.*/
    position: relative;
}
.app-wrapper::before {
    content: '';
    display: block;
    position: fixed;
    z-index: 1000;
    background-color: rgb(0, 255, 0);
    transition: opacity 0.3s ease 0s;
    opacity: 0;
    pointer-events: none;
    inset: 0;
}
.app-wrapper.fixed::before {
    opacity: .3;
}

.app-content {
    position: unset;
    z-index: -2;
    top: 0;
    left: 0;
    width: 100%;
}
/* We adjust top with JS to the scrolledTo() and then back. */
.app-content.fixed {
    position: fixed;
}

.page-wpapper {
    min-height: 350px;
}

.side-panel {
    display: none;
    position: absolute;
    top: var(--site-menu-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--site-menu-height));
}
.side-panel-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
}
.side-panel-content {
    position: absolute;
    z-index: 150;
    padding-bottom: 20px;
    width: calc(100% - 65px);
    min-height: 100%;
    color: rgb(51, 49, 51);
    background-color: rgb(255, 255, 255);
    border-right: 1px solid rgb(213, 216, 220);
    animation: 0.5s ease 0s 1 normal none running slide-in;
}
.legacy-reset {
    position: relative;
}
.legacy-reset.unset {
    position: unset;
}
.column {
    margin-bottom: 20px;
}


.body-flex {
    display: flex;
    flex-direction: column;
    padding: var(--holder-padding);
    min-height: calc(100vh - 50px);
}
.body-flex:before,
.body-flex:after {
    content: '';
    display: block;
    flex-grow: 1;
    height: 25px;
}
@media (max-width: 576px) {
    .body-flex {
        min-height: unset;
    }
}
.account-box {
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
    padding: 50px 40px;
    min-width: 420px;
    max-width: 420px;
    min-height: 420px;
    background-color: var(--bg-account-box);
    border-radius: 8px;
    transition: all .3s linear;
}
@media (max-width: 576px) {
    .account-box {
        margin-top: -20px;
    }
}
.account-logo {
    z-index: +1;
    width: 100%;
    font-size: 0;
    text-align: center;
}
.account-logo a {
    display: inline-block;
}
.account-logo img {
    max-width: 150px;
    max-height: 130px;
}
.account-header {
    margin: 40px auto;
    text-align: center;
}
.account-social {
    display: inline-block;
    position: relative;
    padding: 0 0 5px 0;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background-color: var(--bg-account-social);
    border-radius: var(--input-radius);
    overflow: hidden;
}
.account-social:hover {
    background-color: var(--bg-account-social-h);
}
.account-social figure {
    padding: 10px 10px 5px 10px;
    width: 40px;
    height: 40px;
    fill: var(--text-color);
}
.account-social span {
    display: block;
    font-size: 14px;
}
.account-login {
    display: block;
    margin-top: 5px;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    background-color: var(--bg-account-social);
    border-radius: 5px;
    white-space: nowrap;
}
.account-login span {
    display: inline-block;
    margin-right: 5px;
    max-width: calc(100% - 24px);
    line-height: 26px;
    font-weight: 600;
    text-overflow: ellipsis;
    vertical-align: top;
    overflow: hidden;
}
.account-login figure {
    width: 17px;
    height: 26px;
    vertical-align: top;
    fill: #d93025;
}


.sliders,
.interface {
    direction: ltr;
}
