html {
	height:100%;
	min-height:100%;
}

body {
    background-image: url('img/ui/background-enhanced.jpg');
    background-size: cover;/*
	background-repeat: no-repeat;
	background-position: center center;*/
	background-attachment: fixed;
	margin: 0;
	min-height:100%;
}

h1 {
	margin: 1em 0 1em 0;
}

h2 {
	margin: 2em 0 1em 0;
}

div.clr {
	clear: both;
}

div.clr-right {
	clear: right;
}

a {
	text-decoration: none;
	color: blue;
}

a:hover {
	color: white;
}

div.float-wrapper {
	display: flex;
}

div.footer {
	text-align: center !important;
	font-size: 12px !important;
}

div.bubble, div.infobubble, div.topic {
	text-shadow: 0 0 0.75em black;
}

/* ################ Main page ################ */
div.content {
	margin: auto;
	margin-top: 42px;
	font-size: 0;
	font-family: sans-serif;
}

div.main.content {
	width: 536px;
}

div.topics {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

div.topics a {
	text-decoration: none;
}

div.topics {
	display: flex;
	flex-direction: row;
}

div.topic.content {
	display: flex;
	flex-direction: column;
	min-width: 800px;
	width: 70%;
	max-width: 1200px;
}

div.topic.content.background {
	background-color: rgba(0, 0, 0, 0.6);
	box-shadow: 0px 0px 20px 15px rgba(0, 0, 0, 0.6);
	border-radius: 16px;
}

div.bubble {
	display: inline-block;
	border: 3px solid black;
	border-radius: 16px;
	text-align: center;
	margin: 3px;
	overflow: hidden;

	color:white;
	font-size: 24px;
	background-color: rgba(0, 0, 0, 0.6);
}

div.main {
	box-shadow: 0px 0px 20px 20px rgba(0, 0, 0, 0.4);
	background-color: rgba(0, 0, 0, 0.4);
	border-radius: 16px;
}

div.button div.text {
	display: flex;
	align-items: center;
	justify-content: center;
	
	position: absolute;
	z-index: 5;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

div.button:hover span.text {
	opacity: 0.20;
}

div.button {
	vertical-align: middle;
	cursor: pointer;
	position: relative;
}
div.button:not(:hover) {
	filter: grayscale(50%); 
	-webkit-filter: grayscale(0.50); 
	-webkit-filter: grayscale(50%); 
	-moz-filter: grayscale(50);
}

div.titlebubble {
	position: relative;
	width: 524px;
	height: 256px;
	background-image: url('img/ui/title.png');
}
div.titlebubble > div {
	position: absolute;
}
div.titlebubble > div.kosak {
    top: 30px;
    width: 100%;
    font-size: 42px;
}
div.titlebubble > div.desciption {
	line-height: 256px;
    width: 100%;
    text-align: center;
}
div.titlebubble > div.campdate {
	bottom:5px;
	left:5px;
}
div.titlebubble > div.price {
	bottom:5px;
	right:5px
}


div.infobubble {
	position: relative;
	width: 524px;
	/*background-image: url('img/ui/title.clouds.jpg');*/
	font-size: 14px;
	color:white;
}


@media screen and (max-width: 1024px), screen and (max-height: 800px) {
	div.topic.content.background {
		background-color: rgba(0, 0, 0, 0.6);
		box-shadow: none;
		border-radius: 0px;
	}
	
	div.topic.content {
		width: initial;
	}
	
	div.content {
		margin-top: 0px;
	}
	
	div.titlebubble {
		height: 125px;
		background-position-y: 170px;
	}
	
	div.titlebubble > div.desciption {
		line-height: 130px;
	}
	
	div.titlebubble > div.kosak {
		top: 2px;
		font-size: 36px;
	}
	
	div.infobubble {
		font-size: 12px;
	}
}


/* ######## Buttons ######## */

div.big.button {
	width: 256px;
    height: 256px;
    line-height: 256px;
}
div.small.button {
	display: flex;
	width: 122px;
	height: 122px;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background-image: url('img/ui/small.png');
	background-size: cover;
}
div.tiny.button {
	display: flex;
	width: 92px;
	height: 92px;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

div.button.kids {
	background-image: url('img/ui/kids-series-00.jpg'), url('img/ui/kids-series-01.jpg'), url('img/ui/kids-series-02.jpg'), url('img/ui/kids-series-03.jpg'), url('img/ui/kids-series-04.jpg');
}
div.button.teens {
	background-image: url('img/ui/teen-series-00.jpg'), url('img/ui/teen-series-01.jpg'), url('img/ui/teen-series-02.jpg'), url('img/ui/teen-series-03.jpg'), url('img/ui/teen-series-04.jpg'), url('img/ui/teen-series-05.jpg'), url('img/ui/teen-series-06.jpg'), url('img/ui/teen-series-07.jpg'), url('img/ui/teen-series-08.jpg'), url('img/ui/teen-series-09.jpg'), url('img/ui/teen-series-10.jpg');
}

div.small.button.photos {
	background-image: url('img/ui/photos-00.jpg'), url('img/ui/photos-01.jpg'), url('img/ui/photos-02.jpg'), url('img/ui/photos-03.jpg'), url('img/ui/photos-04.jpg'), url('img/ui/photos-05.jpg'), url('img/ui/photos-06.jpg');
}

div.small.button.camp {
	background-image: url('img/ui/camp-00.jpg'), url('img/ui/camp-01.jpg'), url('img/ui/camp-02.jpg'), url('img/ui/camp-03.jpg'), url('img/ui/camp-04.jpg'), url('img/ui/camp-05.jpg'), url('img/ui/camp-06.jpg');
}

div.small.button.teen-team {
	background-image: url('img/ui/teen-team-00.jpg'), url('img/ui/teen-team-01.jpg'), url('img/ui/teen-team-02.jpg'), url('img/ui/teen-team-03.jpg'), url('img/ui/teen-team-04.jpg');
}

div.small.button.teen-about {
	background-image: url('img/ui/teen-about-00.jpg'), url('img/ui/teen-about-01.jpg'), url('img/ui/teen-about-02.jpg');
}

div.small.button.kids-team {
	background-image: url('img/ui/kids-team-00.jpg'), url('img/ui/kids-team-01.jpg'), url('img/ui/kids-team-02.jpg'), url('img/ui/kids-team-03.jpg');
}

div.small.button.ymca {
	background-image: url('img/ui/ymca-00.jpg'), url('img/ui/ymca-01.jpg'), url('img/ui/ymca-02.jpg');
}

div.small.button.application {
	background-image: url('img/ui/application-00.jpg'), url('img/ui/application-01.jpg'), url('img/ui/application-02.jpg'), url('img/ui/application-03.jpg'), url('img/ui/application-04.jpg');
}

/* 
 * ################ TOPIC ###############
 */

div.topic-content {
	width: 100%;
}

div.topic-content-flex {
	display: flex;
	flex-direction: column;
	
}

/* list fix */
div.topic ul,ol,dl {
	overflow: hidden;
}

/* #### text #### */
div.topic p {
	margin: 0 0 0.5em 0;
	/*text-indent: 2em;*/
}

/* #### Outline #### */
div.outline {
	float: right;
	margin: 1em 0 0 1em;
	text-align: left;
	padding: 8px;;
}

/* #### images #### */
div.img.in-text {
	text-align: center;
	font-size: 12px;
}

div.img.in-text img {
	width: 100%;
}

div.img.in-text.left {
	float: left;
	margin: 1em 1em 1em 0;
}

div.img.in-text.right {
	float: right;
	margin: 1em 0 1em 1em;
}

div.topic .poster img {
	width: 512px;
}

div.decoration {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: -1000;
	
	display: flex;
	flex-direction: row;
	
	background-image: url('img/ui/background-enhanced.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: repeat;
}

@media screen and (max-width: 1024px), screen and (max-height: 800px) {
	div.decoration {
		display: none !important;
	}
	
	div.topic {
		font-size: 14px !important;
	} 
}

div.decoration .pane {
	background-size: contain;
	background-repeat: repeat-y;
	flex-grow: 1;
	max-width: 12.5%;
}

div.decoration .left.pane {
	background-position: left center;
}

div.decoration .right.pane {
	background-position: left center;
	transform: scaleX(-1);
}

div.decoration .pane.teens.team {
	background-image: url('img/decorations/teen-team.png');
}

div.decoration .pane.teens.about {
	background-image: url('img/decorations/teen-about.png');
}

div.decoration .pane.kids.about {
	background-image: url('img/decorations/kids-about.png');
}

div.content-top {
	display: flex;
	flex-direction: column;
	
	background-image: url('img/ui/title.png');
    background-size: cover;
    background-position: center;
}

div.content-nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 2px 10px;
	
	font-size: 20px;
}

div.content-nav > a {
	cursor: pointer;
	text-decoration: none;
	color: white;
}
div.content-nav > a:hover{
	color:black;
	text-shadow: 0px 0px 0.75em white;
}

div.content-middle {
/*	display: flex;
	flex-direction: row;*/
}

div.menu {
	float: left;
	display: flex;
	flex-direction: column;
	margin-right: 1em;
	margin-bottom: 1em;
}

div.menu div.bubble {
	margin-left: 0;
}

div.menu a {
	text-decoration: none;
}

div.topic.wrapper {
	flex-grow: 1;
}

div.topic {
	display: flex;
	flex-direction: row;
	text-align: justify;
	position: relative;
	border: 3px solid transparent;
	
	font-size: 16px;
	color:white;
}

div.menu > div {
	display: block;
}

div.headline {
	width: 100%;
    line-height: 120px;
	font-size: 30px;
}

/* ######## Topic - teen - Team ######## */
div.members {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	clear: both;
}

div.member {
	flex-grow: 1;
	width: 400px;
	margin-right: 1em;
	clear: right;
}

div.member div.about {
	display: flex;
	flex-direction: row;
	position: relative;
}

div.member div.about div.text {
	width: 75%;
}
div.member div.about div.image {
	margin: 1em;
	width: 25%;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center center;
}

/* ######## Topic - teen - about ######## */
div.topic.teens div.info {
/*	display: flex;*/
}

div.topic.teens div.info .activities {
	min-width: 40%;
}

div.topic.teens div.theme {
	float: right;
	width: 512px;
	margin-left: 1em;
	margin-right: 1em;
}

div.topic.teens div.theme video {
	width: 100%;
}

div.topic.teens div.theme h1 {
	text-align: center;
}

div.topic.teens div.packing ul {
	overflow: auto;
}

div.topic.teens div.packing img {
	width: 30%;
	margin-left: 1em;;
}	

/* ######## Topic - kids - about ######## */
div.topic.kids div.info {
/*	display: flex;*/
}

div.topic.kids div.info .activities {
	min-width: 40%;
}

div.topic.kids div.theme {
	float: right;
	margin-left: 1em;
}

div.topic.kids div.theme h1 {
	text-align: center;
}

div.topic.kids div.packing ul {
	overflow: auto;
}

div.topic.kids div.packing img {
	width: 30%;
	margin-left: 1em;;
}	

/* ######### Topic - camp ##############*/
div.outline a {
	display: block;
	text-decoration: none;
	color: lightblue;
}

div.outline a h1, div.outline a h2, div.outline a h3 {
	font-size: 13px;
	margin: 0;
	font-weight: normal;
}

div.outline a:hover {
	color: white;
}

div.outline a h2 {
	margin-left: 1em;
}
div.outline a h3 {
	margin-left: 2em;
}

/* #### Map #### */
div.map {
	position: relative;
	clear: both;
}

div.map a.copyright {
	position: absolute;
	bottom: 0;
	right: 0;
	color: gray;
	cursor: pointer;
	text-decoration: none;
}

div.map a.copyright:hover {
	color: white;
}

div.map a.target {
	position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.5);
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	text-shadow: 0px 0px 0.75em rgba(0, 0, 0, 0.5);
}

div.map a.target div {
	margin-top: -20px;
	text-align: center;
}

div.map a.target:hover {
	cursor: pointer;
	border: 1px solid white;
	box-shadow: 0 0 3vh white;
	color: white;
}

div.map a.target.bower {
	top: 20.5%;
	left: 29.8%;
	width: 2.5%;
	height: 4.5%;
}

div.map a.target.kids-camp {
	top: 45.8%;
    left: 52.2%;
    width: 10%;
    height: 17%;
}

div.map a.target.teens-camp {
	top: 43%;
	left: 26%;
	width: 10%;
	height: 16%;
}

div.map a.target.kitchen {
	top: 44%;
	left: 86%;
	width: 6%;
	height: 10%;
}

div.map a.target.showers {
	top: 43.5%;
	left: 71%;
	width: 3%;
	height: 5%;
}

div.map a.target.trebel {
	top: 0;
	left: 15%;
}

div.map a.target.svahy {
    left: 0;
    top: 61%;
    writing-mode: vertical-rl;
}

div.map a.target.vizka {
	bottom: 0;
	left: 9%;
}

div.map a.target.vlcihora {
	top: 1.5em;
	right: 0;
	writing-mode: vertical-lr;
}

div.map a.target.cernosin {
	top: 0;
	left: 42%;
}

div.map a.target.zahori {
	top: 68%;
	right: 0;
	writing-mode: vertical-lr;
}

div.map a.target.volfstejn {
	top: 0;
	right: 1.5em;
}

/* ######### Topic - application ##############*/

div.topic.application div.application-form-wrapper {
	width: calc(100% - 122px - 9px - 1em);
	display: inline-flex;
}

/* ######### Topic - gallery ################## */
div.gallery {
    flex-direction: row;
    flex-wrap: wrap;	
}

div.gallery div.image-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	margin: 1em;
	font-size: 0.75em;
	text-align: center;
}

div.gallery div.image-box div.image {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 128px;
	height: 128px;
}

div.gallery div.image-box span.title {
	width: 128px;
}

div.gallery div.image-box div.viewer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: rgba(0,0,0,0.75);
	display: none;
	cursor: pointer;
}
