/*
Main Colors

Red: rgb(204, 33, 22)
Gray: #303030
White: #FFFFFF

*/

/*Most general stuff*/

body {
	overflow: hidden;
}

body.ModalOpen {
	overflow: hidden;
}

/*All menu related things*/

#side_bar {
	position:fixed;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	top:0px;
	height:100%;
	width:250px;
	background: #ffffff;
	z-index:100;
	-webkit-box-shadow: -2px 0px 10px rgba(0,0,0,0.25);
	-moz-box-shadow: -2px 0px 10px rgba(0,0,0,0.25);
	-o-box-shadow: -2px 0px 10px rgba(0,0,0,0.25);
	box-shadow: -2px 0px 10px rgba(0,0,0,0.25);
	-webkit-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
	-webkit-transition: all 0.5s;
	border-left: 1px solid;
	border-color: rgba(0,0,0,0.25);
}

.side_bar_show {
	right: 0px;
}

.side_bar_hidden {
	right: 0px;
}

#side_bar_modal {
	position:fixed;
	top:0px;
	right:0px;
	height:100%;
	width:100%;
	background: rgb(1, 1, 1);
	-webkit-transition: all 0.5s;
	z-index: 99;
}

.side_bar_modal_show {
	opacity: 0;
	pointer-events: none;
}

.side_bar_modal_hidden {
	opacity: 0;
	pointer-events: none;
}

#menu_sandwich {
	position: fixed;
	top: 0px;
	right: 7px;
	width: 50px;
	height: 50px;
	margin: 0px;
	z-index: 99;
}

#logo_image {
	position:relative;
	top:0px;
	left:0px;
	width:250px;
	height:250px;
	background: #ffffff;
}

#social_icons {
	bottom: 0px;
	right: 0px;
	margin: 15px;
	align-self: flex-end;
}

.social_button {
	margin: 10px;
	font-size: 24px;
	color: #303030;
}

.social_button:hover {
	color: rgb(204, 33, 22);
}

.new_website_note {
	border: rgb(204, 33, 22) 2px dashed;
	background-color: white;
	color: #303030;
	border-radius: 5px;
	padding: 10px;
	font-family: "Adamina";
	margin: 10px;
}

