/**
 * Cinema 9 Site Styling
 * --------------------------------------------------------------------------
 * Designed for 960px screens but can be expanded to fit larger and smaller.
 */

/* ==========================================================================
   Site-wide (navigation, content template, footer)
   ========================================================================== */

body { margin: 0; background-color: #000; }

#site-container {
	display: block;
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: 1240px;
	padding: 20px 20px 0 20px;
	box-sizing: border-box;
}

/* Navigation
   ========================================================================== */

#navigation-container {
	display: flex;
	position: relative;
	width: 100%;
	height: 120px;
	z-index: 2;
}

/* radial gradient below marquee */
#navigation-container::after {
	content: " ";
	display: block;
	position: absolute;
	width: 100%;
	top: -40px;
	height: 360px;
	background: radial-gradient(
		rgba(208,0,0,0.4) 15%,
		rgba(0,0,0,1) 70%
	);
}

#navigation-container #logo {
	position: relative;
	display: block;
	z-index: 2;
	box-shadow: 4px 0 6px -2px rgba(0,0,0,0.6);
}

#logo img {
	display: block;
	position: relative;
	margin: 0;
	width: 240px;
	height: 120px;
}

#navigation-container ul {
	display: flex;
	justify-content: space-around;
	align-items: center;
	position: relative;
	width: 100%;
	height: 120px;
	padding: 0;
	margin: 0;
	background-image: url("marquee-navigation.png");
	box-sizing: border-box;
	list-style: none;
	z-index: 1;
}

#navigation-container ul li {
	display: inline-block;
	margin-top: 3px;
	font-family: "PT Sans Narrow";
	font-size: 31px;
	font-weight: 700;
	text-align: center;
	padding: 0 10px;
	color: #000;
}

#navigation-container ul li a {
	margin: 0;
	color: #000;
	text-decoration: none;
}

#navigation-container::after,
#footer-container::after {
	display: block;
	clear: both;
	content: ' ';
}

/* Content
   ========================================================================== */

#content-container {
	display: block;
	position: relative;
	width: 100%;
	min-height: 200px;
	z-index: 3;
}

/* Footer
   ========================================================================== */

#footer-container::after {
	content: " ";
	display: block;
	position: absolute;
	width: 100%;
	bottom: -75px;
	height: 150px;
	background: radial-gradient(
		rgba(208,0,0,0.3) 15%,
		rgba(0,0,0,1) 70%
	);
	z-index: -1;
}

#footer-container {
	display: block;
	position: relative;
	padding-top: 20px;
	z-index: 1;
	overflow: hidden;
}

#footer-container p {
	font-family: "PT Sans";
	font-size: 12px;
	font-weight: 400;
	color: rgba(255,255,255,0.7);
	margin: 20px;
}

#footer-container p:first-child { float: left;  }
#footer-container p:last-child  { float: right; }

/* ==========================================================================
   Now Playing and Coming Soon
   ========================================================================== */

#movie-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	align-content: flex-start;
	margin-top: 20px;
}

.movie-block {
	display: inline-block;
	position: relative;
	width: 200px;
	margin: 0 20px;
}

.movie-block a {
	margin: 0;
	color: #fff;
	text-decoration: none;
}

/* Movie block thumbnails (single column and double column)
   ========================================================================== */

.movie-block .thumbnail-container {
	/*prepare for 27x40 one size poster*/
	width: 172px;
	height: 255px;
	border: 14px solid #262626;
	border-top-color: #3c3c3c;
	border-left-color: #3c3c3c;
	overflow: hidden;
}

.movie-block .thumbnail-container a {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	height: 100%;
	border: 2px solid #fff;
	box-sizing: border-box;
	overflow: hidden;
}

.thumbnail-container .trailer-thumbnail,
.thumbnail-container .movie-poster {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
	box-sizing: border-box;
}

.movie-block.featured {
	width: 440px;
	order: -1;
}

.movie-block.featured .thumbnail-container {
	/*expand 172px width poster by 240px
	  - 40px for gutter
	  - 200px for additional column*/
	width: 412px;
}

.movie-block.featured .trailer-thumbnail { display: block; }
.movie-block.featured .movie-poster { display: none; }
.movie-block .movie-poster { display: block; }
.movie-block .trailer-thumbnail { display: none; }

.movie-block h2,
.movie-block p {
	font-family: "PT Sans";
	font-size: 16px;
	font-weight: 400;
	color: #fff;
}

.movie-block h2 {
	margin: 20px 0;
	font-size: 24px;
	font-weight: 700;
	width: 90%;
	float: left;
}

.movie-block .get-tickets,
.movie-block .remind-me {
	float: right;
}

