/* ANIMATIONS ============================== */
.fileful-flip {
	-webkit-transform: rotateX(90deg);
	transform: rotateX(90deg);
	-webkit-transform-origin: 50% top 0;
	transform-origin: 50% top 0;
	transition-duration: 0.3s;
	opacity: 0;
	display:none !important;
}
.fileful-flip.fileful-on {
	-webkit-transform: rotateX(0);
	transform: rotateX(0);
	opacity: 1;
	display:block !important;
}



.fileful {
	display: block;
	padding: 10px;
	width: 100%;
}
.fileful-head input { display: none !important; }
.fileful-head {
	background-color: #fafafa;
    text-align: center;
	cursor: pointer;
	display: block;
	padding: 6px;
}
.fileful-head .btn {
    padding-right: 15px;
    padding-left: 15px;
    margin: 0 6x;
}
.fileful-head,
.fileful-file {
	border: 1px solid #eaeaea;
	width: 100%;
}
.fileful-file {
	align-items: stretch;
	flex-direction: row;
    line-height: 20px;
    border-top: none;
    font-size: 18px;
	display: flex;
    padding: 3px;
    height: 30px;
}
.fileful-file:hover {
	background-color: #fafafa;
}
.fileful-name {
	position: relative;
	font-size: 14px;
    flex: 1;
}
.fileful-name span {
	text-overflow: ellipsis;
	white-space: nowrap;
	position: absolute;
    text-align: left;
	overflow: hidden;
    padding: 0 10px;
	max-width: 100%;
    height: 100%;
    z-index: 2;
    left: 0;
    top: 0;
}
.fileful-name div {
	background-color: hsla(165, 100%, 40%, 0.6);
	transition: width 0.3s linear;
    position: absolute;
    font-weight: bold;
    text-align: right;
    display: none;
    color: white;
    height: 100%;
    z-index: 1;
	padding: 0;
	width: 0;
    left: 0;
    top: 0;
}
.fileful-incomplete .fileful-name div {
	display: block;
}
.fileful-ext {
    font-weight: bold;
    text-align: left;
	font-size: 16px;
    padding: 0 6px;
	width: 60px;
}
.fileful-incomplete .fileful-ext {
	opacity: 0.2;
}
.fileful-actions {
	justify-content: space-evenly;
	align-items: center;
	flex-direction: row;
	font-size: 16px;
	display: flex;
    width: 80px;
}
.fileful-actions .fa {
	cursor: pointer;
}
.fileful-actions .fa:hover {
	transform: scale(1.1);
}
.fileful-actions .fa-times {
	color: red;
}
.fileful-actions .fa-refresh {
	color: #0099ff;
	display: none;
}
.fileful-actions .fa-upload {
	color: #0099ff;
	display: none;
}
.fileful-actions .fa-download {
	color: #00cc00;
}
.fileful-incomplete .fileful-actions .fa-upload {
	display: block;
}
.fileful-incomplete .fileful-actions .fa-download,
.fileful-incomplete.fileful-uploading .fileful-actions .fa-upload {
	display: none;
}
.fileful-uploading .fileful-actions .fa-refresh {
	display: block;
	animation: fileful-spin 1s linear infinite;
}

/* INFO ======================================== */
/* Container */
.fileful-info {
	width:100%;
	display:none;
	font-size:12px;
	line-height:14px;
}
.fileful-info.fileful-on {
	display:block;
}
.fileful-info div {
	background-color: #f2f2f2;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	display: block;
	padding: 2px 10px;
	margin: 3px 0;
	text-align: right;
}
.fileful-info div:hover {
	background-color: #fafafa;
}

/* Percent */
.fileful-info div span {
	font-weight: bold;
	text-align: left;
	float: left;
}

/* PREVIEW ===================================== */
/* Container */
.fileful-preview {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 4px;
	display: none;
}
.fileful-preview.fileful-on {
	display:block;
}

/* Video, Audio, Image */
.fileful-preview video, .fileful-preview audio, .fileful-preview img {
	background-color: #f2f2f2;
	border-radius: 6px;
	width: 100%;
	display: block;
}

/* CONFIRM POPUP =============================== */
/* Container */
#fileful-confirm {
	z-index: 999999998;
	background: rgba(50, 50, 50, 0.8);
	overflow: hidden;
	position: fixed;
	display: block;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
}

/* Message */
#fileful-confirm-msg {
	z-index: 999999999;
	background: white;
	transform: translateX(-50%) translateY(-50%);
	left: 50%;
	top: 50%;
	min-width: 200px;
	min-height: 150px;
	text-align: center;
	position: absolute;
	display: block;
	border-radius: 15px;
	padding: 10px 25px;
	margin: 0;
}

/* Text */
#fileful-confirm-msg .fileful-confirm-txt {
	font-size: 110%;
	font-weight: bold;
	text-align: center;
}

/* Button bar */
#fileful-confirm-msg div.fileful-confirm-buts {
	width: 100%;
	display: flex;
	justify-content: space-around;
}

/* Button */
#fileful-confirm-msg div.fileful-confirm-buts span {
	width: 80px;
	font-weight: bold;
	border-radius: 8px;
}

/* ANIMATIONS ============================== */
.fileful-pop {
	animation: fileful-pop 0.8s ease-in-out;
}
@keyframes fileful-pop {
	0% { opacity: 1; }
	50% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes fileful-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}