/* Content */

.content {
    padding: 3em 0;
}

.row {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	padding: 0 2em;
}

.box {
	width: 50%;
	border: 10px solid #f9f9f9;
	background: #fff;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
}

.box:last-child {
	background: #E8EBEC;
	-webkit-justify-content: flex-start;
	justify-content: flex-start;
}

.box--centered {
	text-align: center;
}

pre {
	padding: 0 2em;
	margin: 0;
	color: #436843;
	tab-size: 2;
	font-family: 'Inconsolata', monospace;
	line-height: 1.5;
	font-weight: bold;
	font-size: 0.85em;
}

/* Download button style */

.Download {
    display: inline-block;
    width: 300px;
    height: 120px;
}

/* Related demos */

.content--related {
    text-align: center;
    font-weight: bold;
}

.media-item {
    display: inline-block;
    padding: 1em;
    vertical-align: top;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}

.media-item__img {
    max-width: 100%;
    opacity: 0.3;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.media-item:hover .media-item__img,
.media-item:focus .media-item__img {
    opacity: 1;
}

.media-item__title {
    margin: 0;
    padding: 0.5em;
    font-size: 1em;
}

@media screen and (max-width: 60em) {
    .row {
		display: block;
		margin-bottom: 3em;
	}

	.box {
		width: 100%;
		padding: 1em;
		background: transparent;
	}
}

@media screen and (max-width: 40em) {
    .codrops-header h1 {
        font-size: 2.8em;
    }
}
