/* ------------------------------------------------------------ *\
	Header
\* ------------------------------------------------------------ */

.header { border-bottom: 1px solid #f4a3c3; }

.header .navbar { padding-top: 10px; padding-bottom: 3px; margin-bottom: 0; }

@media (max-width: 1024px) {
	.header .navbar { display: flex; align-items: center; justify-content: space-between; }

	.header .navbar:before,
	.header .navbar:after { display: none; }

	.header .navbar .navbar-header { width: 100%; }
	.header .navbar .search { flex: 0 0 auto; }
}
@media (max-width: 767px) {
	.header .navbar { display: block; padding-bottom: 10px; }
	.header .navbar .navbar-brand { display: block; text-align: center; float: none; margin-bottom: 15px; }
}

div.navbar-header .navbar-brand {
	color: #f4a3c3;
	-webkit-transform: scaleY(1.7);
	transform: scaleY(1.7);
}

/* ------------------------------------------------------------ *\
	Main
\* ------------------------------------------------------------ */

.main { padding-top: 54px; }

/* ------------------------------------------------------------ *\
	Cube
\* ------------------------------------------------------------ */

/* Cube Wrapper */
.cube-wrapper { height: 540px; padding-top: 120px; position: relative; z-index: 5; }
.cube-wrapper:before { content: ''; background: #dbebef; width: 100%; height: 252px; position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; }

@media (max-width: 479px) {
	.cube-wrapper { height: 330px; padding-top: 70px; }
	.cube-wrapper:before { height: 50%; }
}

/* Cube */
.cube { width: 260px; height: 260px; margin: 0 auto; position: relative; z-index: 5; transform-style: preserve-3d; transform-origin: center center; animation: rotateCube 20s infinite linear; }

.cube a { text-decoration: none; text-align: center; color: #fff; text-shadow: 0 0 5px rgba(0, 0, 0, .7); border: 2px solid #fff; width: 100%; height: 100%; padding: 20px 15px; position: absolute; top: 0; left: 0; opacity: .9; overflow: hidden; transition: background .3s, opacity .3s; }
.cube a:hover { background: #111 !important; opacity: 1; }
.cube a h4 { font-weight: 400; font-size: 28px; line-height: 1.14; height: 130px; overflow: hidden; }
.cube a h6 { font-size: 18px; margin-bottom: 20px; }
.cube a i { font-size: 36px; line-height: 1; margin-bottom: 10px; }

.cube a:first-child { transform: rotateX(-270deg) translateY(-130px); transform-origin: center top; }
.cube a:nth-child(2) { transform: translateZ(130px); }
.cube a:nth-child(3) { transform: rotateY(-270deg) translateX(130px); transform-origin: right center; }
.cube a:nth-child(4) { transform: rotateY(180deg) translateZ(130px); }
.cube a:nth-child(5) { transform: rotateY(270deg) translateX(-130px); transform-origin: left center; }
.cube a:last-child { transform: rotateX(270deg) translateY(130px); transform-origin: center bottom; }

@keyframes rotateCube {
	from { transform: rotateX(0deg) rotateY(0deg); }
	to { transform: rotateX(360deg) rotateY(360deg); }
}

@media (max-width: 479px) {
	.cube { width: 180px; height: 180px; }

	.cube a { padding: 10px 7px; }
	.cube a h4 { font-size: 17px; height: 80px; }
	.cube a h6 { font-size: 14px; }
	.cube a i { font-size: 25px; margin-bottom: 0; }

	.cube a:first-child { transform: rotateX(-270deg) translateY(-90px); }
	.cube a:nth-child(2) { transform: translateZ(90px); }
	.cube a:nth-child(3) { transform: rotateY(-270deg) translateX(90px); }
	.cube a:nth-child(4) { transform: rotateY(180deg) translateZ(90px); }
	.cube a:nth-child(5) { transform: rotateY(270deg) translateX(-90px); }
	.cube a:last-child { transform: rotateX(270deg) translateY(90px); }
}

/* ------------------------------------------------------------ *\
	List
\* ------------------------------------------------------------ */

.list-blocks { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; text-align: center; color: #fff; margin: 0; }

.list-blocks li { flex: 0 0 auto; width: 250px; height: 250px; margin: 30px; position: relative; z-index: 5; transition: color .3s, background .3s; }
.list-blocks li a:hover { color: #fff; background: #111 !important; }
.list-blocks a { display: block; text-decoration: none; color: inherit; width: calc(100% - 20px); height: calc(100% - 30px); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow: hidden; }
.list-blocks a h4 { font-weight: 400; font-size: 22px; line-height: 1.14; }
.list-blocks a h6 { font-size: 18px; margin-bottom: 17px; }
.list-blocks a i { font-size: 36px; line-height: 1; margin-bottom: 10px; padding-top: 10px; }

@media (max-width: 1024px) {
	.list-blocks li { width: 200px; height: 200px; margin: 15px; }
	.list-blocks a { height: calc(100% - 20px); }
	.list-blocks a h4 { font-size: 19px; line-height: 1.2; }
	.list-blocks a h6 { font-size: 14px; margin-bottom: 15px; }
	.list-blocks a i { font-size: 26px; margin-bottom: 7px; }
}
@media (max-width: 479px) {
	.list-blocks { display: block; }

	.list-blocks li { display: block; width: 180px; height: 180px; margin: 15px auto; }
	.list-blocks a { height: calc(100% - 30px); }
	.list-blocks a h4 { font-size: 16px; }
	.list-blocks a h6 { font-size: 12px; }
}

/* ------------------------------------------------------------ *\
	Section
\* ------------------------------------------------------------ */

/* Section Blocks */
.section-blocks { background: #f3f3f3; padding: 15px; }

.section-blocks .section__body { max-width: 1170px; margin: 0 auto; }

/* ------------------------------------------------------------ *\
	Article
\* ------------------------------------------------------------ */

.article { background: #f8f8f8; padding: 27px 16px 23px; margin-bottom: 12px; }
.article:after { content: ''; display: table; line-height: 0; clear: both; }

.article h3 { margin-top: 0; }
.article h3 a { color: inherit; transition: color .3s; }
.article h3 a:hover { color: #337ab7; }

.article .article__image { width: 135px; }
.article .article__image span { display: block; background-position: center center; background-repeat: no-repeat; background-size: cover; padding-top: 74.07%; }
.article .article__image.left { float: left; margin-right: 15px; }
.article .article__image.right { float: right; margin-left: 15px; }

@media screen and (max-width: 991px) {
    div.text {
	    padding-bottom: 0px !important;
	}
}
@media (max-width: 479px) {
	.article { padding: 27px 16px; }

	.article .article__image { width: 100%; }

	.article .article__image.left,
	.article .article__image.right { float: none; margin: 0 auto 15px; }
	div.text {
	    padding-bottom: 0px !important;
	}
}

/* ------------------------------------------------------------ *\
	Search
\* ------------------------------------------------------------ */

.search form > * + * { margin-left: 12px; }

@media (max-width: 767px) {
	.search form > * + * { margin: 9px 0 0; }
}

/* ------------------------------------------------------------ *\
	Overrides
\* ------------------------------------------------------------ */

/* Intro */
.home-image img,
.article-image img { display: block; width: 100%; height: auto; }

/* Form */
.form-control { background: #f3f3f3; box-shadow: none; border: 0; }

/* Navbar */
.navbar-default { background: #fff; border: 0; padding: 15px 0; }

.navbar-default .navbar-brand { font: 700 20px/1 'Roboto', sans-serif; color: #010100; height: auto; padding: 11px 0 4px; }
.navbar-default .navbar-form { border: 0; }
.time-machine-logo { float: left; }

@media (max-width: 1024px) {
	.navbar-default .navbar-brand { font-size: 23px; }
}
@media (max-width: 767px) {
	.navbar-default .navbar-form { text-align: right; padding: 0; margin: 0; }
	.navbar-default .navbar-form .form-group { text-align: left; }
	.time-machine-logo { float: none;
    margin: 0 auto 10px;
    width: 170px;
    display: block; }
}

#search-form input {
	min-width: 200px;
}
@media (max-width: 350px) {
	#search-form input {
		min-width: 100px;
	}
}
#search-form button {
	background-color: #f4a3c3;
}
.videoEmbed { display: block; padding-top: 66.67%; margin: 15px 0; position: relative; z-index: 5; }

.article-text .videoEmbed,
.videoEmbed,
.videoEmbed > iframe { width: 100% !important; }

.videoEmbed > iframe { height: 100%; padding: 0 !important; position: absolute; top: 0; left: 0; }
