/www/css/blerg.css
/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
 * BSD-style license.  Please see the COPYING file for details.
 */
@font-face {
	font-family: "Alte Haas Grotesk Bold";
	src: url("/fonts/AlteHaasGroteskBold.ttf");
}

body {
	margin: 0;
	font-family: sans-serif;
	background-color: white;
}

a.ref {
	color: #404040;
}

a > img {
	border: 0;
}

.blerg-header {
	background-color: #1E1E1E;
	color: white;
	padding: 8px 8px 16px 8px;
	position: relative;
}

.blerg-header .logo {
	float: left;
	margin-right: 10px;
}

.blerg-header h1 {
	margin: 4px 0 0 0;
	font-size: 65px;
	text-shadow: black 0px 2px;
}

.blerg-header h1 a {
	text-decoration: none;
}

.blerg-header h1 a:hover {
	text-decoration: underline;
}

.blerg-header a {
	color: inherit;
}

.blerg-header h2 {
	margin: 0;
	font-size: 28px;
	text-shadow: black 0px 1px;
}

.blerg-header .onyx-input, .blerg-header .onyx-textarea {
	color: white;
}

.blerg-header .onyx-focused > .onyx-input, .blerg-header .onyx-focused > .onyx-textarea {
	color: black;
}

.blerg-title {
	float: left;
	width: 35%;
}

.blerg-controls {
	float: right;
	margin-top: 8px;
	margin-right: 8px;
	font-size: large;
	text-align: right;
}

.blerg-controls-toolbar {
	position: absolute;
	right: 0;
	top: 69pt;
	margin-bottom: 16px;
	margin-right: 16px;
}

.blerg-controls-toolbar .onyx-button {
	margin-left: 4pt;
	font-size: 14pt;
}

@media screen and (max-width: 800px) {
	.blerg-title {
		float: none;
		width: auto;
	}

	.blerg-controls {
		float: none;
		text-align: left;
		margin: 1em 0 0 0;
	}

	.blerg-controls-greeting {
		margin: 1em 8px;
	}

	.blerg-controls-toolbar {
		position: static;
		margin: 1em 8px;
	}

	.blerg-controls-toolbar .onyx-button {
		display: block;
		width: 100%;
		margin: 8px 0;
	}

	.blerg-controls .login {
		display: block;
		width: auto;
		margin: 1em 0;
	}
}

.blerg-controls button.new {
	background-color: #E4C010;
}

.spew-button {
	color: #333;
	background-color: #0D0;
	font-weight: bold;
}

h2 {
	font-size: 20pt;
	margin-bottom: 28pt;
}

h1, h2, h3 {
	font-family: "Alte Haas Grotesk Bold", sans-serif;
}

.blerg-main {
	padding: 15pt 15pt 0 15pt;
}

.signup-button {
	font-size: 40pt;
	padding: 1em;
	background-color: #C0F;
	color: #F88;
}

@media screen and (max-width: 800px) {
	.signup-button {
		font-size: 20pt;
	}
}

@media screen and (max-width: 400px) {
	.signup-button {
		font-size: 14pt;
	}
}

.blerg-main h2 {
	margin: 40px 0 17px 0;
}

.blerg-main h2:first-child {
    margin: 0 0 17px 0;
}

.blerg-post {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #1E1E1E;
}

.blerg-post h2 {
	font-size: 14pt;
	margin: 12pt 12pt 8pt 12pt;
}

.blerg-post .content-decorator {
	display: block;
	border-color: #999;
	margin: 8pt 12pt 12pt;
	height: 35%;
}

.blerg-post .content {
	display: block;
	width: 100%;
	height: 100%;
	font-size: 14pt;
	font-family: sans-serif;
}

.blerg-post .toolbar {
	height: 54px;
	overflow: hidden;
}

.blerg-post .toolbar .switcher {
	color: black;
	background-color: white;
	padding: 12pt 8pt 2px 12pt;
}

.blerg-post .toolbar .buttons {
	padding: 0 12pt 12pt 60px;
	text-align: right;
	vertical-align: top;
	float: right;
	background-color: #1E1E1E;
	background-image: url(/images/corner.svg);
	background-position: left bottom;
	background-repeat: no-repeat;
	background-size: auto 100%;
}

.blerg-post .toolbar .buttons .onyx-button {
	margin-left: 4pt;
	height: 0.4in;
	width: 1in;
}

.blerg-post .bottom-panel {
	height: 45%;
	color: black;
	background-color: white;
}

.blerg-post .bottom-panel > div {
	padding: 0 12pt;
}

.blerg-post.enter {
	animation: blerg-post-enter 750ms;
}

@keyframes blerg-post-enter {
	from {
		transform: translateY(-100%);
		animation-timing-function: ease-in;
	}

	60% {
		transform: translateY(0);
		animation-timing-function: ease-out;
	}

	80% {
		transform: translateY(-2%);
		animation-timing-function: ease-in;
	}

	to {
		transform: translateY(0);
	}
}

.blerg-post.exit {
	animation: blerg-post-exit 500ms forwards;
}

