/* Imports */
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900');

/* Resets */
* {
	margin: 0px;
	padding: 0px;
	
	box-sizing: border-box;
	
	-webkit-font-smoothing: antialiased;
}
a {
	text-decoration: none;
}
input,
select {
	outline: none;
}
img {
	max-width: 100%;
	display: block;
}

/* Defaults */
body {
	background: #f3f3f3;
}
.height-100,
.admin-container {
	height: 100%;
}

/* Typography */
body {
	font-family: 'Lato', sans-serif;
}
h1,
h2,
h3,
h4 {
	text-transform: uppercase;
}
h1 {
	font-weight: 900;
	font-size: 21px;
	color: #2048B7;
	letter-spacing: 2px;
	margin-bottom: 10px;
}
h2 {
	font-size: 18px;
	color: #2048B7;
	letter-spacing: 2px;
	margin-bottom: 20px;
}
h3 {
	font-size: 15px;
	color: #414141;
	letter-spacing: 2px;
	margin-bottom: 20px;
}
h4 {
	font-weight: 900;
	font-size: 15px;
	color: #FFFFFF;
}
p {
	font-size: 16px;
	color: rgba(0,0,0,.5);
	line-height: 24px;
	margin-bottom: 24px;
}

/* Login and register */
.login-register {
	background: url('../../assets/images/backgrounds/1.jpg') center center no-repeat;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
	
	transition: background 1.2s ease;
}
.login-register:after { /* Preloads CSS images */
	content:	url('../../assets/images/backgrounds/1.jpg') 
				url('../../assets/images/backgrounds/2.jpg')
				url('../../assets/images/backgrounds/3.jpg')
				url('../../assets/images/backgrounds/4.jpg')
				url('../../assets/images/backgrounds/5.jpg')
				url('../../assets/images/backgrounds/6.jpg');
	display: none;
}
.login,
.register {
	max-width: 640px;
}
.login__branding,
.login__data,
.register__branding,
.register__data {
	padding: 40px;
}
.login__branding,
.register__branding {
	background: #31498d;
}
.login__data,
.register__data {
	background: #fff;
}
.login__links {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}
.login__link {
	display: inline-block;
	font-size: 13px;
	text-decoration: none;
	color: #ccc;
	padding: 0px 10px;
	border-left: 1px solid #ccc;
	
	transition: .3s;
}
.login__link:hover {
	text-decoration: underline;
	color: #333;
}
.login__link:first-child {
	border: 0px;
}

/* Menu */
.admin-menu {
	background: #31498d;
	position: fixed;
	left: -180px;
	height: 100%;
	width: 180px;
	z-index: 30;
	
	transition: .3s;
}
.admin-menu__toggle {
    padding: 10px 0px 0px 16px;
 background: #31498d;
    position: absolute;
    left: 190px;
    bottom: 10px;
    width: 44px;
    cursor: pointer;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
}
.admin-menu__logo {
	text-align: center;
	margin:20px 0;
}
.admin-menu__img {
	display: inline-block;
}
.admin-menu__navigation {
	border-top: 1px solid rgba(255,255,255,.3);
	padding: 10px;
	width: 100%;
}
.admin-navigation__item {
	list-style-type: none;
}
.admin-navigation__link,
.admin-navigation__user-welcome {
	font-size: 13px;
	color: #FFFFFF;
	opacity: .6;
	padding: 10px 0px;
	display: block;
	padding: 10px;
	
	transition: .3s;
}
.admin-navigation__user-welcome {
	opacity: 1;
	font-weight: bold;
}
.admin-navigation__link:hover {
	text-decoration: underline;
}
.admin-navigation__link--active {
	opacity: 1;
	background: rgba(255,255,255,.15);
	border-radius: 2px;
}
.admin-navigation__link--active:hover {
	text-decoration: none;
}
.admin-menu--open {
	left: 0px;
}


