* {
	box-sizing: border-box;
	margin: 0;
}
:root {
	font-size: 14px;
}
body {
	background-color: #222;
	color: #ddd;
	font-family: "Hind", sans-serif;
	min-height: 100vh;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
}

.header {
	display: flex;
	align-items: center;
	padding: 1rem 2rem;
	border-bottom: 1px solid #000;
}
.header_logo {
	background: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><foreignObject width=%22100px%22 height=%22100px%22><div xmlns=%22http://www.w3.org/1999/xhtml%22 style=%22font-size:70px%22>🎞️</div></foreignObject></svg>");
	background-size: 40px 40px;
	width: 40px;
	height: 44px;
	margin-right: 1rem;
}
.header_menu {
	display: flex;
	padding: 0;
	list-style-type: none;
}
.header_menu__item {
	margin-left: 0.8rem;
}
.header_menu__item:first-child {
	margin-left: 0px;
}
.header_menu__item a {
	color: #eee;
	text-decoration: none;
}
.header_menu__item a:hover {
	text-decoration: underline;
}

.main {
	padding: 1rem 2rem;
}
.main_breadcrumbs {
	display: flex;
	list-style-type: none;
	padding: 0;
}
.main_breadcrumbs__item {
	margin: 0 0.25rem;
}
.main_breadcrumbs__item:first-child {
	margin-left: 0px;
}
.main_breadcrumbs__item:not(:last-child):after {
	content: "›";
	display: inline-block;
	margin-left: 0.25rem;
}
.main_breadcrumbs__item a {
	color: #eee;
	text-decoration: none;
}
.main_breadcrumbs__item a:hover {
	text-decoration: underline;
}

.movie {
	margin-top: 7rem;
	text-align: right;
	display: grid;
	grid-template-rows: 100%;
	grid-template-columns: 466px 360px 290px;
	grid-template-areas: "textArea formArea ticketsArea";
	justify-content: center;
}
.movie__title {
	margin-top: 1rem;
	font-size: 2rem;
}
.movie__time {
	margin-top: 1rem;
	font-size: 1em;
}
.movie__info {
	grid-area: textArea;
	align-items: center;
	padding-right: 40px;
}