.movie-block.order p { line-height: 2; }
.movie-block.order h2 { line-height: 1; }

/* Icon buttons (with optional text left-aligned)
   ========================================================================== */

.ticket {
	display: inline-block;
	position: relative;
	width: 14px;
	height: 22px;
	top: 5px;
	background-image: url("ticket.svg");
}

.email {
	display: inline-block;
	position: relative;
	width: 17px;
	height: 11px;
	top: 4px;
	background-image: url("email.png");
}

.featured .ticket::before,
.featured .email::before {
	width: 80px;
	display: block;
	position: absolute;
}

.featured .ticket::before { content: "Get Tickets"; right: 14px; }
.featured .email::before  { content: "Remind Me"; top: -4px; right: 18px; }

/* ==========================================================================
   Movie Details
   ========================================================================== */

.movie-details {
	display: none;
	margin: 20px 20px 0 20px;
}

/* Trailer and its container
   ========================================================================== */

#trailer-container {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
	border: 14px solid #262626;
	border-top-color: #3c3c3c;
	border-left-color: #3c3c3c;
	overflow: hidden;
	box-sizing: border-box;
}

#trailer-container #trailer {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	border: 2px solid #fff;
	box-sizing: border-box;
	cursor: pointer;
}

#trailer iframe {
	pointer-events: none;
}

#trailer #play-button {
	display: block;
	position: absolute;
	width: 350px;
	height: 55px;
	bottom: -3px;
	left: 0; right: 0;
	margin: 0 auto;
	background-image: url("now-playing-bg.png");
}

#trailer #play-button p {
	font-family: "PT Sans";
	font-size: 24px;
	font-weight: 400;
	color: #fff;
	margin: 20px;
	text-align: center;
}

/* Movie description and showtimes
   ========================================================================== */

#details-container {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	align-content: flex-start;
}

#description,
#reminder-form-container {
	display: block;
	position: relative;
	width: 100%;
	padding-right: 40px;
	box-sizing: border-box;
}

#reminder-form-container {
	display: none;
	position: relative;
	width: 100%;
	margin: 0 auto;
}

#reminder-form-container .label-and-input {
	width: 100%;
}

#description p,
#description h1,
#showtimes h2,
#showtimes li {
	font-family: "PT Sans";
	font-size: 14px;
	font-weight: 400;
	color: #fff;
	margin: 10px 0;
}

#description h1,
#showtimes h2 {
	font-weight: 700;
	font-size: 34px;
}

#showtimes {
	display: block;
	position: relative;
	width: 200px;
	flex-basis: 200px;
	flex-grow: 0;
	flex-shrink: 0;
}

#showtimes ul {
	padding: 0;
	margin: 0;
}

#showtimes li {
	list-style: none;
}

#showtimes li a {
	color: #fff;
	text-decoration: none;
}

#showtimes .ticket {
	margin-right: 10px;
}

#details-container::after {
	content: " ";
	display: block;
	clear: both;
}

/* ==========================================================================
   Ticket Ordering Form
   ========================================================================== */

#order-form {
	margin-top: 20px;
}

#order-form::after {
	content: " ";
	display: block;
	clear: both;
}

#selected-movie {
	float: left;
}

#order-form form {
	display: block;
	position: relative;
	width: 720px;
	float: right;
}

form .form-inputs {
	display: flex;
	justify-content: space-between;
	position: relative;
	width: 100%;
	padding: 0 20px;
	background-color: #262626;
	padding-bottom: 20px;
	box-sizing: border-box;
}

form legend {
	display: block;
	position: relative;
	font-family: "PT Sans";
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	top: -4px;
}

form label {
	display: block;
	font-family: "PT Sans";
	font-size: 16px;
	font-weight: 400;
	color: #fff;
	margin: 10px 0;
}

form fieldset {
	display: inline-block;
	position: relative;
	width: 200px;
	border: none;
	margin-top: 20px;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}

form input,
form textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 0;
	background-color: #363636;
	color: #808080;
	font-family: "PT Sans";
	font-size: 16px;
	font-weight: 400;
	border: 2px solid #555;
	width: 100%;
	height: 40px;
	padding: 10px;
	box-sizing: border-box;
}

form textarea {
	height: 80px;
	resize: none;
}

form input[type="submit"] {
	height: 60px;
	font-size: 24px;
	color: #fff;
	cursor: pointer;
	pointer-events: none;
}

/* ==========================================================================
   About Theatre
   ========================================================================== */

#article {
	display: block;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	margin-top: 20px;
}

#article h1 {
	font-family: "PT Sans";
	margin: 0 20px 10px 20px;
	font-size: 36px;
	font-weight: 700;
	color: #fff;
}