/* Section */
.admin-content {
	min-height: 100%;
	padding: 20px;
}
.admin-content__top-bar {
	margin-bottom: 20px;
}
.admin-content__subtitle {
	font-size: 13px;
	color: #9E9E9E;
	margin-bottom: 20px;
	display: block;
}
.admin-content__tools {
	display: flex;
}
.admin-form--inline {
	display: inline;
}
.admin-form__field {
	border: 1px solid #e8e8e8;
	border-radius: 2px;
	padding: 20px;
	font-size: 13px;
}
.admin-content__search {
	width: 100%;
}
.admin-content__download-orders,
.admin-content__new-album,
.admin-content__new-user,
.admin-content__edit-album,
.admin-content__order-again {
	margin-left: 10px;
}
.admin-content__area {
	margin-bottom: 20px;
}
.admin-content__area--flex-end {
	display: flex;
	justify-content: flex-end;
}
.admin-content__component {
	border-radius: 1px;
	margin-bottom: 20px;
}
.admin-content__component--white {
	border: 1px solid #e8e8e8;
	background: #fff;
}
.admin-content__component--padding {
	padding: 20px;
}
.album,
.photo {
	position: relative;
	margin-bottom: 20px;
	display: block;
	color: inherit;
	border-radius: 2px;
}
.album__information,
.photo__information {
	position: absolute;
	bottom: 20px;
	left: 20px;
	color: #fff;
	padding: 10px;
	border: 2px solid #fff;
	width: calc(100% - 40px);
	z-index: 20;
	border-radius: 2px;
	word-wrap: break-word;
}
.album__shadow,
.photo__shadow {
	position: absolute;
	z-index: 10;
	height: 50%;
	bottom: 0px;
	left: 0px;
	width: 100%;
	opacity: .7;
	background-image: linear-gradient(-180deg, rgba(0,0,0,0.00) 0%, #000000 100%);
}
.photo__remove {
	position: absolute;
	top: -12px;
	right: -12px;
	cursor: pointer;
	width: 24px;
	height: 24px;
	display: none;;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0px 0px 5px rgba(0,0,0,.1);
	color: red;
	font-size: 15px;
	padding: 3px;
}
.photo:hover .photo__remove {
	display: flex;
}
.album__date {
	font-weight: 700;
	font-size: 11px;
	color: #FFFFFF;
}
.album__photo-amount {
	background: #FADC00;
	padding: 5px;
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	font-weight: 900;
	font-size: 15px;
	color: #000000;
	border-radius: 2px;
	text-align: center;
}
.album__amount-text {
	display: block;
	font-weight: normal;
	font-size: 11px;
}

/* Footer */

/* Utilitys */
.pre {

}
.pre__code {
	padding: 15px;
	border-radius: 4px;
	background: #e8e8e8;
	color: #777;
	display: inline-block;
}
.icon--white {
	color: #fff;
}
.icon--large {
	font-size: 23px;
	display: inline-block;
	margin-right: 10px;
	line-height: 0px;
}
.btn {
	border: 0px;
	cursor: pointer;
	display: inline-block;
	padding: 20px;
	background: #ccc;
	font-size: 13px;
	color: #333;
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	
	transition: .3s;
}
.btn:before {
	content: "";
	display: block;
	height: 100%;
	width: 0%;
	transform: skewX(30deg);
	background: rgba(255,255,255, .2);
	left: -16px;
	top: 0px;
	position: absolute;
	
	transition: .3s;
}
.btn--primary {
	background: #31498d;
	color: #fff;
}
.btn--primary:hover:before {
	width: calc(100% + 32px);
}
.btn--plain {
	background: none;
	font-weight: bold;
	color: #777;
}
.btn--plain:hover {
	text-decoration: underline;
	color: #333;
}
.btn--danger {
	color: red;
}
.btn--danger:hover {
	color: red;
}
.form__label,
.checkbox__label {
    display: block;
    font-size: 12px;
    color: rgba(0,0,0,.8);
    padding-right: 10px;
    margin-bottom: 10px;
}
.form__field {
	padding: 15px;
	font-size: 13px;
	width: 100%;
	background: #f3f3f3;
	border-radius: 2px;
	border: 0px;
	margin-bottom: 20px;
}
.form__field--disabled {
	opacity: .5;
}
.form__note {
	font-size: 11px;
	color: #777;
	display: block;
	margin-top: 20px;
}
.form__note-link { 
	color: #333;	
	text-decoration: underline;
}
.admin-content__download-orders,
.admin-content__new-album,
.admin-content__new-user,
.admin-content__edit-album,
.admin-content__order-again {
	display: none;
}
.table-container {
	overflow-x: auto;
}
.table__row {
	border-bottom: 1px solid #eaeaea;
	display:table;
}
.table__row:last-child {

}
.table__data {
	text-align: left;
	padding: 20px;
	font-size: 13px;
	color: rgba(0,0,0,.8);
	min-width: 160px;
}
.table__error {
	text-align: center;
	padding: 20px;
	color: #777;
}
.table__check {
	display: none;
}
.table__edit-link {
	color: #333;
	opacity: 0;
	
	transition: .3s;
}
.table__row:hover .table__edit-link {
	opacity: 1;
}
.pagination {
	display: flex;
	justify-content: center;
}
.pagination__list {
	border: 1px solid #e8e8e8;
	border-radius: 2px;	
	display: flex;
}
.pagination__list-item {
	list-style-type: none;
	display: inline;
	border-left: 1px solid #e8e8e8;
}
.pagination__list-item:first-child {
	border-radius: 2px 0 0 2px;
	border: 0px;
}
.pagination__list-item:last-child {
	border-radius: 0 2px 2px 0;
}
.pagination__link {
	display: inline-block;
	padding: 10px;
	color: #333;
	background: #fff;
	font-size: 11px;
	
	transition: .3s;
}
.pagination__link:hover {
	background: #f3f3f3;
}
.pagination__link--active {
	background: #e8e8e8;
}
.checkbox {
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 12px;
	cursor: pointer;
	font-size: 22px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	top: -6px;
	left: -2px;
}
.checkbox__input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}
.checkbox__mark {
	position: absolute;
	top: 0;
	left: 0;
	height: 24px;
	width: 24px;
	background-color: #eee;
	border-radius: 2px;
}
.checkbox__label {
	display: inline-block;
	position: relative;
	top: -4px;
}
.checkbox:hover .checkbox__input ~ .checkbox__mark {
	background-color: #ccc;
}
.checkbox .checkbox__input:checked ~ .checkbox__mark {
	background-color: #31498d;
}
.checkbox__mark:after {
	content: "";
	position: absolute;
	display: none;
}
.checkbox .checkbox__input:checked ~ .checkbox__mark:after {
	display: block;
}
.checkbox .checkbox__mark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.modal {
	position: fixed;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	background: rgba(0,0,0,.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50;
	opacity: 0;
	pointer-events: none;
	
	transition: .6s ease;
}
.modal--show {
	opacity: 1;
	pointer-events: auto;
}
.modal__container {
	max-width: 420px;
	padding: 20px;
	border-radius: 2px;
	background: #fff;
}
.notification {
    position: fixed;
    background: #f3f3f3;
    color: #000;
    z-index: 40;
    left: 20px;
    bottom: -70px;
    font-size: 13px;
    padding: 15px;
    border-left: 5px solid #000;
    
	animation: show-notification .6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
.notification--success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: green;
}
.notification--info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: blue;
}
.notification--warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: orange;
}
.notification--danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: red;
}
.no-results {
	display: block;
	padding: 20px;
	text-align: center;
	font-size: 15px;
	color: #777;
	flex: 1;
	box-shadow: 0px 0px 5px rgba(0,0,0,.1);
	border-radius: 2px;
	background: #fff;
}

