/*/////////////////////////////////////////
// BEGIN: General
/////////////////////////////////////////*/
.background {
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	justify-content: stretch;
	align-items: stretch;
	pointer-events: none;
	z-index: 0;
}

.background__container {
	display: flex;
	margin: 1px;
	flex-grow: 1;
	justify-content: stretch;
	align-items: stretch;	
	border: 0.8px solid transparent;
	border-image-source: linear-gradient(0deg, #A453EA 5%, transparent 25%, transparent 75%, #A453EA 95%);
	border-image-width: 100%;
	border-image-slice: 35%;
	border-image-outset: 0;
	transition: margin 0.5s linear;
}

.background__gradient {
	opacity: 0.9;
	position: absolute;
	top: 2px;
	left: 2px;
	width: calc(100% - 2px);
	height: 170px;
	background: linear-gradient(180deg, #A453EA 4.72%, transparent 58.02%);
	background-blend-mode: color-dodge;
	border-radius: 2px;
	mix-blend-mode: hard-light;
}

.background__gradient--right {
	left: auto;
	right: 2px;
	width: 170px;
	height: calc(100% - 2px);
	background: linear-gradient(270deg, #A453EA 4.72%, rgba(164, 83, 234, 0) 58.02%);
}

.background__gradient--bottom {
	top: auto;
	bottom: 2px;
	background: linear-gradient(0deg, #A453EA 4.72%, rgba(164, 83, 234, 0) 58.02%);
}

.background__gradient--left {
	width: 170px;
	height: calc(100% - 2px);
	background: linear-gradient(90deg, #A453EA 4.72%, rgba(164, 83, 234, 0) 58.02%);
}

.background__scanlines {
	opacity: 0.8;
	flex-grow: 1;
	background: url('../images/scan-lines.png'), radial-gradient(50% 50% at 50% 50%, rgba(25, 7, 43, 1) 0%, #2C193E 100%);
	background-size: 740px;
	background-blend-mode: color-burn, normal, normal;
	backdrop-filter: blur(7px);
}

.background_edge {
	position: absolute;
	width: 51px;
	height: 51px;
	border: 2px none #A453EA;
	box-shadow: 0px 0px 6.4px #A453EA, inset 0px 0px 0.8px rgba(255, 255, 255, 0.25);
	transition: transform 0.5s linear, border-color 0.5s linear;
	transform: scale(1);
	z-index: 0;
}

.background_edge--horizontal {
	height: 0;
	border-top: 2px solid #A453EA;
	transform-origin: 0% 0;
}

.background_edge--vertical {
	width: 0;
	border-left: 2px solid #A453EA;
	transform-origin: 0% 0%;
}

.background_edge--top-right {
	position: absolute;
	top: 0;
	right: 0;
	transform-origin: 100% 0%;
}

.background_edge--bottom-right {
	position: absolute;
	bottom: 0;
	right: 0;
	transform-origin: 100% 100%;
}

.background_edge--bottom-left {
	position: absolute;
	bottom: 0;
	left: 0;
	transform-origin: 0% 100%;
}

/*/////////////////////////////////////////
// BEGIN: Media Queries
/////////////////////////////////////////*/

/* BEGIN: Hovers
-----------------------------------*/
@media screen and (min-width: 961px) {

	.tile:hover .background .background_edge {
		border-color: #DAAEFF;
	}

	.tile:hover .background .background_edge--horizontal {
		transform: scaleY(1.5);
	}

	.tile:hover .background .background_edge--vertical {
		transform: scaleX(1.5);
	}
}

/* BEGIN: iPad / Mobile */
@media only screen and (max-width: 992px) {

	.background_edge {
		width: 38px;
		height: 38px;
	}
	
	.background_edge--horizontal {
		height: 0;
	}

	.background_edge--vertical {
		width: 0;
	}
	
	.background__scanlines {
		background: radial-gradient(50% 50% at 50% 50%, rgba(25, 7, 43, 1) 0%, #2C193E 100%), url('../images/scan-lines.png');
		background-blend-mode: multiply, normal;
		background-size: 500px;
	}
}
