// Variables
@import "backend_variables";
@import "variables";
@import "helpers";

.login, .register{
	margin-top: 10%;
}

.image-with-preview img{
	max-height: 300px;
	margin: 0 auto;
	border-bottom: 5px solid transparent;
}

.upload-rules{
	color: $brand_danger;
}

.unread{
	font-weight: bold;
	background-color: lighten($brand-primary, 40%) !important;
}

.modal-message{
	font-weight: normal;
}

.banner-img{
	position: relative;
	overflow: hidden;
	height: 75px;
	margin-left: 6px;
	margin-right: 6px;

	img{
		height: auto;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.banner-content{
		position: absolute;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,.52);
		display: flex;
		flex-direction: column;
		justify-content: center;

		.content-text{
			color: #fff;
			width: 100%;
			display: block;
			text-align: center;

			h2{
				font-size: 24px;
				font-weight: bold;
				margin: 0;
			}
		}
	}
}

#btnExample{
	box-shadow: 0px 5px 15px rgba(0,0,0, .54);
	border: none;
}

#panelColor {
	display: block;
	border: solid 1px #000;
	min-height: 70px;
	min-width: auto;
	margin-left: 6px;
	margin-right: 6px;
  background: red; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(red, yellow); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(red, yellow); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(red, yellow); /* For Firefox 3.6 to 15 */
  background: linear-gradient(red, yellow); /* Standard syntax */
}

.fontExample{
	font-size: 16px;
}

body.dragging, body.dragging *{
  cursor: move !important;
}

.dragged{
  position: absolute;
  top: 0;
  opacity: .5;
  z-index: 2000;
}

ul.sortable{
  margin: 0 0 9px 0;
  min-height: 10px;
	
  li{
    display: block;
    margin: 5px;
    padding: 5px;
    border: 1px solid #CCC;
	}
  li.placeholder{
    position: relative;
    margin: 0;
    padding: 0;
    border: none;

    &:before{
      position: absolute;
      content: "";
      width: 0;
      height: 0;
      margin-top: -5px;
      left: -5px;
      top: -4px;
      border: 5px solid transparent;
			border-right: none;
		}
	}
}


/* Image Cropper CSS Properties */
.image-cropper {
  overflow: hidden;
  text-align: center;

	.cropit-preview {
		margin: 0 auto;	

		.cropit-preview-image-container{
			border: 1px solid #ccc;
		}

		.cropit-preview-background {
		  opacity: .2;
		}
		
		.caption {
			text-align: center;
			position: relative;
	    left: 0;
	    right: 0;
	    margin: 0 auto;
	    top: 50%;
	    transform: perspective(1px) translateY(-50%);
	    font-weight: 700;
	    color: rgba(0,0,0,0.5);
		}

		img.cropit-preview-image {
			&:hover {
				cursor: move;
			}
		}

	}

  .controls-wrapper {
  	margin-top: 20px;
  	line-height: 28px;
  	display: inline-flex;
  	.rotation-btns {
  		a {
  			margin-left: 5px;
  			color: black;
  			&:hover {
					cursor: pointer;
				}
  		}
  	}
  	.slider-wrapper {
  		margin-left: 10px;
  		display: inline-flex;

  		input.cropit-image-zoom-input {
			  position: relative;
  			margin-left: 5px;
  			margin-right: 5px;
  			&:hover {
  				cursor: pointer;
  			}

			}
  		i {
  			line-height: 28px;
  		}
  	}
  }
}

/*==== Album ===*/
.box-bordered {
  border: 1px solid #bbb;
  padding: 10px;
  border-radius: 7px;
  margin-bottom: 10px;
}
.btn-add-circle {
	float: right;
	border-radius: 50%;
}
.upload-drop-zone {
	height: 200px;
	border-width: 2px;
	margin-bottom: 10px;
	color: #ccc;
	border-style: dashed;
	border-color: #ccc;
    // line-height: 200px;
    text-align: center;
    position: relative;
    -webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;

  div.caption-wrapper {
	position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    height: 200px;
  }
}
.progress {
	height: 5px;
}

.gallery-wrapper {
	ol.gallery{
		list-style: none;
		padding-left: 0;
		li.gallery-item {
			border: 1px solid #eee;
			padding: 5px;
			height: 102px;

			.item-wrapper {
				display: inline-flex;
				align-items: center;
				width: 100%;
				img {
					max-height: 90px;
					width: auto;
					margin-right: 20px;
				}				
				.controls {
					margin-left: auto;
				}
			}
		}
	}
}

.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}

ol.sortable {
  padding-left: 0;
}

ol.sortable li.placeholder {
  position: relative;
}
ol.sortable li.placeholder:before {
  position: absolute;
}
ol>li{
  list-style: none;
  background-color: transparent;
  height: 50px;
  min-width: 300px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
}
ol.sortable>li:hover {
  cursor: move;
}

#mGallery {
	img {
		max-width: 800px;
	}
}
.btn-edit-circle {
	border-radius: 50%;
}

i.album-add, i.btn-float {
	float: right;
	opacity: .4;
	line-height: 20px;
	&:hover {
		opacity: 1;
	}
}

a.album-list {
	.album-show:hover {
		cursor: pointer;
	}
	.action {
		float: right;		
	}
	i.album-edit, i.album-delete {
		opacity: 0;
	}
	&:hover {
		i.album-edit, i.album-delete {
			opacity: .2;
			&:hover {
				opacity: 1;
				cursor: pointer;
			}
		}	
	}
}
img.thumb {
	width: 150px;
	height: auto;
	object-fit: cover;
}

table.article {

	ul.tag-wrapper {
		list-style: none;
		padding-left: 0;
		li.tag {
	    display: inline;
	    background-color: #2f2f2f;
	    padding: 2px 10px;
	    margin: 2px;
	    font-size: 12px;
	    color: #FFF;
	    // border-radius: 10px;
	    &:first-child {
	    	margin-left: 0;
	    }
		}		
	}
	.publisher {
		margin-top: 10px;

	}
	tr {
		th {
			text-align: center;
		}
		td {
			&:first-child, &:last-child{
				text-align: center;
			}		
		}		
	}

}
div.paginate {
	text-align: right;
	border-top: 2px solid #DDD;
}

ul.tagit li.tagit-choice .tagit-close .text-icon {
	display: block;
}

.modal {
	overflow-y: scroll;
}

body.modal-open {
	overflow: hidden;
}