/* Drag drop */
.no_scroll {
	overflow: hidden;
}
.drag-drop {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background: rgba(49, 73, 140, 0.95);
	z-index: 50;
	display: none;
	align-items: center;
	justify-content: center;
}
.drag-drop__content {
	padding: 40px;
}
.drag-drop__form {
	text-align: center;
}
.drag-drop__upload {
	display: block;
	text-align: center;
	font-weight: bold;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 2px;
	font-size: 13px;
	padding: 10px;
	cursor: pointer;
	
	transition: .3s;
}
.drag-drop__upload:hover {
	border-color:#FADC00;
	background: #FADC00;
	color: #31498d;
}
.drag-drop__label {
	padding: 10px;
	border-radius: 2px;
	cursor: pointer;
	font-size: 13px;
	background: #fff;
	display: flex;
	align-items: center;
	color: #31498d;
	margin-bottom: 20px;
	font-weight: bold;
}
.drag-drop__file {	
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
.drag-drop__loader {
	border: 4px solid #f3f3f3;
    border-top: 4px solid transparent;
    border-radius: 50%;
    opacity: 0;
    width: 44px;
    height: 44px;
    margin-top: 40px;
    display: inline-block;
    animation: spin 2s linear infinite;
}
.drag-drop__loader--showing {
	opacity: 1;	
}

/* Responsive */
@media(min-width:550px) {
	.admin-menu {
		left: 0px;
	}
	.admin-menu__toggle {
		display: none;
	}
	.admin-menu__user-tools {
		position: absolute;
		bottom: 20px;
	}
	.admin-content {
		margin-left: 180px;
	}
	.admin-content__top-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.albums__container,
	.photos__container {
		display: flex;
		flex-wrap: wrap;
	}
	.album,
	.photo {
		width: 48%;
		margin-right: 4%;
	}
	.album:nth-child(even),
	.photo:nth-child(even) {
		margin-right: 0px;	
	}
	.btn {
		width: auto;
		margin-top: 0px;
	}
	.btn--full-width {
		width: 100%;
		text-align: center;
	}
	.login-register__logo {
		width: 100%;
	}
	.login,
	.register {
		display: flex;
	}
	.login__branding,
	.register__branding {
		flex: 2;
		align-items: center;
	}
	.login__data,
	.register__data {
		flex: 8;
	}
	.columns {
		display: flex;
		align-items: flex-start;
	}
	.columns__2 {
		flex: 1;
		margin-right: 20px;
	}
	.columns__2:last-child {
		margin-right: 0px;
	}
}
@media(min-width:768px) { 
	.admin-content__search {
		width: auto;	
	}
	.album,
	.photo {
		width: 23.5%;
		margin-right: 2%;
	}
	.album,
	.photo,	
	.album:nth-child(even),
	.photo:nth-child(even) {
		margin-right: 2%;
	}
	.album:nth-child(4n),
	.photo:nth-child(4n) {
		margin-right: 0px;	
	}
	.pagination {
		justify-content: flex-end
	}
	.admin-content__subtitle {
		margin-bottom: 0px;
	}
}
@media(min-width:960px) { 
	.admin-content__download-orders,
	.admin-content__new-album,
	.admin-content__new-user,
	.admin-content__edit-album,
	.admin-content__order-again {
		display: inline-block;	
	}
	.table__row {
		table-layout: fixed;
		width:100%;
	}
	.table__data {
		width: auto;	
	}
	.table__check {
		display: table-cell;
	}
	.table__check,
	.table__edit {
		width: 40px;
	}
}

/* Animations */
@keyframes show-notification {
	to {
		bottom: 20px;
	}
}
@keyframes spin {
    0% { 
	    transform: rotate(0deg); 
	}
    100% { 
	    transform: rotate(360deg); 
	}
}