<%@ page
	
	contentType="text/css; charset=UTF-8"
	pageEncoding="UTF-8"
	
%><%




%>
@import url('https://fonts.googleapis.com/css?family=Play:400,700&display=swap');
body {
	font: 400 13px/1.4em 'Play', Verdana, sans-serif;
	color: #333;
}

header {
	position: relative;
	margin-bottom: 30px;
	padding: 30px 0 10px 0;
	border-bottom: 1px solid #ccc;
	transition: margin-bottom .5s ease;
}
header img {
	position: absolute;
	top: 20px;
	right: 0;
	width: auto;
	height: 115px;
}
@media screen and (max-width: 710px) {
	header img {
		display: none;
	}
}
h1 {
	position: relative;
	font-size: 72px;
	margin: 0;
	color: #376bc9;
	text-shadow: 3px 3px 5px rgba(0,0,0,.4);
}
h1 span {
	position: absolute;
	top: -5px;
	left: 50px;
	font-size: 30px;
	color: #376bc9;
	text-shadow: 3px 3px 5px rgba(0,0,0,.4);
	transition: all .5s ease;
}
@media screen and (max-width: 767.99px) {
	h1 {
		font-size: 9vw;
	}
}
@media screen and (max-width: 575.99px) {
	h1 {
		font-size: 12vw;
	}
}
@media screen and (max-width: 540px) {
	h1 span {
		top: -20px;
		left: 0;
	}
}
@media screen and (max-width: 345px) {
	h1 {
		font-size: 11vw;
	}
	h1 span {
		font-size: 6vw;
	}
}
h2 {
	font-size: 14px;
	margin: 0 90px 0 16px;
	color: #333;
}
@media screen and (max-width: 710px) {
	h2 {
		margin-right: 0;
	}
}

.container-fluid {
	max-width: 1140px;
}

.img-fluid {
	max-width: 100%;
	height: auto;
}

#tingstadeBad,
#sliteStrand,
#sliteStrandBy,
#info,
#weeks {
	position: absolute;
	top: -200px;
	right: 100px;
	width: 0;
	border: 1px solid #000;
	transform: rotate(-120deg);
	-webkit-box-shadow: 10px 10px 19px 0 rgba(0,0,0,0.53), inset 0 0 20px 0 rgba(0,0,0,0.3);
	-moz-box-shadow: 10px 10px 19px 0 rgba(0,0,0,0.53), inset 0 0 20px 0 rgba(0,0,0,0.3);
	box-shadow: 10px 10px 19px 0 rgba(0,0,0,0.53), inset 0 0 20px 0 rgba(0,0,0,0.3);
	opacity: 0;
	transition: all .5s ease;
}
#info,
#weeks {
	display: block;
	height: 100px;
	background-color: #53aafc;
}
.loaded_5 #tingstadeBad {
	top: 30px;
	right: 30px;
	width: 180px;
	transform: rotate(20deg);
	opacity: 0.8;
}
.loaded_4 #sliteStrand {
	top: 140px;
	right: 30px;
	width: 180px;
	transform: rotate(20deg);
	opacity: 0.8;
}
.loaded_3 #sliteStrandBy {
	top: 240px;
	right: 30px;
	width: 180px;
	transform: rotate(20deg);
	opacity: 0.8;
}
.loaded_2 #info {
	top: 340px;
	right: 30px;
	width: 180px;
	transform: rotate(20deg);
	opacity: 0.8;
}
.loaded_1 #weeks {
	top: 440px;
	right: 30px;
	width: 180px;
	transform: rotate(20deg);
	opacity: 0.8;
}
<%
int OFFSET_T    = 160 ;
int OFFSET_T_2p = 5 ;
int OFFSET_R    = 15 ;
int OFFSET_W    = 180 ;
%>
@media screen and (max-width: 1520px) {
	.loaded_1 header {
		margin-bottom: 150px;
	}
	.loaded_5 #tingstadeBad {
		top: <%= OFFSET_T %>px;
		right: <%= (4 * OFFSET_W) + OFFSET_R %>px;
	}
	.loaded_4 #sliteStrand {
		top: <%= OFFSET_T + OFFSET_T_2p %>px;
		right: <%= (3 * OFFSET_W) + OFFSET_R %>px;
	}
	.loaded_3 #sliteStrandBy {
		top: <%= OFFSET_T + OFFSET_T_2p %>px;
		right: <%= (2 * OFFSET_W) + OFFSET_R %>px;
	}
	.loaded_2 #info {
		top: <%= OFFSET_T + OFFSET_T_2p %>px;
		right: <%= OFFSET_W + OFFSET_R %>px;
	}
	.loaded_1 #weeks {
		top: <%= OFFSET_T + OFFSET_T_2p %>px;
		right: <%= OFFSET_R %>px;
	}
}
<%
/*
Minskat med 100px. 5 enheter E, D, C, B, A. A ska aldrid flyttas = 4 enheter:
Flytta px:
	A:   0
	B:  25 (100 * 1 / 4)
	C:  50 (100 * 2 / 4)
	D:  75 (100 * 3 / 4)
	E: 100 (100 * 4 / 4)
Scale 0-1: 930 - 600 = 330. 100 / 330 ~= 0.03. 
	ALLA (1 / (100 / 330)
*/


