﻿:root {
    --success-light: #dfffdf;
    --success-dark: #008000;
    --cancel-light: #ffdfdf;
    --cancel-bright: #f00000;
    --cancel-dark: #800000;
    --warning-bright: #ffb000;
    --text-light: #ffffff;
    --text-dark: #000000;
    --disable-component: #888888;
    --waiting-dark: #000000;
    --waiting-light: #ffffff;
    --waiting-background: #ffffff;
    --dialog-background: #ffffff;
    --dialog-borders: #eeeeee;
    --dialog-overlay: rgba(50, 50, 50, 0.5);

    --fa-button-width: 12px;
}

.fa-button {
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
    width: var(--fa-button-width);
    text-align: center;
}

    .fa-button:hover, .fa-button:focus {
        text-decoration: none;
        color: var(--text-dark);
    }

/* диалоговое окно */

.modal-footer-question {
    text-align: center;
}

.modal-question-button {
    width: 100px;
    margin: 5px 20px !important;
    transition: 0.2s;
}

    .modal-question-button:hover {
        transition: 0.2s;
        background-color: #333;
        color: white;
    }

.modal-title {
    font-size: 18px;
}

.modal-body {
    font-size: 15px;
}

/* загрузка */

.loading-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: none;
    z-index: 998;
}

.loading-solid {
    background-color: var(--waiting-background);
}

.bubblingG {
    position: absolute;
    text-align: center;
    width: 100%;
    top: calc(50% - 22px);
    height: 45px;
    margin: auto;
}

    .bubblingG span {
        display: inline-block;
        vertical-align: middle;
        width: 10px;
        height: 10px;
        margin: 24px auto;
        background: var(--waiting);
        border-radius: 49px;
        -o-border-radius: 49px;
        -ms-border-radius: 49px;
        -webkit-border-radius: 49px;
        -moz-border-radius: 49px;
        animation: bubblingG 1.5s infinite alternate;
        -o-animation: bubblingG 1.5s infinite alternate;
        -ms-animation: bubblingG 1.5s infinite alternate;
        -webkit-animation: bubblingG 1.5s infinite alternate;
        -moz-animation: bubblingG 1.5s infinite alternate;
    }

#bubblingG_1 {
    animation-delay: 0s;
    -o-animation-delay: 0s;
    -ms-animation-delay: 0s;
    -webkit-animation-delay: 0s;
    -moz-animation-delay: 0s;
}

#bubblingG_2 {
    animation-delay: 0.45s;
    -o-animation-delay: 0.45s;
    -ms-animation-delay: 0.45s;
    -webkit-animation-delay: 0.45s;
    -moz-animation-delay: 0.45s;
}

#bubblingG_3 {
    animation-delay: 0.9s;
    -o-animation-delay: 0.9s;
    -ms-animation-delay: 0.9s;
    -webkit-animation-delay: 0.9s;
    -moz-animation-delay: 0.9s;
}



@keyframes bubblingG {
    0% {
        width: 10px;
        height: 10px;
        background-color: var(--waiting-dark);
        transform: translateY(0);
    }

    100% {
        width: 23px;
        height: 23px;
        background-color: var(--waiting-light);
        transform: translateY(-20px);
    }
}

@-o-keyframes bubblingG {
    0% {
        width: 10px;
        height: 10px;
        background-color: rgb(0,0,0);
        -o-transform: translateY(0);
    }

    100% {
        width: 23px;
        height: 23px;
        background-color: rgb(255,255,255);
        -o-transform: translateY(-20px);
    }
}

@-ms-keyframes bubblingG {
    0% {
        width: 10px;
        height: 10px;
        background-color: rgb(0,0,0);
        -ms-transform: translateY(0);
    }

    100% {
        width: 23px;
        height: 23px;
        background-color: rgb(255,255,255);
        -ms-transform: translateY(-20px);
    }
}

@-webkit-keyframes bubblingG {
    0% {
        width: 10px;
        height: 10px;
        background-color: rgb(0,0,0);
        -webkit-transform: translateY(0);
    }

    100% {
        width: 23px;
        height: 23px;
        background-color: rgb(255,255,255);
        -webkit-transform: translateY(-20px);
    }
}

@-moz-keyframes bubblingG {
    0% {
        width: 10px;
        height: 10px;
        background-color: rgb(0,0,0);
        -moz-transform: translateY(0);
    }

    100% {
        width: 23px;
        height: 23px;
        background-color: rgb(255,255,255);
        -moz-transform: translateY(-20px);
    }
}

/* modal answer */

.dialog-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    transform: scale(0);
    background-color: none;
}

.dialog-show {
    transform: scale(1);
    background-color: var(--dialog-overlay);
    transition-timing-function: linear;
    transition-duration: 0.15s;
    transition-property: background-color;
}

.dialog-window {
    width: 600px;
    margin: -300px auto;
    background-color: var(--dialog-background);
    border-radius: 5px;
    border: 1px solid var(--dialog-borders);
    max-height: calc(100% - 150px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media(max-width: 767px) {
    .dialog-window {
        width: calc(100% - 30px);
    }
}

.dialog-show > .dialog-window {
    margin: 60px auto;
    transition-timing-function: linear;
    transition-duration: 0.15s;
    transition-property: margin;
}

.dialog-header {
    padding: 13px;
    font-size: 16px;
    border-bottom: 1px solid var(--dialog-borders);
    font-weight: bold;
}

.dialog-body {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid var(--dialog-borders);
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.dialog-buttons {
    text-align: center;
    padding: 10px;
}

.dialog-button-yes {
    margin: 0 5px 2px 5px;
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    min-width: 120px;
    border: 1px solid var(--success-dark);
    background-color: var(--success-light);
    color: var(--text-dark);
    transition: 0.2s;
}

    .dialog-button-yes:hover {
        background-color: var(--success-dark);
        color: var(--text-light);
        transition: 0.2s;
    }

.dialog-button-no {
    margin: 0 5px 2px 5px;
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    min-width: 120px;
    border: 1px solid var(--cancel-dark);
    background-color: var(--cancel-light);
    color: var(--text-dark);
    transition: 0.2s;
}

    .dialog-button-no:hover {
        background-color: var(--cancel-dark);
        color: var(--text-light);
        transition: 0.2s;
    }
