/*
###########################################################
BODY
###########################################################
*/

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	position: relative;
	min-height: 100vh;
	overflow-y: scroll;
	color: #313131;
	color: var(--fg-color);
	text-align: justify;
	background: #174477;
	background: var(--nav-fg-color);
}

::selection {
	background: #2196f3;
	background: var(--bg-color-alt);
	color: white;
}





/*
###########################################################
SECTION WIDTH, GUTTERS, AND RYTHM
###########################################################
*/

.tight{
	max-width: 650px;
	max-width: var(--width-tight);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.site{
	max-width: 1400px;
	max-width: var(--width-site);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.full{
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-width: var(--width-full);
}

.rythm-negative{
	margin-top: calc(6rem*-1);
	margin-top: calc(var(--nav-height)*-1);
}

.rythm-null{
	margin-top: 0;
}

.rythm-half{
	margin-top: calc(6rem/2);
	margin-top: calc(var(--rythm)/2);
}

.rythm{
	margin-top: 6rem;
	margin-top: var(--rythm);
}

.rythm-padding{
	padding-top: 6rem;
	padding-bottom: 6rem;
	padding-top: var(--rythm);
	padding-bottom: var(--rythm);
}

.gutter {
	padding-left: 1rem;
	padding-right: 1rem;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

@media (min-width: 735px) {
	.gutter{
		padding-left: 0;
		padding-right: 0;
	}
}





/*
###########################################################
UTILS
###########################################################
*/

.landscape,
.desktop{
	display: block;
}

@media (max-width: 735px) {
	.landscape,
	.desktop{
		display: none;
	}
}

.portrait,
.mobile{
	display: block;
}

@media (min-width: 735px) {
	.portrait,
	.mobile{
		display: none;
	}
}

.noselect {
  -webkit-touch-callout: none;
	-webkit-user-select: none;
	 -khtml-user-select: none; 
	   -moz-user-select: none; 
		-ms-user-select: none; 
			user-select: none; 
}

.display-none {
  display: none;
}

.inline{
	display: inline-block;
}

.block{
	display: block;
}

.fill{
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

/*fix for empty p shortcodes tends to leave behind*/
p:empty{
	display: none;
}



/*
###########################################################
MISC ELEMENTS
###########################################################
*/

hr{
	margin-top: 6rem;
	margin-bottom: 6rem;
	margin-top: var(--rythm);
	margin-bottom: var(--rythm);
	border: transparent;
    border-top: 1px solid #313131;
    border-top: 1px solid var(--fg-color);
    opacity: 0.2;
}

img{
	max-width: 100%;
	display: block;
	border-radius: 4px;
	border-radius: var(--radius-1);
}

code{
	display: inline;
	background-color: #f7f7f7;
	color: #313131;
	color: var(--fg-color);
	border-radius: 4px;
	padding: 2px 5px;
	font-family: Courier New, Courier, monospace; 
}

#tracking{
	display: none;
}



/*
###########################################################
MARKDOWN NOTICES
###########################################################
*/

.notices {
    max-width: calc(650px - 1rem*2);
    max-width: calc(var(--width-tight) - var(--gutter)*2);
	margin-left: auto;
	margin-right: auto;
	margin-top: 2rem;
	padding: 1rem;
	padding: var(--gutter);
}

.notices p a{
	color: inherit;
	text-decoration: underline;
}

.notices.yellow {
    background: #fcf8f2;
    color: #df8a13;
}

.notices.red {
    background: #f443360d;
    color: #F44336;
}

.notices.blue {
    background: #2196f317;
    color: #2196F3;
}

.notices.green {
    background: #00968814;
    color: #009688;
}
