#frames div {
	position: fixed;
	z-index: 10;
}

#frames>.top {
	left: 50%;
	top: 0;
}

#frames>.bottom {
	left: 50%;
	bottom: 0;
}

#frames>.left {
	top: 50%;
	left: 0;
}

#frames>.right {
	top: 50%;
	right: 0;
}

@media screen and (max-width:1079px) {
	#frames>.top div {
		top: 10px;
		height: 44px;	
		background-image: url(../img/frame_top.png);
	}

	#frames>.top .left {
		left: 10px;
		width: 50px;
		background-position: left;
	}

	#frames>.top .center {
		position: absolute;
		left: -75px;
		width: 150px;
		top: 11px;
		height: 22px;
		background-position: center;
		background-size: 300% 100%;
	}

	#frames>.top .right {
		right: 10px;
		width: 50px;
		background-position: right;
	}

	#frames>.top .spacer-left {
		background-image: none;
		width: 50%;
		left: 0;
	}

	#frames>.top .spacer-left:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		top: 2px;
		height: 1px;
		left: 60px;
		right: 58px;
	}

	#frames>.top .spacer-right {
		background-image: none;
		width: 50%;
		right: 0;
	}

	#frames>.top .spacer-right:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		top: 2px;
		height: 1px;
		right: 60px;
		left: 58px;
	}

	#frames>.bottom {
		left: 0;
		right: 0;
	}


	#frames>.bottom div {
		position: absolute;
		bottom: 0;
		height: 47px;
		background-image: url(../img/frame_bottom.png);
	}

	#frames>.bottom .left {
		left: 10px;
		width: 50px;
		background-position: left;
	}

	#frames>.bottom .center {
		left: 50%;
	}

	#frames>.bottom .center::before {
		content: "";
		display: block;
		height: 47px;
		background-image: url(../img/frame_bottom.png);

		position: absolute;
		left: -65px;
		width: 130px;
		background-position: center;
	}

	#frames>.bottom .right {
		right: 0;
	}

	#frames>.bottom .right::before {
		content: "";
		display: block;
		height: 47px;
		background-image: url(../img/frame_bottom.png);

		position: absolute;
		right: 10px;
		width: 50px;
		background-position: right;
	}

	#frames>.bottom .spacer-left {
		background-image: none;
		width: 50%;
		left: 0;
	}

	#frames>.bottom .spacer-left:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		height: 1px;
		bottom: 24px;
		left: 60px;
		right: 65px;
	}

	#frames>.bottom .spacer-right {
		background-image: none;
		width: 50%;
		right: 0;
	}

	#frames>.bottom .spacer-right:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		height: 1px;
		bottom: 24px;
		right: 60px;
		left: 65px;
	}
}

@media screen and (min-width:1080px) {

	#frames>.top div {
		top: 10px;
		height: 44px;	
		background-image: url(../img/frame_top.png);
	}

	#frames>.top .left {
		left: 30px;
		width: 300px;
		background-position: left;
	}

	#frames>.top .center {
		position: absolute;
		left: -300px;
		width: 600px;
		background-position: center;
	}

	#frames>.top .right {
		right: 30px;
		width: 300px;
		background-position: right;
	}

	#frames>.top .spacer-left {
		background-image: none;
		width: 50%;
		left: 0;
	}

	#frames>.top .spacer-left:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		top: 2px;
		height: 1px;
		left: 330px;
		right: 300px;
	}

	#frames>.top .spacer-right {
		background-image: none;
		width: 50%;
		right: 0;
	}

	#frames>.top .spacer-right:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		top: 2px;
		height: 1px;
		right: 330px;
		left: 300px;
	}

	#frames>.bottom div {
		bottom: 0;
		height: 47px;
		background-image: url(../img/frame_bottom.png);
	}

	#frames>.bottom .left {
		left: 30px;
		width: 50px;
		background-position: left;
	}

	#frames>.bottom .center {
		position: absolute;
		left: -65px;
		width: 130px;
		background-position: center;
	}

	#frames>.bottom .right {
		right: 30px;
		width: 50px;
		background-position: right;
	}

	#frames>.bottom .spacer-left {
		background-image: none;
		width: 50%;
		left: 0;
	}

	#frames>.bottom .spacer-left:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		bottom: 24px;
		height: 1px;
		left: 80px;
		right: 65px;
	}

	#frames>.bottom .spacer-right {
		background-image: none;
		width: 50%;
		right: 0;
	}

	#frames>.bottom .spacer-right:before {
		content: "";
		display: block;
		position: absolute;
		background-color: #73C0FF;
		bottom: 24px;
		height: 1px;
		right: 80px;
		left: 65px;
	}
}

