body {
	background-color: #282a36;
}

main {
	width: 600px;
	margin: auto;
}

nav {
	overflow: auto;
	margin-bottom: 10px;
}

nav table {
	float: left;
	border-collapse: collapse;
}

nav table:last-child {
	float: right;
}

nav table td {
	padding: 10px;
}

nav table td a {
	color: white;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	text-decoration: none;
}

::backdrop {
	background-image: linear-gradient(
		45deg,
		magenta,
		rebeccapurple,
		dodgerblue,
		green
	);
	opacity: 0.75;
}

form {
	width: calc(100% - 20px);
	padding: 10px;
	overflow: auto;
	background: #c9ffcd;
	border-radius: 3px;
	border: 1px solid #76c97d;
}

form input,
form textarea {
	width: 100%;
	margin-bottom: 10px;
	padding: 3px;
	border-radius: 3px;
	border: 1px solid #76c97d;
}

form input:last-child,
form textarea:last-child {
	margin-bottom: 0;
}

form textarea {
	height: 150px;
}

form input[type=submit] {
	width: 200px;
	float: right;
}

#login-error-message {
	padding: 10px;
	background: white;
	border: 1px solid red;
	border-radius: 3px;
	margin-bottom: 10px;
}

#login-error-message:empty {
	display: none;
}

.user-preview {
	margin-top: 10px;
	padding: 10px;
	background: #ccd6fb;
	border: 1px solid #6478c1;
	border-radius: 3px;
}

.post-preview {
	margin-top: 10px;
	border: 1px solid #404040;
	border-radius: 3px;
	background: white;
}

.post-preview-title {
	margin: 10px;
}

.post-preview-title a {
	color: #333;
	font-size: 30px;
	text-decoration: none;
}

.post-preview-details {
	height: 40px;
	background: #eee;
	border-top: 1px solid #ccc;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

.post-preview-details table {
	border-collapse: collapse;
	height: 100%;
	width: 100%;
}

.post-preview-details table tr {
}

.post-preview-details table td {
	vertical-align: middle;
	display: table-cell;
	height: 100%;
	border-right: 1px solid #ccc;
}

.post-preview-details tr td:nth-child(1) {
	width: 40px;
}

.post-preview-details tr td:nth-child(2) {
	width: 40px;
}

.post-preview-details tr td:last-child {
	width: 100px;
}

.post-preview-details span,
.post-preview-details a {
	color: black;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.post {
	padding: 10px;
	background: white;
	border-radius: 3px;
	margin-top: 10px;
}

.comment {
	padding: 10px;
	background: #ccd6fb;
	border-radius: 3px;
	margin-top: 10px;
}

/* === MISC ======================================================== */

.rotate90 {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	transform: rotate(90deg);
}

.rotate180 {
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}