html,
body {
    font-size: 1em;
    line-height: 1.3;
    padding: 0;
    margin: 0;
    height: 100%;
    background-color: rgb(255, 255, 255);
}

a:hover {
    color: #fb9acd;
    text-decoration: none !important;
}

#app {
    margin: 0 auto;
    max-width: 600px;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    background-size: cover;
}

#app #header,
#app #body,
#app #footer {
    max-width: 600px;
    min-height: 50px;
}

@keyframes boot-animation {
    0% {
        background-color: rgb(255, 255, 255);
    }
    100% {
        background-color: rgb(251, 154, 205);
    }
}

#boot {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: rgb(251, 154, 205);
    z-index: 9999999;
    background-image: url('/images/logo_crm.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70vw;
    animation-name: boot-animation;
    animation-duration: 3s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
}

#boot::after {
    content: 'Загрузка приложения...';
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 33vh;
    font-size: 7vw;
    color: rgb(30, 30, 30);
    height: 100%;
    width: 100%;
}

@keyframes loader-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#loader {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 99999999;
}

#loader .bar {
    width: 100%;
    position: absolute;
    height: 100%;
    background-color: rgba(251, 154, 205, 0.6);
    animation-name: loader-animation;
    animation-duration: 0.2s;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(0.8, 0.01, 0.2, 0.99);
}

.spinner {
    position: absolute;
    left: calc(50% - 100px);
    top: calc(50% - 100px);
    width: 200px;
    height: 200px;
}

.spinner:before,
.spinner:after {
    content: "";
    display: block;
    position: absolute;
    border-width: 20px;
    border-style: solid;
    border-radius: 50%;
}

@-webkit-keyframes scale-2 {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(0.7);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes scale-2 {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(0.7);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.spinner:before {
    width: 170px;
    height: 170px;
    border-color: rgb(255, 255, 255);
    top: 0px;
    left: 0px;
    -webkit-animation: scale-2 1s linear 0s infinite;
    animation: scale-2 1s linear 0s infinite;
}

.spinner:after {
    width: 170px;
    height: 170px;
    border-color: rgb(255, 255, 255);
    top: 0;
    left: 0;
    opacity: 0;
    -webkit-animation: scale-2 1s linear 0.5s infinite;
    animation: scale-2 1s linear 0.5s infinite;
}

#andaddhome {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 100;
    background-color: rgb(255, 215, 247);
    padding: 0.5em 0.8em;
    display: flex;
    align-content: center;
    justify-content: space-around;
}

#andaddhome img {
    height: 3em;
    margin-right: 1em;
    align-self: center;
}

#andaddhome span {
    text-align: left;
    align-self: center;
    font-size: 3.7vw;
}

#andaddhome button {
    align-self: center;
    border: 1px solid rgb(255, 197, 243);
    height: 1.5em;
    width: 2em;
    font-size: 2em;
    line-height: 1;
    font-family: monospace;
    background-color: rgb(255, 231, 250);
    z-index: 200;
}