html
{
	height: 100%;
	width: 100%;
}

body
{
	padding: 0px 0px 0px 0px;
	margin: 0px 0px 0px 0px; 
	color: rgb(0, 0, 0);
	text-align: center;
	background-color: rgb(45, 89, 134);
	overflow-x: hidden;
	height: 100%;
	width: 100%;
}

#everything
{
	position: relative;
	padding-top: 34px;
	min-height: calc(100% - 168px);
	width: 94%;
	top: 93px;
	left: 3%;
	font-size: 14px;
	background-color:rgb(245, 245, 245);
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
	padding-bottom: 15px;
	box-shadow: 2px 3px 10px rgb(21, 52, 103);
	font-family: sans-serif;
}

#website{
}

i
{
	font-size: 16px;
}

.switchsortingoption
{
	font-family: sans;
}

.splitter
{
	font-family: sans;
}

.Darkener
{
	height: 100%;
	width: 100%;
}

#headnav ul
{
	display: none;
}

#headnav li:hover > ul
{
	display: block;
}

#headnav
{
	background: -webkit-linear-gradient(top, rgb(51, 153, 255) 0%, rgb(31, 103, 205) 100%);	
	padding-left: 2%;
	padding-right: 2%;
	list-style: none;
	position: absolute;
	border-top-left-radius: 13px;
	border-top-right-radius: 13px;
	left: 3%;
	top: 15px;
	width: 90%;
	font-size: 12px;
	z-index: 3;
	box-shadow: 0px 1px 13px rgb(21, 45, 175);
}

#headnav > li
{
	float: left;
	width: 33.3%;
	padding-top: 20px;
	padding-bottom: 10px;
	min-height: 36px;
}

/* Automatically split the navigation bar to 50% width if there are only 2 items */
#headnav > li:first-child:nth-last-child(2),
#headnav > li:first-child:nth-last-child(2) ~ li
{
	width: 50%;
}

#headnav li li
{
	min-height: 19px;
	padding-top: 7px;
	padding-bottom: 5px;
	word-break: normal;
}

#headnav li:hover
{
	background: rgb(155, 155, 155);
}

.left_link:hover
{
	margin-left: 15px;
}

#headnav li:hover
{
	color: #fff;
}

#headnav li
{
	font-size: 15px;
	font-family: Trebuchet MS; font-weight: bold;
	color: black; text-decoration: none;
}

#headnav li li
{
	color: black !important; 
}

#headnav li li:hover
{
	color: rgb(250, 250, 250) !important; 
}

#headnav ul
{
	background: none; 
	border-radius: 0px; padding: 0;
	position: absolute; top: 100%; left: 782px; width: 100%;
}

#headnav ul li
{
	background-color: rgb(205, 0, 0);
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	position: relative; width: 75.8%;
}

#headnav ul li ul li
{
	background-color: rgb(205, 0, 0);
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	border-left: 1px solid black;
	position: relative; width: 250%;
	top: -34px; left: 234%;
}

#headnav li:hover ul, #nav li.ie_does_hover ul 
{
	left: auto;
}

#headnav ul li ul li
{
	background: -webkit-linear-gradient(top, rgb(51, 153, 255) 0%, rgb(31, 103, 205) 100%);		
}

#headnav ul li
{
	background: -webkit-linear-gradient(top, rgb(51, 153, 255) 0%, rgb(31, 103, 205) 100%);	
}

#headnav li:hover
{
	background: -webkit-linear-gradient(top, rgb(31, 103, 205) 0%, rgb(11, 53, 153) 100%);	
}

#headnav ul li ul li:hover
{
	background: -webkit-linear-gradient(top, rgb(31, 103, 205) 0%, rgb(11, 53, 153) 100%);	
}

#headnav ul li:hover
{
	background: -webkit-linear-gradient(top, rgb(31, 103, 205) 0%, rgb(11, 53, 153) 100%);	
}

.link
{
	cursor: pointer;
}

#filling
{
	position: relative; 
	top: 0px; 
	Height: 45px;
	z-index:-2; 
}

