﻿/*FONTS*/
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,500');

/*INI*/
*:not(input):not(textarea) {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

body {
    margin:0;
    padding:0;
}
body > form {
    margin:0;
    padding:0;
    display:block;
    width:100%;
}
body > form > div {
    display:block;
    width:100%;
    height:100%;
    position:fixed;
    top:0;
    left:0;
}
#bckg {
    z-index: -1;
}
#app {
    z-index: 1;
}
#login {
    z-index: 20;
}
#popups {
    z-index: 30;
}
#loading {
    z-index: 40;
}

/*BACKGROUND*/
#bckg {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to left bottom, #ffffff,#d2d0d1);
    z-index: -1;
}

/*LOADING*/
#loading {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff;
    transition: opacity ease-in-out 0.3s;
    z-index:50;
    opacity:0;
    pointer-events:none;
}

#loading.active {
    pointer-events:auto;
    opacity:1;
}


#loading > div {
    display: block;
    background: url("../_media/images/logo.png");
    width: 316px;
    background-size:316px;
    height: 72px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -158px;
    margin-top: -36px;
    transition:all ease-in-out 0.2s;
}
#loading > div:nth-child(1) {
    opacity:0.5;
}
#loading > div:nth-child(2) {
    opacity: 0.7;
    width: 0;
    animation-name: loading500;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}
@keyframes loading500 {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 316px;
        opacity: 0;
    }
}

/*POPUP*/
#popups {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(150,150,150,0.8);
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    opacity: 1;
    transition: opacity ease-in-out 0.2s;
}

#popups > div {
    display: block;
    position: absolute;
    max-width: 500px;
    min-width: 290px;
    width: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    box-sizing: border-box;
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

#popups #popupMsgBox {
    display: block;
    width: 100%;
    position:relative;
    margin:20px 0 40px 0;
}

#popups #popupMsgBox > div {
    display: table;
    width: 100%;
    min-height: 100%;
}

#popups #popupMsgBox > div > div {
    display: table-cell;
    vertical-align: middle;
}

#popups #popupMsg {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#popups #popupBtns {
    display: block;
    text-align: right;
    width: 100%;
}


.btn-success {
    color: #fff;
    background: linear-gradient(#bfd16f,#a6b563) !important;
    outline: none;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    box-shadow: inset 0 -2px #7b9b5d;
    border-color: transparent !important;
    padding: 8px 40px !important;
    opacity: 1;
}
.btn-success:hover {
    opacity: 0.9;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(#bfd16f,#a6b563) !important;
    outline: none;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    box-shadow: inset 0 -2px #7b9b5d;
    border-color: transparent !important;
    padding: 8px 40px !important;
    opacity: 1;
}
.btn-primary:hover {
    opacity: 0.9;
}


.btn-danger {
    display: inline-block;
    color: #fff;
    background: linear-gradient(#d06e7b,#b8646f);
    box-shadow: inset 0 -2px #9b695d;
    outline: none;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    border-color: transparent !important;
    padding: 8px 40px !important;
    opacity: 1;
}

    .btn-danger:hover {
        opacity: 0.9;
    }

@media screen and (max-width:500px) {

    .btn-success {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .btn-danger {
        width:100% !important;
    }
}

@media screen and (max-width:300px) {
    #loading > div {
        width: 142px !important;
        height: 30px;
        margin-left: -71px;
        background-size: 142px;
        background-repeat: no-repeat;
    }
}

.lds-ripple {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 28px;
        left: 28px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: -1px;
        left: -1px;
        width: 58px;
        height: 58px;
        opacity: 0;
    }
}
