@-webkit-keyframes file_grow {
	0% { max-height: 0px; padding: 0px 10px; }
	100% { max-height: 100px; }
}

@keyframes file_grow {
	0% { max-height: 0px; padding: 0px 10px; }
	100% { max-height: 100px; }
}

@-webkit-keyframes shadow_grow {
	0% { -webkit-transform: scale(0); transform: scale(0); }
	100% { -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes shadow_grow {
	0% { -webkit-transform: scale(0); transform: scale(0); }
	100% { -webkit-transform: scale(1); transform: scale(1); }
}

.bfi-container {
	display: block;
	position: relative;
	width: 100%;
	height: unset;
	margin: 0;
	padding: 0;
	border-radius: 5px;
	background: rgb(240, 240, 240);
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	-webkit-transition: max-height 1s ease;
	transition: max-height 1s ease;
}

.bfi-container.expanded {
	border: 4px dashed gray;
}

.bfi-container * {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

.bfi-converted,
.bfi-converted-multi {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.bfi-container:not(.expanded) .bfi-converted,
.bfi-container:not(.expanded) .bfi-converted-multi {
	z-index: -10;
}

.bfi-container.expanded .bfi-converted,
.bfi-container.expanded .bfi-converted-multi {
	z-index: 20;
}

.bfi-label,
.bfi-label-selected {
	display: inline-block;
	width: 100%;
	height: unset;
	margin: 0;
	text-align: center;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
	z-index: 10;
}

.bfi-container:not(.expanded) .bfi-label,
.bfi-label-selected {
	padding: 10px 20px;
}

.bfi-container.expanded .bfi-label {
	padding: 40px 20px;
}

.bfi-label {
	-webkit-transition: padding .25s ease;
	transition: padding .25s ease;
}

.bfi-clear,
.bfi-label span {
	cursor: pointer;
	text-decoration: underline;
}

.bfi-file {
	display: inline-block;
	width: -o-calc(100% - 20px);
	width: calc(100% - 20px);
	padding: 6px 10px;
	background: rgb(100, 100, 100);
	background: -webkit-gradient(linear, left bottom, left top, from(rgba(90, 90, 90, 1)), color-stop(75%, rgba(110, 110, 110, 1)));
	background: linear-gradient(0deg, rgba(90, 90, 90, 1) 0%, rgba(110, 110, 110, 1) 75%);
	color: white;
	border-radius: 7px;
	z-index: 10;
	line-height: 1em;
	text-align: left;
	-webkit-animation: file_grow 0.7s ease;
	        animation: file_grow 0.7s ease;
}

.bfi-converted ~ .bfi-file {
	margin: 10px;
}

.bfi-converted-multi ~ .bfi-file {
	margin: 0 10px 10px 10px;
}

.bfi-file i {
	font-style: normal;
	font-size: 0.8em;
	color: rgb(180, 180, 180);
}

.bfi-file .bfi-clear {
	position: absolute;
	right: 25px;
	top: calc(50% - 2px);
	-webkit-transform: translateY(-50%);
	        transform: translateY(-50%);
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
}

.bfi-shadow-container {
	position: absolute;
	display: none;
	margin: 0;
	padding: 0;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	clip: rect(0, auto, auto, 0);
	z-index: 15;
}

.bfi-container.expanded .bfi-shadow-container {
	display: unset;
}

.bfi-shadow {
	position: absolute;
	display: none;
	width: 350px;
	height: 350px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	-webkit-transition: left 0.1s ease, top 0.1s ease;
	transition: left 0.1s ease, top 0.1s ease;
}

.bfi-container.hovering .bfi-shadow {
	display: unset;
	-webkit-animation: shadow_grow 0.5s ease;
	        animation: shadow_grow 0.5s ease
}