#inlog
{
	position: fixed;
	left: 18.2%;
	top: calc(50% - 300px);
	width: 69%;
	z-index: 5;
}

@media only screen and (max-height : 800px) 
{
	#inlog
	{
		top: calc(50% - 100px);
	}
}

@media only screen and (max-device-width: 480px) 
{
	#inlog
	{
		top: 50%;
	}
}

#regi
{
	position: absolute;
	left: 18.2%;
	top: 20px;
	width: 69%;
	z-index: 4;
}

.Popupbutton
{
	border-radius: 25px;
	cursor: pointer;
}

.WARNING
{
	position: fixed; 
	top: 200px; 
	left:33%; 
	height: 34%;
	width: 34%;
	padding-left: 5px;
	padding-right: 5px;
	z-index:2; 
	background-color: black; 
	color: rgb(235, 235, 235);
	text-align: center;
	border: 3px solid;
	border-radius: 15px; 
	border-color: rgb(45, 45, 45);
}

@media only screen and (max-width : 700px) 
{
	.WARNING
	{
		left: 10%;
		top: 10%;
		width: calc(80% - 16px);
		height: 80%;
	}
}

#tablediv_container
{
	position: absolute;
	left: 12%;
	width: 76%;
	top: 86.5px;
	float: right;
}

.tablediv
{
	float: left;
	padding-top: 4px;
	padding-bottom: 4px;
	background: rgb(155, 0, 0);
	color: rgb(235, 235, 235);
	border-bottom: 3px solid black;
	height: 20px;
	width: 45%;
}

.tablediv
{
	background: -webkit-linear-gradient(top, rgb(31, 103, 205) 0%, rgb(11, 53, 153) 100%);
}

@media only screen and (max-width : 880px) 
{
	.tablediv
	{
		padding-top: 4px;
		padding-bottom: 4px;
		height: 35px;
	}
}

#tablediv_left_1
{
	left: 0%;
	border-left: 3px solid black;
	border-top: 3px solid black;
	position: relative;
}

#tablediv_right_1
{
	right: 0%;
	border-right: 3px solid black;
	border-top: 3px solid black;
	position: relative;
}

#tablediv_left
{
	left: 0%;
	border-left: 3px solid black;
	position: relative;
}

#tablediv_right
{
	right: 0%;
	border-right: 3px solid black;
	position: relative;
}

#overzicht
{
	background-color: #869494;
	border-width: 4px;
	border-style: solid;
	border-color: #869494;
	border-top: 0px;
}

#overzicht td
{
	font-size:1em;
	padding:3px 7px 2px 7px;
	position: relative;
}

.Picture
{
	display: inline-block;
	width: 200px;
	height: 200px;
	display: inline-block; 
	background-size: 200px 200px;
	margin: 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}	

