﻿@charset 'utf-8';

/* HTML & BODY */

html, body {
    display: block;
    font-family: OpenSans, Arial, Verdana, sans-serif;
    font-size: 100%;
    height: 100%;
    line-height: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

body {
    background-color: #ccc;
    min-width: 1024px;
    /*background-color: #fafafa;*/
}

    body.ready {
        background-color: #fafafa;
        padding-left: 250px;
        width: calc(100% - 250px);
        -webkit-transition: background .5s, padding .5s, width .5s;
        -moz-transition: background .5s, padding .5s, width .5s;
        transition: background .5s, padding .5s, width .5s;
    }

    body.menu {
        padding-left: 84px;
        width: calc(100% - 84px);
    }

/* CLASSES */

.center { 
    text-align: center;
}

.left {
    text-align: left;
}
.right {
    text-align: right;
}

/* LINKS */

a, a:hover {
    color: #9071b0;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* NAV */

nav, nav svg, nav ul, nav li, nav li a, nav li span {
    display: block;
}

nav {
    background-color: #fff;
    border: 1px solid #eee;
    height: 500px;
    left: 50%;
    margin: -250px 0 0 -175px;
    position: fixed;
    top: 50%;
    width: 350px;
    -webkit-box-shadow: 0px 15px 50px -15px rgba(0, 0, 0, 0.7);
    -moz-box-shadow: 0px 15px 50px -15px rgba(0, 0, 0, 0.7);
    box-shadow: 0px 15px 50px -15px rgba(0, 0, 0, 0.7);
    z-index: 2;
    /*-moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);*/
}

body.busy nav, body.ready nav {
    border: none;
    height: 100%;
    left: 0;
    margin: 0;
    top: 0;
}

body.busy nav {
    
    width: 100%;
    -webkit-transition: height .5s, left .5s, margin .5s, top .5s, width .5s;
    -moz-transition: height .5s, left .5s, margin .5s, top .5s, width .5s;
    transition: height .5s, left .5s, margin .5s, top .5s, width .5s;
}

body.ready nav {
    width: 250px;
    -webkit-transition: width .5s;
    -moz-transition: width .5s;
    transition: width .5s;
}

body.menu nav {
    width: 84px
}

body.menu li.active {
    background-color: #9071b0;
}

body.menu nav li span {
    display: none;
}

nav svg {
    fill: #999;
    height: 24px;
    position: absolute;
    width: 24px;
}

nav li {
    border-left: 3px solid transparent;
}

    nav li.active {
        border-left-color: #9071b0;
    }

nav li a, nav a:hover {    
    text-decoration: none;
}

nav a:hover {
    color: #9071b0;
}

nav li a, nav li span {
    height: 50px;
    line-height: 50px;
}

nav li a {
    color: #999;
    font-size: 80%;
    font-weight: bold;
    padding: 0 30px 0 69px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-transition: padding .5s;
    -moz-transition: padding .5s;
    transition: padding .5s;
}

body.menu nav li a {
    padding-left: 51px;
}

nav li.active a, nav li.active a:hover {
    color: #000 !important;
}

nav li svg {
    left: calc(30px - 3px);
    top: 13px;
}

nav li.active svg {
    fill: #9071b0 !important;
}

    body.menu nav li.active svg {
        fill: #fff !important;
    }

nav li a:hover svg {
    fill: #9071b0;
}

nav header {
    display: block;
    position: relative;
    height: 70px;
}

nav header svg {
    cursor: pointer;
    left: 30px;
    top: 23px;
}

    nav header svg:hover {
        fill: #9071b0;
    }

label, label span, label input, label select {
    display: block;
}

label {
    border-bottom: 1px solid #ccc;
    clear: both;
    height: 40px;
    margin: 15px 30px 16px 30px;
    padding: 10px 0;
    position: relative;
    width: calc(100% - (30px * 2));
}

    label.clearfix {
        border: none;
        height: auto;
        padding: 15px 0 0 0;
    }

    label.focused {
        border-bottom-color: #9071b0;
        border-bottom-width: 2px;
        margin-bottom: 15px;
    }

    table label.focused {
        margin: 0;
    }

table label {
    border: none;
    padding: 15px;
    margin: 0;
    width: calc(100% - (15px * 2));
}

label span, label input, label select {
    font-size: 90%;
    height: 20px;
    left: 0;
    line-height: 20px;
    position: absolute;
    width: 100%;
}

table label span, table label input, table label select {
    left: 15px;
}

label span {
    color: #999;
    top: 35px;
    z-index: 0;
}

table label span {
    top: 35px;
}

label input, label select {
    bottom: 10px;
    color: #333;
    z-index: 1;
}

table label input, table label select {
    bottom: 15px;
}

label select {
    width: 90%;
}

label.active span {
    color: #9071b0;
}

label.focused span, label.value span {
    font-weight: bold;
    font-size: 70%;
    text-transform: uppercase;
    top: 5px;
}

label.focused span {
    -webkit-transition: color .3s, font-size .3s, text-transform .3s, top .3s;
    -moz-transition: color .3s, font-size .3s, text-transform .3s, top .3s;
    transition: color .3s, font-size .3s, text-transform .3s, top .3s;
}

table label.focused span, table label.value span {
    top: 10px;
}

label.focused span {
    color: #9071b0;
}

button, label a {
    background-color: #9071b0;
    border: 2px solid #9071b0;
    color: #fff;
    font-size: 80%;
    font-weight: bold;
    height: 50px;
    float: right;
    line-height: 46px;
    margin: 15px 0;
    text-transform: uppercase;
    width: calc(50% - ((2px + 5px) * 2));
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
}

label a {
    background-color: #fff;
    border: 2px solid #9071b0;
    float: left;
    color: #9071b0;
    padding: 8px 0;
    font-size: 80%;
    text-decoration: none;
    height: auto;
    font-weight: normal;
    line-height: 15px;
    text-align: center;
}

p {
    padding: 0 0 30px 0;
    text-align:center;
    font-size: 70%;
    line-height: 20px;
    color: #999;
}

button:hover, button:active, label a:hover {
    background-color: #9071b0;
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.loader {
    height: 6px;
    width: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -3px 0 0 -75px;
    overflow: hidden;
    background-color: #ddd;
}

    .loader:before {
        display: block;
        position: absolute;
        content: "";
        left: -150px;
        width: 150px;
        height: 6px;
        background-color: #9071b0;
        animation: loading 1.5s linear infinite;
    }

@keyframes loading {
    from { left: -150px; width: 30%; }
    50% { width: 30%; }
    70% { width: 70%; }
    80% { left: 50%; }
    95% { left: 120%; }
    to { left: 100%; }
}


svg.spin {
    display: block !important;
    fill: #999 !important;
    height: 70px !important;
    left: 50% !important;
    margin: -35px 0 0 -35px !important;
    position: absolute !important;
    top: 50% !important;
    width: 70px !important;
    -moz-animation: spin 2s infinite linear;
    -webkit-animation: spin 2s infinite linear;
    animation: spin 2s infinite linear;
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); } 
    to { -moz-transform: rotate(360deg); }
}

@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* CHECK & SLIDER */

.check, .check span, .slider, .slider span {
    display: block;
    margin: 0;
}

.check, .slider {
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    padding: 0;
    position: relative;
}

.check {
    width: 20px;
}

.slider {
    width: 40px;
}

    .check input, .slider input, .check input[type=checkbox], .slider input[type=checkbox] {
        display: none;
    }

.check span {
    left: 0;
    top: 0;
    height: 20px;
    font-size: 100%;
    width: 20px;
}

.slider span, .slider span:before {
    position: absolute;
}

.slider span {
    background-color: #ccc;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

.slider span:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 12px;
    left: 4px;
    width: 12px;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.check span:before {
    background-color: transparent;
    display: block;
    content: "";
    height: 16px;
    line-height: 16px;
    text-align: center;
    width: 16px;
    border: 2px solid #666;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.check input:checked + span { }

.check input:focus + span { }

.check input:checked + span:before {
    background-color: #009688;
    border-color: #009688;
    color: #fff;
    content: '\2714';
}

.slider input:checked + span {
    background-color: #8BC34A;
}

.slider input:focus + span {
    box-shadow: 0 0 1px #8BC34A;
}

.slider input:checked + span:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* SNACKBAR */

.snackbar {
    background-color: #333;
    bottom: 30px;
    color: #fff;
    display: block;
    font-size: 90%;
    font-weight: normal;
    left: 50%;
    margin-left: -125px;
    min-width: 250px;
    padding: 15px;
    position: fixed;
    text-align: center;
    visibility: hidden;
    z-index: 5;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

    .snackbar.active {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }


@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}