.form__booking {
	grid-area: formArea;
	width: 360px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: flex-start;
	max-width: 500px;
}
.seats_booking {
	position: relative;
	padding: 0;
	margin: 15px;
	display: grid;
	grid-template-rows: repeat(5, 30px);
	grid-template-columns: repeat(11, 30px);
	border: none;
	padding-top: 3rem;
}
.seats_booking:before {
	content: "SCREEN";
	text-align: center;
	position: absolute;
	top: 0;
	left: -15px;
	display: block;
	width: 360px;
	height: 2rem;
	border-top-width: 2px;
	border-radius: 50%;
	border-top-color: #fff;
	border-top-style: solid;
	filter: drop-shadow(0px 3px 10px #fff);
}
.form__seat:before {
	content: attr(for);
	height: 26px;
	width: 26px;
	border-radius: 3px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	background-color: #ddd;
	color: #222;
	cursor: pointer;
	transition: box-shadow 150ms linear;
	box-shadow: 0px 0px 0px #fff;
}
.form__seat--placeholder:before {
	content: "";
	background-color: transparent;
	box-shadow: 0px 0px 0px #fff;
	cursor: unset;
}
.form__seat_input:hover + .form__seat:before,
.form__seat_input:focus + .form__seat:before {
	background-color: rgb(255, 255, 255);
	box-shadow: 0px 0px 4px #fff;
}
.form__seat_input:checked + .form__seat:before,
.form__seat--selected:before {
	background-color: rgb(240, 150, 150);
}
.form__seat_input:disabled + .form__seat:before,
.form__seat--taken:before {
	cursor: unset;
	background-color: #777;
	box-shadow: 0px 0px 0px #fff;
}

.form__seat[for="1-1"] {
	grid-column-start: 2;
}
.form__seat[for="2-1"] {
	grid-column-start: 4;
}
.form__seat[for="3-2"] {
	grid-column-start: 4;
}
.form__seat[for="4-2"] {
	grid-column-start: 4;
}

.form__button {
	width: 100px;
	box-shadow: 0px 0px 0px #fff;
	border-radius: 2px;
	transition: all 150ms linear;
	background-color: #ddd;
	border-style: solid;
	border-color: transparent;
	margin-left: 7px;
}
.form__button:not(:disabled):hover,
.form__button:not(:disabled):focus {
	background-color: rgb(255, 255, 255);
	box-shadow: 0px 0px 4px #fff;
	border: 2px solid white;
}
.form__tickets-count,
.modal__count {
	color: rgb(240, 150, 150);
}

.seats_labels {
	margin: 15px auto 15px auto;
	text-align: center;
	line-height: 30px;
	border: none;
	padding: 0;
}
.seats_labels .form__seat:before {
	cursor: unset;
}
.seats_labels__span {
	margin: 0px 0.9rem 0px 0.3rem;
}
.seats_labels__span:last-child {
	margin: 0px 0px 0px 0.3rem;
}

.booked_tickets {
	width: 100%;
	text-align: left;
	padding-left: 40px;
	grid-area: ticketsArea;
}
.booked_tickets__heading {
	font-size: 1.2rem;
	margin-left: 14px;
}
.tickets_cont {
	max-height: 370px;
	overflow-y: auto;
	width: 250px;
}
.booked_tickets__ticket {
	width: 220px;
	display: flex;
	justify-content: space-between;
	border-radius: 10px;
	padding: 3px 14px;
	background: linear-gradient(to bottom, #00000050, #00000050 10%, transparent);
	border: 1px solid #ffffff50;
	margin-bottom: 7px;
	box-shadow: 1px 1px 1px #666;
}

.footer {
	padding: 1rem 2rem;
	position: fixed;
	bottom: 0;
	width: 100%;
}
.footer__link {
	color: #aaa;
}
.footer__link:hover {
	color: #fff;
}

.modal_wrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	background: #00000080;
}
.modal {
	width: 270px;
	max-height: 408px;
	padding: 14px;
	position: relative;
	display: grid;
	grid-template-rows: 23px auto 23px;
	grid-template-columns: 100%;
	gap: 23px;
	align-content: flex-start;
	justify-content: center;
	grid-template-areas:
		"modalHeader"
		"modalTickets"
		"modalText";

	background: #111;
	border: 1px solid #888;
}
.modal__header {
	grid-area: modalHeader;
	font-size: 1.1rem;
	margin-left: 14px;
	text-align: center;
}
.modal__tickets_cont {
	grid-area: modalTickets;
	max-height: 288px;
	overflow-y: auto;
}
.modal__text {
	grid-area: modalText;
	text-align: right;
}
.modal__button {
	margin-left: 7px;
}
.modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	cursor: pointer;
	font-size: 1.2rem;
}

@media (max-width: 1117px) {
	.movie {
		grid-template-rows: auto auto;
		grid-template-columns: 360px 290px;
		grid-template-areas:
			"textArea textArea"
			"formArea ticketsArea";
		justify-content: center;
		margin-top: 1rem;
	}
	.movie__info {
		text-align: center;
		margin-bottom: 2rem;
	}
	.movie__info p {
		display: inline-block;
		margin-right: 0.5rem;
	}
	.tickets_cont {
		max-height: 300px;
	}
}

@media (max-width: 730px) {
	:root {
		font-size: 12px;
	}
	.movie {
		margin-top: 1rem;
		text-align: center;
		grid-template-rows: auto auto;
		grid-template-columns: 100%;
		grid-template-areas:
			"textArea"
			"formArea"
			"ticketsArea";
	}
	.movie__info {
		padding-right: 0px;
	}
	.form__booking {
		justify-self: center;
	}
	.booked__tickets {
		padding-left: 0;
		text-align: center;
	}
	.booked__tickets--ticket {
		margin: auto;
	}
	.booked_tickets__heading {
		text-align: center;
	}
	.tickets_cont {
		margin: auto;
		max-height: 220px;
	}
	.booked_tickets__ticket {
		margin: 0 auto 7px auto;
	}
	.footer {
		position: relative;
	}
	.modal__tickets_cont {
		max-height: 200px;
	}
}