int i = 0 ;
int wMax = 930, wMin = 600, wDiff = (wMax - wMin) ;
double percMax = 1d, percMin = .6d  ; // Scale between

for (int w = wMax; w > wMin; w -= 10) {
	i++ ;
	double stepPerc = (10d / wDiff) ;// ~0.03
	double percBetween = (1d - (i * stepPerc)) ;// 0 - 1 ::
	double scale = percMin + (percMax - percMin) * percBetween ;//  %>
@media screen and (min-width: <%= w %>px) and (max-width: <%= w + 9.99d %>px) {
	#tingstadeBad,#sliteStrand,#sliteStrandBy,#info,#weeks { transform: rotate(-120deg) scale(<%= scale %>, <%= scale %>); }
	.loaded_5 #tingstadeBad,.loaded_4 #sliteStrand,.loaded_3 #sliteStrandBy,.loaded_2 #info,.loaded_1 #weeks { transform: rotate(20deg) scale(<%= scale %>, <%= scale %>); }<%
	int e = 0 ;
	for (String el : new String[]{ "#weeks", "#info","#sliteStrandBy","#sliteStrand","#tingstadeBad" }) {
		e++ ;
		int step = (i * 10) ;
		int moveX = (step * e / 5) - 15 ;
		int moveY = (int)(stepPerc * 50) ; %>
	<%= el %> { margin-right: -<%= moveX %>px; }<%
	} %>
}<%
} %>
@media screen and (max-width: <%= wMin %>px) {
	.loaded_1 header {
		margin-bottom: 30px;
	}
	.loaded_5 #tingstadeBad,.loaded_4 #sliteStrand,.loaded_3 #sliteStrandBy,.loaded_2 #info,.loaded_1 #weeks {
		transform: none;
		position: relative;
		top: 0;
		right: 0;
		float: left;
		margin: 20px;
		height: 100px;
	}
	.loaded_5 #tingstadeBad .img-fluid,
	.loaded_4 #sliteStrand .img-fluid,
	.loaded_3 #sliteStrandBy .img-fluid,
	.loaded_2 #info .img-fluid,
	.loaded_1 #weeks .img-fluid {
		width: 100%;
		height: 100px;
	}
}

