body {
	background-color: #CC9900;
	margin: 0;
}

a {
	color: #660000;
}

a:visited {
	color: #990000;
}

img {
	max-width: 100%; 
}

/*	Total width 780px
	Main 625px
	Menu 155px */

main {
	margin: auto;
	display: grid;
	justify-content: center;
}

header#desktop 	{ grid-area: header-d; position: relative;}
header#mobile 	{ grid-area: header-m; }
nav 	{ grid-area: nav; }
aside 	{ grid-area: links; text-align: right;}
section	{ grid-area: section; background-color: #660000;}

.menublock {
background-color:#990000;
color: #ffffff;
font:bold 16pt 'Comic Sans MS';
text-align:center;
text-decoration: none;
display:block;
cursor: pointer;
}

.menublock:visited {
color: #ffffff;
}

.menublock:hover {
background-color:#aa0000;
}

.floattitle {
position:absolute;
width:380px;
height:80px;
right: 65px;
top: 65px;
font:italic bold 25px "Comic Sans MS";
}

#nav_search {
	border:thin solid black;
}

article {
	margin: 16px auto;
	background-color: #ffffff;	
	overflow: auto;
}

article > h1 {
	margin: 0;
	background-color: #990000;
	color: #FFFFFF;
	font-family: "Comic Sans MS", Arial, "MS Sans Serif";
	font-size: 1em;
}

article > h1 a {
	color: #FFFFFF;
}

article > h1 a:visited {
	color: #FFFFFF;
}

article > p {
	padding: 10px;
	margin: 0;
}

.article_comment {
	clear: both;
	overflow: auto;
	margin: 16px 0;
	background-color: #ffffff;
	border-style:solid; 
	border-color:#990000; 
	border-width:5px 0px;
	display: grid;
    align-items: center;
    grid-template-columns: 200px 1fr;
}

.article_comment:nth-child(even) {
	direction: rtl;
}

.article_grid {
	margin: 16px;
	display: grid;
	text-align: center;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	background-color: #000000;
}

#dropzone {
width: 300px;
height: 150px;
border: 3px dashed #990000;
border-radius: 10px;
text-align: center;
line-height: 150px;
color: #990000;
font-family: Arial, sans-serif;
margin-bottom: 10px;
cursor: pointer;
}

#dropzone.dragover {
background-color: #f0e0e0;
}

#uploadedFiles {
font-family: monospace;
font-size: 0.9em;
margin-top: 10px;
}


@media only screen and (min-width: 800px) {
		
	main {
		grid-template-columns: 155px 625px;
		grid-template-areas:
			"header-d  header-d"
			"nav section"
			"links section"
			". section";
	}
	
	header#mobile {
		display: none;
	}
	
		
	article, .article_comment {
		width: 600px;
	}

	.menublock {
		margin-right:5px;
		width:150px;
	}

	.burger {
		display: none;
	}
}

@media only screen and (max-width: 799px) {

	body.modal-open *:not(.overlay) {
		pointer-events: none;
	}

	main {
		grid-template-columns: 1fr;
		grid-template-areas:
			"header-m"
			"section";
	}

	header#desktop {
		display: none;
	}
	
	.burger {
		position: fixed;
        display: grid;
        align-items: center;
        justify-content: center;
		top: 0px;
		right: 0px;
		background-color: #660000;
        border: 5px solid #990000;
        color: #d29f05;
		width: 50px;
        height: 50px;
		font-size: 1.5em;
        font-weight: bold;
		cursor: pointer;
	}
	
	nav {
		position: fixed;
		height: 100vh;
		width:175px;
        overflow: scroll;
		right: -175px;
		transition: right 1s ease-in-out;
		z-index: 1;
		pointer-events: auto;
	}
	
	nav.open {
		right: 0;		
	}
	
	nav img {
		display: none
	}
	
	nav form {
		margin: 0;
	}
	
	aside {
		display: none;
	}

	.menublock {
		border-style: solid;
        border-width: 1px 0;
    }
	
	#nav_search {
		font-size: 1.5em;
		width: 100%;
		text-align: center;
	}

}