@keyframes blerg-post-exit {
	from {
		transform: translateY(0);
		animation-timing-function: ease-in;
	}

	to {
		transform: translateY(100%);
	}
}

.login {
	display: inline-block;
	width: 200px;
}

.login .onyx-button {
	width: 100%;
	margin-top: 4pt;
}

.login .enyo-input {
	width: 100%;
}

.blerg-user-controls {
	font-size: 14pt;
	text-align: right;
}

.blerg-user-controls a {
	color: inherit;
	text-decoration: none;
	margin-left: 4pt;
}

.blerg-user-controls a:hover {
	text-decoration: underline;
}


.record {
	margin: 8pt 0 24pt 0;
	font-size: 14pt;
}

.record p {
	margin-bottom: 0;
}

.record .info {
	color: #8F8F8F;
	font-size: small;
	font-style: italic;
}

.record .info a {
	color: #8F8F8F;
}

.record h1 {
	font-size: 18pt;
	margin: 1em 0;
}

.record h2 {
	font-size: 16pt;
	margin: 1em 0;
}

.record h3 {
	font-size: 14pt;
	margin: 1em 0;
}

.record h4 {
	font-size: 14pt;
	font-weight: normal;
	margin: 1em 0;
}

.record h5 {
	font-size: 14pt;
	font-weight: normal;
	font-style: italic;
	margin: 1em 0;
}

.latest {
	display: table;
	margin: 0 auto;
	border-spacing: 10px;
}

.latest h2 {
	font-size: 16pt;
	margin-top: 0;
}

.latest-scroller {
	height: 600px;
	padding: 12px;
	overflow-y: auto;
}

.latest-posts {
	display: table-cell;
	border: 2px solid #E6E6E6;
	color: #4C4C4C;
	width: 850px;
}

.latest-posts .record {
	font-size: 12pt;
	margin: 10px 0;
}

.latest-tags {
	display: table-cell;
	border: 2px solid #E6E6E6;
	background-color: #FAE3FC;
	line-height: 2em;
	width: 480px;
}

.latest-tags a {
	margin: 0 0.75em;
}

@media screen and (min-width: 1400px) {
	.latest { width: 1340px; }
}

@media screen and (max-width: 1100px) {
	.latest {
		display: block;
		margin-top: 15px;
	}
	.latest-posts {
		display: block;
		width: auto;
		margin-right: 0;
		overflow: auto;
	}
	.latest-tags {
		display: block;
		width: auto;
		margin-top: 10px;
	}
	.latest-tags .latest-scroller {
		height: auto;
	}
}

@media screen and (max-width: 800px) {
	.latest-posts, .latest-tags {
		border: none;
		background-color: inherit;
	}

	.latest-scroller {
		height: auto;
		padding: 0;
	}
}

@media screen and (max-width: 600px) {
	.blerg-post {
		position: inherit;
		height: 550px;
	}

	.blerg-post .toolbar {
		height: auto;
	}

	.blerg-post .toolbar .buttons {
		float: none;
		background-image: none;
	}

	.blerg-post .toolbar .switcher {
		padding: 4pt 12pt;
	}

	.blerg-post .record {
		margin-top: 0;
	}

	.blerg-post .record p:first-child {
		margin-top: 0;
	}

	.blerg-post.enter {
		animation: none;
	}

	.blerg-post.exit {
		animation: none;
	}
}

.author {
	font-weight: bold;
}

.quote {
	border-left: 2px solid blue;
	padding-left: 6px;
	margin-left: 2px;
}

.blerg-dialog {
	position: fixed;
	width: 300px;
	padding: 8px;
}

.blerg-dialog h2 {
	font-size: 14pt;
	margin: 0;
}

.blerg-dialog .onyx-groupbox,
.blerg-form .onyx-groupbox {
	margin: 8px 0;
}

.blerg-dialog .onyx-button {
	display: block;
	margin: 8px 0 0 0;
	width: 100%;
}

.blerg-dialog .onyx-input {
	width: 100%;
	color: white;
}

.blerg-dialog .onyx-focused > .onyx-input {
	color: black;
}

.blerg-dialog a {
	color: inherit;
}

.blerg-error {
	color: red;
	font-weight: bold;
}

.onyx-input-decorator.recovery {
    min-height: 22px;
    vertical-align: top;
    margin-right: 1em;
}

.onyx-button.recovery {
    background-color: orange;
    font-size: 16px;
    font-weight: bold;
    min-height: 40px;
}

p.recovery {
    background-color: orange;
    font-size: 20px;
    padding: 6px;
}

table.help td {
	padding: 2pt 8pt;
}

footer {
	clear: both;
	margin: 15pt;
	font-size: small;
	color: #333;
	text-align: right;
}

footer a {
	color: #333;
	margin-left: 1em;
}

.email-address {
    font-weight: bold;
}

.enyo-no-touch-action#blerg {
    -ms-touch-action: pan-y;
}

.checkbox-label {
  width: calc(100% - 40px);
  margin-left: 8px;
}