.Picture_Click
{
	position: fixed;
	top: 22%;
	left: 20%;
	z-index: 5;
	width: 60%;
	height: 70%;
	display: inline-block; 
	background-size: 100% 100%;
	margin: 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.item_div
{
	border: 2px solid black;
	border-style: solid;
	border-color: black;
	border-top-width: 0px;
	border-left-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 0px;
	width: 70%;
	display: inline-block;
	text-align: left;
	margin-left: -1px;
	font-family: sans;
}

.item_div div
{
	border-style: solid;
	border-width: 0px;
	border-color: rgb(80, 80, 80);
	padding-left: 8px;
	padding-right: 8px;
	position: relative;
}

.item_div .normal
{
	border-bottom-width: 1px;
	min-height: 20px;
	width: 100%;
	/* rows sit in an 8px-padded section; -8px fills it up to (not over) the
	   panel's black side borders, like the deity rows */
	left: -8px;
}

.item_div .big
{
	width: 100%;
	text-align: center;
	font-weight: bold;
	font-family: segoe script;
	background-color: rgb(0, 0, 0);
	color: white;
	left: 0px;
	padding: 0px !important;
	font-size: 16px;
}

/* Name bars inside a section (not title bars) span the panel like the rows. */
.item_div .big:not(.info_expand)
{
	left: -8px;
	width: calc(100% + 16px);
}

.full_item_opener
{
	font-size: 20px;
}

.full_item_opener:hover
{
	background-color: rgb(225, 225, 225);
	color: black;
	border-style: solid;
	border-width: 0px;
	border-top-width: 1px;
	border-bottom-width: 1px;
	height: 30px;
}

.full_item_opened
{
	background-color: black !important;
	color: rgb(250, 250, 250) !important;
	border-bottom-width: 1px !important;
}

.full_item_opened:hover
{
	background-color: rgb(250, 250, 250) !important;
	color: black !important;
}

.info_expand
{
	position: absolute;
	left: 0px;
	top: 0px;
	padding: 0px !important;
}

.item_div .item_left
{
	width: calc(30% - 3%); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top
}

.item_div .item_right
{
	padding-top: 3px;
	padding-bottom: 3px;
	width: calc(69% - 3%); 
	display: inline-block;
}

.item_div .item_three_left
{
	width: calc(20% - 20px); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top
}

.item_div .item_three_center
{
	width: calc(55% - 20px); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top
}

.item_div .item_three_right
{
	width: calc(25% - 20px);  
	padding-top: 3px;
	padding-bottom: 3px;
	display: inline-block;
}

.item_div .item_three_left_big_center
{
	width: calc(27% - 3%); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top
}

.item_div .item_three_center_big_center
{
	width: calc(55% - 3%); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top
}

.item_div .item_three_right_big_center
{
	padding-top: 3px;
	padding-bottom: 3px;
	width: calc(19% - 3%); 
	display: inline-block;
}

/* Custom dedicated styles for D&D Backstory Oaths page to maximize tenets space */
.item_div .item_three_left_oaths
{
	width: calc(13% - 20px); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top;
}

.item_div .item_three_center_oaths
{
	width: calc(67% - 20px); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top;
}

.item_div .item_three_right_oaths
{
	width: calc(20% - 20px);  
	padding-top: 3px;
	padding-bottom: 3px;
	display: inline-block;
}

.item_div .item_three_left_big_center_oaths
{
	width: calc(18% - 3%); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top;
}

.item_div .item_three_center_big_center_oaths
{
	width: calc(70% - 3%); 
	display: inline-block;
	padding-top: 3px;
	vertical-align: top;
}

.item_div .item_three_right_big_center_oaths
{
	padding-top: 3px;
	padding-bottom: 3px;
	width: calc(12% - 3%); 
	display: inline-block;
}

.homewhite
{
	padding: 5px; 
	display: inline-block; 
	width: 48%; 
	max-width: 580px; 
	background-color: rgb(235, 235, 235);
}
	
.limited_text
{
	text-align: left; 
	width: 43%; 
	left: 30%; 
	position: relative;
}

.side_pic_left
{
	max-height: 100%;
	width: 28%;
	position: absolute;
	left: 0px;
	top: 0px;
	border-bottom-left-radius: 13px;
}

.side_pic_right
{
	max-height: 100%; 
	width: 25%; 
	position: absolute; 
	right: 0px; 
	top: 0px; 
	border-bottom-right-radius: 13px;
}
	
@media only screen and (max-height: 500px) 
{
	.limited_text
	{
		width: 70%;
	}
	
	.side_pic_right
	{
		visibility: hidden;
	}
}

@media only screen and (max-device-width: 500px) 
{
	.limited_text
	{
		width: 96%;
		left: 2%;
	}
	
	.side_pic_left
	{
		top: calc(100% - 800px);
		height: 800px;
		width: 50%;
		display: none;
	}
	
	.side_pic_right
	{
		top: calc(100% - 800px);
		visibility: visible;
		height: 800px;
		width: 50%;
		display: none;
	}
}

@media only screen and (max-width : 900px) 
{
	.item_div
	{
		width: 80%;
	}
}

@media only screen and (max-width : 700px) 
{
	.homergb(250, 250, 250)
	{
		width: 90%;
		max-width: 90%;
	}
	
	.item_div
	{
		width: 98%;
	}
	
	#everything
	{
		position: absolute;
		padding-top: 20px;
		min-height: calc(100vh - 91px);
		width: 100%;
		top: 66px;
		left: 0%;
		border-radius: 0px;
		margin-bottom: 0px;
	}
	
	body
	{
		background-color: rgb(235, 235, 235);
	}
	
	#headnav
	{
		padding: 0 2%;
		padding-left: 0%;
		margin-top: 0px;
		list-style: none;
		position: absolute;
		border-top-left-radius: 0px;
		border-top-right-radius: 0px;
		left: 0px;
		width: 100%;
		top: 0px;
		font-size: 12px;
		z-index: 3;
	}

	#headnav ul li
	{
		position: relative; width: 100% !important;
	}
}

.starting_something
{
	display: none;
	padding: 2px;
	border-style: solid;
	z-index: 1;
	bottom: 20px;
	border-color: black;
	border-width: 2px;
	padding: 3px;
	background-color: rgb(255, 255, 155);
}

.item:hover .starting_something
{
	display: block;
}

@media only screen and (max-width : 450px) 
{
	.item_div .normal
	{
		min-height: 40px;
	}
	
	.item_div
	{
		width: 94%;
	}
	
	.item_div .item_left
	{
		min-height: 40px;
	}

	.item_div .item_right
	{
		min-height: 40px;
		padding-left: 5px;
	}
	
	.starting_something
	{
		bottom: 45px;
	}
}

@media only screen and (max-width : 380px) 
{
	.item_div
	{
		font-size: 13px;
	}
}

ul
{
	list-style: none;
}

/* New stuff */

.hidden
{
	display: none;
}

.black
{
	background-color: black;
}

.itemgroup
{
	width: calc(92% + 20px);
	display: inline-block;
	border-color: black;
	border-width: 1px;
	border-style: solid;
	margin: 15px;
	margin-left: 0px;
	margin-right: 0px;
	padding: 10px;
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 47px;
	padding-bottom: 0px;
	border-bottom-width: 0px;
}

.itemgroup .item_div
{
	width: 100%;
}

.splitter
{
	padding: 5px;
	font-weight: bold;
	text-align: center;
	font-size: 22px;
	height: 27px;
	background-color: black;
	color: rgb(235, 235, 235);
	position: relative;
	margin-top: -47px;
	cursor: pointer;
}

.can_split
{
	background-color: rgb(225, 225, 225);
	color: black;
}

.splitted
{
	background-color: black;
	color: rgb(235, 235, 235);
}

.can_split:hover
{
	background-color: black;
	color: rgb(235, 235, 235);
	border-color: black;
	border-width: 0px;
	border-style: solid;
	border-bottom-width: 2px;
	height: 25px;
}

.splitted:hover
{
	background-color: rgb(235, 235, 235);
	color: black;
}

.itemgroup_isnotopen
{
	padding-top: 37px;
	border-width: 2px;
}

.itemgroup_isnotopen .splitter
{
	margin-top: -37px;
}

@media only screen and (max-width : 380px) 
{
	body
	{
		word-break: break-all;
	}
}

.tablediv_form
{
	text-align: left; 
	width: calc(90% - 10px);
	margin-left: 5px;
	margin-right: 5px;
	display: inline-block; 
	padding-bottom: 5px;	
	max-width: 700px;
	
}

@media only screen and (max-width : 700px) 
{
	.tablediv_form
	{
		width: calc(90% - 10px);
	}
}

.submit_tablediv
{
	width: calc(100% - 5px);
	display: inline-block;
	margin-bottom: 3px;
}

.full_tablediv
{
	width: 100%;
	display: inline-block;
	margin-bottom: 3px;
}

.left_tablediv
{
	width: calc(50% - 15px);
	display: inline-block;
	margin-bottom: 3px;
	resize: vertical;
	vertical-align: top;
}

.right_tablediv
{
	width: calc(50% - 4px);
	padding: 3px;
	display: inline-block;
	margin-bottom: 3px;
	margin-left: 4px;
	resize: vertical;
}

.full_item
{
	width: 100%;
	padding: 3px;
	text-align: left;
}

.fullwidth
{
	width: 97.7% !important;
}

.printer
{
	width: 100%;
	text-align: center;
	font-size: 20px;
	left: -1%;
	cursor: pointer;
	background-color: rgb(235, 235, 235);
	color: black;
	z-index: 2;
}

.dualprint, .quadraprint
{
	width: 50% !important;
	float: left;
	padding-left: 0px !important;
	padding-right: 0px !important;
	text-align: center;
	font-size: 20px;
	cursor: pointer;
	background-color: rgb(235, 235, 235);
	color: black;
	z-index: 2;
}

.quadraprint
{
	width: 25% !important;
}

@media only screen and (max-width : 800px) 
{
	.quadraprint
	{
		font-size: 12px;
	}
}

.dual_left
{
	left: -1%;
}

.dual_right
{
	right: -1%;
}

.dual_left_2
{
	left: 24%;
}

.dual_right_2
{
	right: 24%;
}

.printer:hover, .dualprint:hover, .quadraprint:hover
{
	background-color: black;
	color: rgb(235, 235, 235);
}

.divider
{
	position: absolute !important;
	margin-left: calc(30% - 2%) !important;
	height: calc(100%) !important;
	top: 0px !important;
	width: 1px !important;
	background-color: black !important;
	padding: 0px 0px 0px 0px !important;
	border-width: 0px 0px 0px 0px !important;
}

.Frontpage_Container
{
	position: relative; 
	width: 100%; 
	left: 0%;
}

.Frontpage_div
{
	text-align: center;
	display: inline-block;
}

.Frontpage_Text p
{
	background-color: rgba(0, 0, 0, 0.6);
	color: white;
}

.Frontpage_Text:hover p
{
	text-decoration: underline;
	font-style: italic;
}

.Frontpage_Text
{
	width: 380px; 
	height: 205px;
	background-size: 100% 100%;
	padding-top: 40px;
	display: inline-block;
	color: white;
	margin: 5px 5px 5px 5px;
}

.Frontpage_Title
{
	margin-top: -18px;
	font-size: 18px;
	font-weight: bold;
	font-family: Lucida Console;
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.Frontpage_Details
{
	font-size: 18px;
	margin-top: 85px;
	background-color: rgba(0, 0, 0, 0.3);
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.Frontpage_Download
{
	font-size: 18px;
	margin-top: 25px;
	background-color: rgba(0, 0, 0, 0.3);
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.Frontpage_Details:hover
{
	text-decoration: underline;
	font-style: italic;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.8);
}

.Frontpage_Download:hover
{
	font-style: italic;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.8);
}

.Download_Different_Color
{
	font-size: 18px;
	background-color: rgba(43, 52, 154);
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
	margin: 0px; 
	position: relative; 
	bottom: 0px; 
	width: 100%;
	color: white;
	border-style: solid;
	border-width: 0px;
	border-top-width: 1px;
	border-color: black;
	display: block;
}

.Download_Different_Color:hover
{
	font-style: italic;
	cursor: pointer;
	color: white;
	background-color: rgba(13, 22, 104);
}

.Worldcontainer
{
	width: Calc(100% - 2px); 
	max-width: 1398px; 
	display: inline-block; 
	border-style: solid; 
	border-width: 1px;
}

.Worldimage
{
	width: 100%; 
	position: relative; 
	display: inline-block;
}

.Worldtext
{
	background-color:rgb(0, 0, 0);
	color: white;
	width: 100%;
	max-width: 1400px;
	font-size: 1.5em;
	display: inline-block;
	margin-bottom: 0px !important;
	padding-top: 3px;
	padding-bottom: 3px;
}

.switchsortingoption
{
	width: 25%;
	display: inline-block;
	border-color: black;
	border-width: 2px;
	border-style: solid;
	margin: 15px;
	margin-left: 2.5%;
	margin-right: 2.5%;
	padding: 10px;
	font-size: 170%; 
	font-weight: bold; 
	padding-top: 4px; 
	padding-bottom: 4px; 
	cursor: pointer; 
	border-radius: 50px;
}

.switchsortingoption:hover
{
	background-color: black;
	color: rgb(235, 235, 235);
}

.selected
{
	background-color: black;
	color: rgb(235, 235, 235);
}

.selected:hover
{
	background-color: white;
	color: rgb(0, 0, 0);
}

.citydivide
{
	width: 45%; 
	display: inline-block
}

.TwopartPageOne
{
	width: 46%; 
	position: relative;
	display: block;
	float: left;
	margin-right: 2%;
	margin-left: 2%;
}

.TwopartPageTwo
{
	width: 46%; 
	position: relative;
	display: block;
	float: left;
	margin-right: 2%;
	margin-left: 2%;
}

.BasicText
{
	width: 60%; 
	position: relative; 
	left: 20%;
	text-align: left;
}

.MidDividerLeft
{
	width: 40% !important;
	margin-right: 9% !important;
	padding: 0px !important;
	display: inline-block !important;
}

.MidDividerRight
{
	width: 40% !important; 
	margin-left: 9% !important; 
	padding: 0px !important; 
	display: inline-block !important;
}

.CityDivider
{
	background-color: rgb(0, 0, 0); 
	color: white; 
	text-align: center; 
	padding-top: 4px; 
	padding-bottom: 4px; 
	font-size: 16px;
}

.BattleClone
{
	width: 500px; 
	display: inline-block; 
	visibility: hidden; 
	border-size: 2px; 
	border-radius: 5px; 
	border-color: black; 
	border-style: solid; 
	padding: 6px; 
	text-align: left; 
	margin-top: 5px;
}

@media only screen and (max-width : 1400px) 
{
	.citydivide
	{
		width: 95%; 
	}
}

@media only screen and (max-width : 900px) 
{
	.TwopartPageOne
	{
		width: 90%; 
		position: relative; 
		left: 5%;
	}

	.TwopartPageTwo
	{
		width: 90%; 
		position: relative;
	}

	.BasicText
	{
		width: 90%; 
		position: absolute; 
		left: 5%;
		text-align: left;
	}
}

.bottom-blocker{
	position: relative;
	margin-top: 93px;
	height: 25px;
}

.deity-item{
	background-color: rgb(215, 215, 225);
	border-bottom-width: 1px !important;
	Font-size: 16px;
}

.city-item{
	background-color: rgb(215, 215, 225);
	border-bottom-width: 0px;
	Font-size: 16px;
}

.city-title{
	background-color: rgb(180, 180, 195);
	border-bottom-width: 0px;
	Font-size: 19px;
	padding-top: 2px;
	padding-bottom: 2px;
}

.thin-breakline{
	height: 1px;
	min-height: 1px;
}

.breakline{
	height: 2px;
	min-height: 2px;
}

.LawfulGood{
	background-color: rgb(225, 225, 150);
}

.NeutralGood{
	background-color: rgb(170, 205, 225);
}

.ChaoticGood{
	background-color: rgb(200, 225, 180);
}

.LawfulNeutral{
	background-color: rgb(210, 210, 180);
}

.TrueNeutral, .normal{
	background-color: rgb(215, 215, 225);
}

.ChaoticNeutral{
	background-color: rgb(225, 150, 200);
}

.LawfulEvil{
	background-color: rgb(235, 180, 140);
}

.NeutralEvil{
	background-color: rgb(185, 185, 185);
}

.ChaoticEvil{
	background-color: rgb(240, 150, 150);
}

.ElderBeings{
	background-color: rgb(205, 130, 205);
}


/* Navigation links: make the whole menu item a real, keyboard-focusable
   anchor while keeping the original nav styling. */
#headnav a
{
	color: inherit;
	text-decoration: none;
	display: block;
}
#headnav a:focus
{
	outline: 2px solid #fff;
	outline-offset: -2px;
}