@media screen and (min-width:1080px) and (max-height:700px) {
	#frames>.left div {
		left: 20px;
		width: 70px;
		background-image: url(../img/frame_left.png);
	}

	#frames>.left .top {
		top: 60px;
		height: 120px;
		background-position: top;
	}

	#frames>.left .spacer-top {
		background-image: none;
		background-color: #73C0FF;
		left: 42px;
		width: 1px;
		top: 165px;
		bottom: 169px;
	}

	#frames>.left .spacer-bottom {
		background-image: none;
		border: solid #73C0FF;
		background: black;
		border-width: 32px 1px 1px 1px;
		left: 40px;
		width: 3px;
		position: absolute;
		top: -40px;
		height: 30px;
	}

	#frames>.left .bottom {
		bottom: 70px;
		height: 114px;
		background-position: bottom;
	}


	#frames>.right div {
		right: 20px;
		width: 70px;
		background-image: url(../img/frame_right.png);
	}

	#frames>.right .top {
		top: 60px;
		height: 120px;
		background-position: top;
	}

	#frames>.right .spacer-top {
		background-image: none;
		background-color: #73C0FF;
		right: 42px;
		width: 1px;
		top: 165px;
		bottom: 169px;
	}

	#frames>.right .spacer-bottom {
		background-image: none;
		border: solid #73C0FF;
		background: black;
		border-width: 1px 1px 32px 1px;
		right: 40px;
		width: 3px;
		position: absolute;
		top: -40px;
		height: 30px;
	}

	#frames>.right .bottom {
		bottom: 70px;
		height: 114px;
		background-position: bottom;
	}
}


@media screen and (min-width:1080px) and (min-height:701px) {
	#frames>.left div {
		left: 20px;
		width: 70px;
		background-image: url(../img/frame_left.png);
	}

	#frames>.left .top {
		top: 60px;
		height: 60px;
		background-position: top;
	}

	#frames>.left .spacer-top {
		background-image: none;
		height: 50%;
		top: 0;
	}

	#frames>.left .spacer-top:before {
		content: "";
		display: block;
		position: absolute;
		background-image: none;
		background-color: #73C0FF;
		left: 16px;
		width: 1px;
		top: 120px;
		bottom: 265px;
	}

	#frames>.left .spacer-bottom {
		background-image: none;
		height: 50%;
		bottom: 0;
	}

	#frames>.left .spacer-bottom:before {
		content: "";
		display: block;
		position: absolute;
		background-image: none;
		background-color: #73C0FF;
		left: 27px;
		width: 1px;
		top: 265px;
		bottom: 130px;
	}

	#frames>.left .middle {
		position: absolute;
		top: -265px;
		height: 530px;
		background-position: 0 center;
	}

	#frames>.left .bottom {
		bottom: 70px;
		height: 60px;
		background-position: bottom;
	}


	#frames>.right div {
		right: 20px;
		width: 70px;
		background-image: url(../img/frame_right.png);
	}

	#frames>.right .top {
		top: 60px;
		height: 60px;
		background-position: top;
	}

	#frames>.right .spacer-top {
		background-image: none;
		height: 50%;
		top: 0;
	}

	#frames>.right .spacer-top:before {
		content: "";
		display: block;
		position: absolute;
		background-image: none;
		background-color: #73C0FF;
		right: 16px;
		width: 1px;
		top: 120px;
		bottom: 265px;
	}

	#frames>.right .spacer-bottom {
		background-image: none;
		height: 50%;
		bottom: 0;
	}

	#frames>.right .spacer-bottom:before {
		content: "";
		display: block;
		position: absolute;
		background-image: none;
		background-color: #73C0FF;
		right: 27px;
		width: 1px;
		top: 265px;
		bottom: 130px;
	}

	#frames>.right .middle {
		position: absolute;
		top: -265px;
		height: 530px;
		background-position: 0 center;
	}

	#frames>.right .bottom {
		bottom: 70px;
		height: 60px;
		background-position: bottom;
	}
}