/*All content selector things*/

	#selector_bar {
		white-space: nowrap;
		position: fixed;
		left: 0px;
		top: 0px;
		width:100%;
		height:50px;
		z-index:5;
		background-color: #ffffff;
		-webkit-box-shadow: 0px 0px 7px rgba(0,0,0,0.25);
		-moz-box-shadow: 0px 0px 7px rgba(0,0,0,0.25);
		-o-box-shadow: 0px 0px 7px rgba(0,0,0,0.25);
		box-shadow: 0px 0px 7px rgba(0,0,0,0.25);
	}

	#sub_selector_bar {
		white-space: nowrap;
		position: relative;
		top:0px;
		width: calc(100% - 57px);
		width: -webkit-calc(100% - 57px);
		height:	50px;
		z-index:5;
		-webkit-transition: opacity 0.5s;
		-moz-transition: opacity 0.5s;
		-o-transition: opacity 0.5s;
		transition: opacity 0.5s;
		-webkit-transition: max-height 1s;
		-moz-transition: max-height 1s;
		-o-transition: max-height 1s;
		transition: max-height 1s;
	}

	.selector_bar_item {
		display: inline-block;
		margin-top: 0px;
		margin-bottom: 0px;
		margin-right: 15px;
		margin-left: 15px;
		padding-top: 18px;
		padding-left: 5px;
		padding-right: 5px;
		padding-bottom: 2px;
		color: #303030;
		font-family: 'Josefin Slab', sans-serif;
		font-size: 18pt;
		text-align: center;
		height: 30px;
		cursor:default;
		-webkit-transition: background-color 0.5s;
		-moz-transition: background-color 0.5s;
		-o-transition: background-color 0.5s;
		transition: background-color 0.5s;
	}

	.selector_bar_item:hover {
		border-bottom: 2px solid;
		padding-bottom: 0px;
		border-color: rgb(204, 33, 22);
	}
	
	.bar_item_selected {
		background-color: rgb(204, 33, 22);
		color: white;
		height: 30px;
	}

	#bar_item_dropdowner {
		display: none;
		margin-top: 0px;
		margin-bottom: 0px;
		margin-right: 20px;
		margin-left: 20px;
		padding-top: 20px;
		color:#303030;
		font-family: 'Josefin Slab', sans-serif;
		font-size: 18pt;
		text-align: center;
		height:29px;
		cursor:default;
	}

	#drop_down_modal {
		position:fixed;
		opacity: 0;
		pointer-events: none;
		top:0px;
		right:0px;
		height:100%;
		width:100%;
		background: rgb(1, 1, 1);
		-webkit-transition: all 0.5s;
		z-index: 89;
	}

	.drop_down_modal_show {
		opacity: 0 !important;
		pointer-events: auto !important;
	}

	@media only screen and (max-width: 700px) {
		.selector_bar_item {
			display: block;
			text-align: left;
			margin-top: 20px;
			margin-bottom: 20px;
		}


		#sub_selector_bar {
			display: inline_block;
			pointer-events: none;
			background-color: white;
			-webkit-box-shadow: #000000 0px 1px 5px;
			position: fixed;
			top: 10px;
			width: auto;
			height: auto;
			max-height: 0px;
			overflow: hidden;
			left: 10px;
			white-space: wrap;
			border-radius: 5px;
			z-index: 90;
		}

		.drop_down_modal_show {
			opacity: 0.5 !important;
			pointer-events: auto !important;
		}

		#bar_item_dropdowner {
			display: inline-block;
		}
	}

	.sub_selector_bar_show {
		max-height: 500px !important;
		pointer-events: auto !important;
	}

/*End of all Content Selector things*/

#content_wrapper {
	position: fixed;
	top: 50px;
	right: 250px;
	left: 0px;
	height: calc(100vh - 50px);
	height: -webkit-calc(100vh - 50px);
	width: calc(100vw - 250px);
	width: -webkit-calc(100vw - 250px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	z-index:0;
}

@media only screen and (max-width: 1000px) {
	#content_wrapper {
		position: fixed;
		top: 50px;
		right: 250px;
		left: 0px;
		height: calc(100vh - 50px);
		height: -webkit-calc(100vh - 50px);
		width: 100vw;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		z-index:0;
	}
}

@media only screen and (max-width: 800px) {
	#content_wrapper {
		position: fixed;
		top: 50px;
		right: 0px;
		left: 0px;
		height: calc(100vh - 50px);
		height: -webkit-calc(100vh - 50px);
		width: 100vw;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		z-index:0;
	}
}

.content_wrapper_open {
	overflow: visible;
}

.content_wrapper_closed {
	overflow: hidden;
}

#list_wrapper {
	position: absolute;
	top: 0px;
	left: calc(50% - 400px);
	left: -webkit-calc(50% - 400px);
	width: 800px;
	height: 100%;
}

@media only screen and (max-width: 800px) {
	#list_wrapper {
		position: absolute;
		top: 0px;
		left: calc(50% - 200px);
		left: -webkit-calc(50% - 200px);
		width: 400px;
	}
}
@media only screen and (max-width: 400px) {
	#list_wrapper {
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100vw;
	}
}


#the_title {
	position:relative;
	top:-30px;
	cursor:default;
}

.generic_obj {
	/*float: left;*/
	position:absolute;
	top: 0px;
	left: 0px;
	margin: 24px;
	padding: 25px;
	height: 500px;
	width: 300px;
	background-color: #ffffff;
	-webkit-filter: grayscale(1);
	-moz-filter: grayscale(1);
	-o-filter: grayscale(1);
	filter: grayscale(1);
	-webkit-box-shadow: 0px 0px 0px rgba(0,0,0,0);
	-moz-box-shadow: 0px 0px 0px rgba(0,0,0,0);
	-o-box-shadow: 0px 0px 0px rgba(0,0,0,0);
	box-shadow: 0px 0px 0px rgba(0,0,0,0);
	border: 1px solid;
	border-color: rgba(0,0,0,0);
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
	cursor: pointer;
}