#tingstadeBad:hover,
#tingstadeBad:focus,
#tingstadeBad:active,
#sliteStrand:hover,
#sliteStrand:focus,
#sliteStrand:active,
#sliteStrandBy:hover,
#sliteStrandBy:focus,
#sliteStrandBy:active,
#info:hover,
#info:focus,
#info:active,
#weeks:hover,
#weeks:focus,
#weeks:active {
	transform: rotate(10deg) scale(1.2);
	-webkit-box-shadow: 15px 15px 23px 0 rgba(0,0,0,0.47);
	-moz-box-shadow: 15px 15px 23px 0 rgba(0,0,0,0.47);
	box-shadow: 15px 15px 23px 0 rgba(0,0,0,0.47);
	opacity: 1;
}

.fancybox-show-caption .fancybox-caption {
	transition: opacity .25s ease 0s,visibility 0s ease 0s,background-color .3s ease;
	background-color: rgba(0, 0, 0, 0);
}
.fancybox-show-caption .fancybox-caption:hover,
.fancybox-show-caption .fancybox-caption:focus,
.fancybox-show-caption .fancybox-caption:active {
	background-color: rgba(0, 0, 0, 0.9);
}
.fancybox-caption {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}
#info h3,
#weeks h3,
.image-text h3 {
	font-size: 25px;
	line-height: 1em;
	margin: 0;
	color: #000;
	text-decoration: none;
	text-align: center;
}
.image-text h3 {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 50%;
	text-shadow: 0 0 3px #fff;
	transition: all .5s ease;
}

#info h3,
.image-text h3 {
	padding: 25px 0 0 0 !important;
}
#weeks h3 {
	padding: 30px 0 0 0 !important;
}

.image-text a:hover h3,
.image-text a:focus h3,
.image-text a:active h3 {
	opacity: 100%;
	text-shadow: 0 0 5px #fff;
}

.text-content {
	width: 80%;
	max-width: 850px;
}
.text-content h2 {
	font-size: 40px;
	margin: 0 0 0.4em 0;
	color: #376bc9;
	text-shadow: 2px 2px 3px rgba(0,0,0,.3);
	transition: font-size .5s ease;
}
.text-content h3 {
	font-size: 25px;
	margin: 0 0 0.4em 0;
	color: #376bc9;
	text-shadow: 1px 1px 2px rgba(0,0,0,.3);
	transition: font-size .5s ease;
}
@media screen and (max-width: 500px) {
	.text-content h2 {
		font-size: 34px;
	}
	.text-content h3 {
		font-size: 20px;
	}
}
.text-content .rent-info > span {
	display: block;
	font-size: 18px;
	padding-bottom: 4px;
}
.text-content .label {
	display: inline-block;
	width: 70px;
}
@media screen and (max-width: 500px) {
	.text-content .rent-info > span {
		font-size: 15px;
	}
	.text-content .label {
		display: block;
		width: auto;
	}
}
@media screen and (max-width: 770px) {
	.text-content .rent-info-season > span {
		font-size: 14px;
	}
	.text-content .rent-info-season .label {
		display: block;
		width: auto;
	}
}
.text-content .week {
	display: inline-block;
	width: 30px;
	padding: 2px 4px;
	text-align: center;
	background-color: #8ae19a;
}
.text-content .rent-info-explain .label {
	display: inline-block;
}
.text-content .rent-info-explain .week {
	display: inline-block;
	width: auto;
	margin-bottom: 3px;
}
.text-content .week.booked {
	background-color: #e18a8a;
	text-decoration: line-through;
}
.text-content .week.prel {
	background-color: #f1aeae;
	text-decoration: line-through;
}
.text-content .week.not-avail {
	background-color: #ddd;
	color: #777;
	text-decoration: line-through;
}

@media screen and (max-width: 440px) {
	.fancybox-content {
		padding: 20px;
	}
}

address {
	font-size: 11px;
	color: #aaa;
	transition: all .4s ease;
}
address:hover,
address:focus {
	font-size: 14.1px;
	color: #777;
}
address span {
	display: block;
	font-size: 11px !important;
	opacity: 0;
	transition: all .4s ease;
}
address:hover span,
address:focus span {
	opacity: 1;
}
