/* ----- global ----- */

body {
	font-family:'Inconsolata', Courier New, monospace;
	margin:40px;
	padding:0;
	font-size:20px;
	line-height:1.5em;
	letter-spacing: 0.5px;
	background:#fff;
	color:#111;
}

p {
	margin:0 0 20px 0;
}

img {
	width:100%;
	height:100%;
	border:0;
}

img.smaller {
	width:62%;
	height:auto;
	margin:0 19%;
}

h1, h2 {
	font-weight:bold;
	font-size:1em;
	margin:5em 0 20px 0;
	padding:0;
}

h1::before {
	content:"** ";
}

h1::after {
	content:" **";
}

h2 {
	font-size:1em;
	line-height:1em;
}

.boxclick {
	position:absolute; 
	width:100%;
	height:100%;
	top:0;
	left: 0;

  	z-index: 1;

  	/* fixes overlap error in IE7/8, 
    make sure you have an empty gif */
  	background:#fff;
  	opacity:0; 
}

a:link .boxclick {
	background:#fff;
	opacity:0;
	-webkit-transition: all 0.08s linear;
}

a:hover .boxclick {
	background:#fff;
	opacity:0.2;
	-webkit-transition: all 0.01s linear;
}

a:active .boxclick {
	background:#fff;
	opacity:0.6;
	-webkit-transition: all 0.01s linear;
}


a {
	padding:2px;
	text-decoration: none;
	border-bottom:2px solid rgba(0,0,0,1);
	color:#000;
	opacity:1;
	-webkit-transition: all 0.05s linear;
}

a:hover {
	padding-bottom:3px;
	border-bottom:2px solid rgba(0,0,0,0.0);
	-webkit-transition: all 0.05s linear;
	background:url('../images/flicker.gif');
}

a.popup-link {
	padding:0;
	border:0;
	background:0;
	display:block;
}

a.popup-link:hover {
	opacity:0.6;
}

.prev {
	margin-right:18px;
}

ul {
	padding-left:33px;
}

/* ----- salvattore masonry ----- */ 

#grid {
	margin:0;
}

.clear:before,
.clear:after {
  content: "\0020";
  display: block;
  height: 0;
  visibility: hidden;
}
.clear:before,
.clear:after {
  clear: both;
}

.column {
	float: left;
}
.size-1of1 { width: 100%; }
.size-1of2 { width: 50%; }
.size-1of3 { width: 33.333%; }

.column img {
	/* margin-bottom:12px; */
}

.column div {
	margin-bottom:1em;
	position:relative;
	padding:18px;
}

.column div.text {
	padding-left:0;
}

/* offset first item */
.column:nth-child(2) div:nth-child(1) {
	padding-top:172px;
}

@media screen and (max-width: 736px){
	#grid[data-columns]::before {
		content: '1 .column.size-1of1';
	}
}

@media screen and (min-width: 737px) {
	#grid[data-columns]::before {
		content: '2 .column.size-1of2';
	}
}

.column { float: left; }
.size-1of1 { width: 100%; }
.size-1of2 { width: 50%; }
.size-1of3 { width: 33.333%; }


/* ----- preloader ----- */

#preloader {
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:#fff; /* change if the mask should have another color then white */
    z-index:99; /* makes sure it stays on top */
}

#status {
    width:200px;
    height:200px;
    position:absolute;
    left:50%; /* centers the loading animation horizontally one the screen */
    top:50%; /* centers the loading animation vertically one the screen */
    background-image:url(../images/status.gif); /* path to your loading animation */
    background-repeat:no-repeat;
    background-position:center;
    margin:-100px 0 0 -100px; /* is width and height divided by two */
}

/* ----- tweetie ----- */

.tweetbox { /* bring this back somewhere else */
	display:none;
	position:absolute;
	top:110px;
	right:400px;
	padding:18px;
	width:260px;
	border:2px solid #000;
	z-index:998;
}

.tweet {

}

.tweet ul {
	list-style-type:none;
	margin:0;
	padding:0;
}

.tweet .date {
	font-size:0.9em;
}

header, section {
	max-width:660px;
	margin-bottom:5em;
}

.full {
	max-width:none;
	margin-bottom:40px;
}

ul span {
	color:#999;
	padding:4px;
	background:#eee;
	white-space:nowrap;
}

/* ----- embeds ----- */

.video {
	position: relative;
	padding-bottom: 56.25% !important;
	padding-top: 25px !important;
	height: 0;
	clear:both;
	margin-top:100px;
}
.video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ----- misc ----- */

code {
		font-family:Inconsolata;
	  width: 100%;
    color: #999;
    padding: 4px;
    background: #eee;
    border-bottom: 1px solid #ccc;
    margin-bottom: 200px;
    white-space:pre-wrap;
}



/* ----- emoji ----- */

.emoji {
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  margin-bottom: -0.25em;
  background-size: contain;
}

#random {
	background:yellow;
}

/* ----- mobile ----- */


@media screen and (max-width: 736px){
	body {
		margin:20px;
		font-size: 18px;
	}

	.column div.text {
		padding-right:0;
	}
}

@media screen and (max-width: 400px) {
	body {
		margin:10px;
		font-size: 16px;
	}
}