@media only screen and (max-width: 400px) {
	.generic_obj {
		/*float: left;*/
		position:absolute;
		top: 0px;
		left: 0px;
		margin: 6vw;
		padding: 6.25vw;
		height: 125vw;
		width: 75vw;
		background-color: #ffffff;
		-webkit-filter: grayscale(1);
		-moz-filter: grayscale(1);
		-o-filter: grayscale(1);
		filter: grayscale(1);
		-webkit-box-shadow: 0px 0px 0px rgba(0,0,0,0);
		-moz-box-shadow: 0px 0px 0px rgba(0,0,0,0);
		-o-box-shadow: 0px 0px 0px rgba(0,0,0,0);
		box-shadow: 0px 0px 0px rgba(0,0,0,0);
		border: 1px solid;
		border-color: rgba(0,0,0,0);
		-webkit-transition: all 0.5s;
		-moz-transition: all 0.5s;
		-o-transition: all 0.5s;
		transition: all 0.5s;
	}
}

.generic_obj:hover {
	-webkit-filter: grayscale(0);
	-moz-filter: grayscale(0);
	-o-filter: grayscale(0);
	filter: grayscale(0);
	-webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.25);
	-moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.25);
	-o-box-shadow: 0px 0px 5px rgba(0,0,0,0.25);
	box-shadow: 0px 0px 5px rgba(0,0,0,0.25);
	border-color: rgba(0,0,0,0.25);
}

.menu_item {
	margin: 0px;
	padding:20px;
	color:#303030;
	font-family: 'Josefin Slab', sans-serif;
	font-size: 18pt;
	text-align: left;
	cursor:pointer;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;

}

.menu_item:hover {
	background-color: rgba(0,0,0,0.1);
	border-right: 5px solid;
	border-color: rgb(204, 33, 22);
}

.a_thumbnail {
	width:100%;
	height:60%;
	background: url(index_resouces/logo.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.a_title {
	font-family: 'Josefin Slab', sans-serif;
	color: #303030;
	font-weight: 700;
	font-size: 48px;
	white-space: no-wrap;
	text-overflow: ellipsis;
	margin: 0px;
	margin-top: 10px;
	text-align: right;
	-webkit-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
}

@media only screen and (max-width: 400px) {
	.a_title {
		font-size: 12vw;
	}
}

.a_caption {
	text-align: justify;
    line-height: 27.5px;
    /* 4 times the line-height to show 4 lines */
    height: 110px;
    overflow: hidden;
	-webkit-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
}

@media only screen and (max-width: 400px) {
	.a_caption {
		text-align: justify;
		line-height: 6.875vw;
		/* 4 times the line-height to show 4 lines */
		height: 27.5vw;
	}
}

.a_caption::after {
		content: "";
		font-weight: bold;
		position: absolute;
		bottom: 48px;
		/*30px for firefox*/
		right: 0px;
		width: 50px;
		height: 30px;
		padding: 0 20px 1px 45px;
		background: url("ellipsis_bg.png") repeat-y;
}

@-moz-document url-prefix() {
	.a_caption::after {
			bottom: 30px;
	}	
}

@media only screen and (max-width: 400px) {
	.a_caption::after {
		content: "";
		font-weight: bold;
		position: absolute;
		bottom: 10vw;
		right: 0;
		padding: 0 20px 1px 45px;
		background: url("ellipsis_bg.png") repeat-y;
	}
}

p {
	font-family: 'Adamina', serif;
	color: #303030;
	font-weight: 400;
	margin: 0px;
	margin-top:10px;
	text-align: justify;
}

h2 {
	font-family: 'Josefin Slab', sans-serif;
	color: #303030;
	font-weight: 700;
	font-size:36pt;
	margin:0px;
	margin-top:10px;
}

h1
{
	font-family: 'Josefin Slab', sans-serif;
	color: #303030;
	font-weight: 700;
}

a {
    color: rgb(204, 33, 22);
}

/*Text article stuff*/

.textTitle
{
	font-size:48pt;
	margin: 100px;
	margin-bottom: 0px;
	font-variant: small-caps;
	line-height: 150%;
}

.textSubTitle
{
	font-size:36pt;
	margin: 50px;
}

.textText
{
	margin-left: 150px;
	margin-right: 150px;
	font-size: 13pt;
	line-height: 200%;
	word-spacing: 125%;
	margin-bottom: 50px;
}

.Text_Divider
{
	border: 0;
    height: 0;
    border-top: 3px solid #505050;
    border-bottom: 3px solid #505050;
	margin-left: 80px;
	margin-right: 80px;
	margin-bottom: 3em;
}

#TheTextText
{
	margin-bottom: 200px;
}

#text-content-wrapper
{
	position: absolute;
	right: 250px;
	left: 0px;
	height: 100vh;
	-webkit-overflow-scrolling: touch;
	z-index: 10;
	overflow: auto;
	background-color: white;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
}

.text-open
{
	opacity: 1;
	top:0px;
	pointer-events: auto;
}

.text-closed
{
	opacity: 0;
	top:75%;
	pointer-events: none;
}

.firstcharacter {
    float: left;
    color: rgb(204, 33, 22);
    font-size: 75px;
    line-height: 60px;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    font-family: 'Adamina', Serif;
}

#content-top-bar {
	position: fixed !important;
	z-index: 11;
	-webkit-transition: all 0.5s;
}

#ContentCloseButton {
	z-index: 10;
	position: fixed;
	top: 12px;
	left: 15px;
	width: 30px;
	height: 30px;
	cursor: pointer;
}