#article p {
	font-family: "PT Sans";
	padding: 10px 20px;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	width: 100%;
	color: #fff;
	box-sizing: border-box;
}

#article a {
	color: #fff;
}

#article img {
	width: 440px;
	height: auto;
	margin: 0 20px;
}

#article .right-aside {
	float: right;
}

/* Contact Form
   ========================================================================== */

#contact-us {
	width: 480px;
}

.not-auto {
	width: 100%;
}

.not-auto::after {
	content: " ";
	display: block;
	clear: both;
}

.label-and-input {
	width: 200px;
	float: left;
}

.label-and-input:nth-child(2) {
	margin-right: 40px;
}

.label-and-input.large {
	width: 440px;
}

/* ==========================================================================
   Responsive specific styling
   ========================================================================== */

@media screen and (min-width: 1240px) {
	.movie-block {
		display: block;
	}

	.movie-block.featured:not(:first-child) {
		width: 200px;
		order: initial;
	}

	.movie-block.featured:not(:first-child) .thumbnail-container { width: 172px; }
	.movie-block.featured:not(:first-child) .trailer-thumbnail { display: none; }
	.movie-block.featured:not(:first-child) .movie-poster { display: block; }
	.featured:not(:first-child) .ticket::before { content: none; }
	.featured:not(:first-child) .email::before  { content: none; }
}

@media screen and (max-width: 1239px) {
	#site-container { max-width: 1000px; }

	.movie-block.order {
		display: block;
	}

	.movie-block.featured.order {
		width: 200px;
		order: initial;
	}

	.movie-block.featured.order .thumbnail-container { width: 172px; }
	.movie-block.featured.order .trailer-thumbnail { display: none; }
	.movie-block.featured.order .movie-poster { display: block; }
}


@media screen and (max-width: 999px)  {
	#site-container {
		max-width: 760px;
	}

	#selected-movie {
		float: none;
		display: block;
		position: relative;
		margin: 0;
	}

	.movie-block.order {
		display: block;
	}

	.movie-block.featured.order {
		width: 440px;
		order: initial;
	}

	.movie-block.featured.order .thumbnail-container { width: 412px; }
	.movie-block.featured.order .trailer-thumbnail { display: block; }
	.movie-block.featured.order .movie-poster { display: none; }

	.movie-block.order {
		margin: 0 auto;
	}

	.movie-block {
		display: block;
	}

	.movie-block.featured:not(:first-child) {
		width: 200px;
		order: initial;
	}

	.movie-block.featured:not(:first-child) .thumbnail-container { width: 172px; }
	.movie-block.featured:not(:first-child) .trailer-thumbnail { display: none; }
	.movie-block.featured:not(:first-child) .movie-poster { display: block; }
	.featured:not(:first-child) .ticket::before { content: none; }
	.featured:not(:first-child) .email::before  { content: none; }
}

@media screen and (max-width: 759px) {
	#site-container {
		max-width: 520px;
	}

	#navigation-container {
		flex-direction: column;
		height: auto;
	}

	#logo img {
		margin: 0 auto;
	}

	.movie-block {
		display: block;
	}

	.movie-block.featured {
		width: 200px;
		order: initial;
	}

	.movie-block.featured .thumbnail-container { width: 172px; }
	.movie-block.featured .trailer-thumbnail { display: none; }
	.movie-block.featured .movie-poster { display: block; }
	.featured .ticket::before { content: none; }
	.featured .email::before  { content: none; }

	#details-container {
		flex-direction: column;
	}

	#description {
		padding: 0;
	}

	#order-form form {
		width: 100%;
	}

	.form-inputs {
		flex-wrap: wrap;
	}

	form fieldset {
		width: 100%;
	}
}

@media screen and (max-width: 519px) {
	#site-container {
		max-width: 100%; /*support iPhone 6 and up*/
		padding: 0;
	}

	.movie-block {
		margin: 0 auto;
	}

	#article .right-aside {
		width: 100%;
		margin: 0;
		float: none;
	}

	#article p {
		width: 100%;
		margin: 0;
		padding: 10px 20px;
		box-sizing: border-box;
	}

	#trailer #play-button {
		display: none;
	}

	.movie-block.order {
		display: block;
	}

	.movie-block.featured.order {
		width: 200px;
		order: initial;
	}

	.movie-block.featured.order .thumbnail-container { width: 172px; }
	.movie-block.featured.order .trailer-thumbnail { display: none; }
	.movie-block.featured.order .movie-poster { display: block; }

	#footer-container p:first-child { float: none; }
	#footer-container p:last-child { float: none; }

	#contact-us {
		width: 100%;
	}

	#contact-us .label-and-input {
		width: 100%;
	}

	#details-container {
		width: 100%;
	}
}
