@charset "utf-8";
/* CSS Document */


#layout {
	max-width: 1400px;
	margin-left: auto; margin-right: auto;
	margin: 5px auto;
}


body {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 14px;
	background-color: darkgray;
}


header {
	background-color: cornflowerblue;
	padding: 5px;
	width: 80%;
}
header h1 {
	color: white;
}


nav {
	background-color: aliceblue;
	padding: 5px;
	height: 30px;
	width: 80%;
}
nav a:link { 
	text-decoration: none; 
	background-color: cornflowerblue; color: white;
	padding: 5px; border-radius: 10px;
}
nav input[name="login"], nav input[name="logout"]
{
	border: 0px;
	text-decoration: none;
	background-color: cornflowerblue; color: white;
	padding: 5px; border-radius: 10px;
}
/* buttons for accessing own profile and logging in and out, side by side */
ul {
	list-style-type: none; margin: 5px; padding: 5px;
}
li {
	display: inline; margin: 5px;
}
li form {
	/* make login/logout appear in navigation bar to right of navigation links */
	position: relative;
	top: -20px;
	left: 200px;
}


/* full length single article */
article {
	box-sizing: border-box;
	width: 64.6%;
	float: left;
	padding: 5px;
	margin: 1%;
	line-height: 130%;
	border: 1px solid gray;
	overflow: hidden;
}
/* front page article, cant be too long
 copilot: "css overflow fading out" */
.fade-text {
	max-height: 400px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	/* Fade effect using mask-image */
	-webkit-mask-image: linear-gradient(90deg, black 70%, transparent);
	mask-image: linear-gradient(90deg, black 70%, transparent);
}


/* profile page that shows all articles */
.preview {
	border-style: solid;
	border-width: 2px;
	border-color: gray;
	max-width: 25%;
	max-height: 250px;
	min-height: 250px;
	overflow: hidden;
}


/* write new article */
#writeNewPost {
	width: 80%;
}
/* text area for writing */
#newarticletextbox {
	width: 95%;
}


aside {
	position: fixed;
	top: 0px;
	left: 81%;
	margin-top: 15px;
	height: 100%;
	width: 31.3%;
	min-height: 140px;
	float: left;
	padding: 5px;
	line-height: 130%;
}


footer {
	background-color: dimgray;
	color: white;
	padding: 5px;
	height: 35px;
	clear: both;
	
	/* fix footer to bottom of page */
	position: fixed;
	bottom: 0;
	width: 80%;
}


img {
	display: block;
	margin: 0 auto;
}


table, td {
	border: 1px solid;
}
table {
	margin: auto;
}
th {
	text-align: center;
}


/* buttons for styling article text */
#posttoolbar {
	display: flex;
}
#posttoolbar img {
	width: 32px;
	margin: 1px;
}
/* image upload */
.preview_image {
	border: 1px solid gray;
	max-width: 32%;
}
#preview { margin-top: 10px; max-width: 300px; }
.error { color: red; }


/* Awesome Blockquote Styling with CSS - https://codepen.io/maxds/pen/nzmMyO */
blockquote {
	display:block;
	padding: 15px 20px 15px 45px;
	margin: 0 0 20px;
	position: relative;
}
blockquote::before {
	content: "\201C";	/* Unicode for Left Double Quote */
	font-family: Georgia, serif;
	font-size: 60px;
	font-weight: bold;
	color: #999;
	position: absolute;
	left: 10px;
	top:5px;
}
blockquote::after {
	content: "";	/* reset css */
}


/* compose article preview and submit buttons, centered */
.flex-container
{
	display: flex;
	justify-content: center;
}
.flex-child
{
	padding: 5px;
}
.flex-child input, .flex-child button
{
	border: 0px;
	text-decoration: none;
	background-color: cornflowerblue; color: white;
	padding: 5px; border-radius: 10px;
}


/* preview: an overlay on top of article composing page that renders written article as html */
#previewoverlay {
	position: absolute;
	display: none;
	width: 75%;
	height: 75%;
	z-index: 2;	/* on top of everything */
	top: 25%;
	left: 5%;
	right: 25%;
	bottom: 25%;
	background-color: #FFF;
	border: 5px solid gray;
	overflow: scroll;
}


.comment {
    border: 1px solid black;
    margin: 5px;
}
/* normal comment, always show */
form[id='newcomment-1'] {
	display: block;
}
/* reply to a comment, hide until clicked */
form[id^='newcomment'] {
	display: none;
}