
/* ********************************* */
/* Hover typing effect on Silly page */
/* ********************************* */

h1 mark{padding: 0 0.2em; background:rgba(255,255,0,0.5); cursor: default;}
h1 mark:hover{background:rgba(255,255,0,1);}

/* ****************************** */
/* List of silly things           */
/* ****************************** */
.silly_previews {
	display: flex;
	flex-wrap: wrap;
}
.silly_previews article {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: black;
	width: calc(50% - 1em);
	margin-bottom: 2em;
	position: relative;
}
.silly_previews article:nth-of-type(2n){
	margin-left: 2em;
}
.silly_previews a{
	display: block;
	text-decoration: none;
	color: black;
}
.silly_previews a:hover h2{
	text-decoration: underline;
}
.silly_previews .preview_image{
	width: 100%;
	background-position: right center;
	background-size: cover;
	position: relative;
	padding-top: 68.75%;
	flex-shrink: 0;
	overflow: hidden;
}
.silly_previews .preview_image video{
	position:absolute;
	left:0;
	top:0;
	height:100%;
}

/* This clever code will toggle the images on hover, but only if there is a second <div> present to toggle */
.silly_previews .preview_image:nth-of-type(2){
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity 150ms ease-in-out;
}
.silly_previews > :hover .preview_image:nth-last-of-type(2){
	opacity: 1;
}

.silly_previews .title_holder{
	padding: 0.5em 2em 2em;
	text-align: center;
}
.silly_previews h2 {
	font-size: 1.6em;
	margin: 0.5em 0 0;
	line-height: 1.2em;
	font-weight: 600;
	display: inline-block;
	padding: 0.1em 0.5em;
}

@media screen and (max-width: 800px) { 
	.silly_previews article  {width:100%;}
	.silly_previews article:nth-of-type(2n){margin-left:0em;}


}