#ContentCurtains {
	z-index: 10;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 50px;
	background-color: white;
	cursor: default;
	display: none;
	border-bottom: 1px solid #aaaaaa;
}

/*Special sizes*/

@media only screen and (max-width: 1000px) {
	
	.side_bar_hidden {
		right: -262px;
	}
	
	.side_bar_show {
		right: 0px;
	}
	
	.side_bar_modal_show {
		opacity: 0.8;
		pointer-events: auto;
	}
	
	.side_bar_modal_hidden {
		opacity: 0;
		pointer-events: none;
	}
	
	#content_wrapper {
		right: 0px;
	}
	
	#text-content-wrapper {
		right: 0px;
	}
	
	#ContentCurtains {
		display: block;
	}
	
	#text-content {
		margin-top: 100px;
	}
}

/*Modal View Things*/

#ModalView {
	position:fixed;
	z-index:300;
	background-color: rgba(0,0,0,0.8);
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100vh;
	display: none;
}

#ModalViewContainer {
	position:fixed;
	z-index:300;
	top: 50px;
	bottom: 50px;
	left: 20px;
	right: 20px;
	display: flex;
	justify-content: center;
}


#closebtn {
	position:fixed;
	right:10px;
	top:10px;
	font-family: '';
	font-size: 12pt;
	color: #FFFFFF;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
	cursor: pointer;
}

#modalpic {
	align-self:center;
	max-width: 100%;
	max-height: 100%;
}

#modalcaption {
	font-family: 'Josefin Slab', sans-serif;
	font-size: 18pt;
	color: #FFFFFF;
	position: fixed;
	bottom: 10px;
	width:100%;
	text-align: center;
}


#Compatibility-Notice {
	position: fixed;
	z-index: 255;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.2);
	display: flex;
	justify-content: center;
	align-content: center;
	opacity: 0;
	pointer-events: none;
}

#Compatibility-Notice-Box {
	z-index: 255;
	width: 400px;
	max-width: 100vw;
	height: 300px;
	max-height: 75vw;
	background-color: white;
	padding: 30px;
	font-family: Adamina;
	align-self: center;
}

