@font-face {
	font-family: Inter;
	src: url("./assets/fonts/Inter-VariableFont_slnt\,wght.ttf");
}
/* Null style------------------------------------------- */
:root {
  --first-color: #4b224b;
  --second-color: #5f3769;
}
*,
*::before,
*::after {
	padding: 0;
	margin: 0;
	border: 0;
	box-sizing: border-box;
}
a {
	text-decoration: none;
}
ul,
ol,
li {
	list-style: none;
}
img {
	vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
	font-size: inherit;
}
html,
body {
	height: 100%;
	background:var(--first-color);
	font-size: 20px;
	line-height: 2em;
	color: #fff;
	font-weight: 400;
	font-family: Inter;
	scroll-behavior: smooth;
}
.wrapper {
	min-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	/* max-width: 1440px;
	margin: 0 auto;  */
}

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

.header {
	position:relative;
	padding: 1rem;
	display: flex;
	justify-content: space-around;
	background-color: var(--second-color);
}
/* @media (max-width: 450px){
.header {
	flex-direction: column;
	}
} */
.header__list {
	display: flex;
	flex-wrap: wrap;
}
@media (max-width: 768px){
	.header__list {
		position: absolute;
		flex-direction: column;
		align-items:flex-start;
		width: 620px;
		height: 600px;
		background-color: var(--second-color);
		z-index: 2;
		margin: 0px;
		padding: 135px 0px 0px 0px;
		top: 0;
		right: -620px;
		transition: 1.0s;
	}
	.header__list.open{
		right: 0;
		box-shadow: 0 0 0 10000px rgba(0,0,0,0.5);
	}
} 
@media (max-width: 620px){
	.header__list {
		width: 100vw;
	}
}
.header__item {
	margin-right: 30px;
	font-size: 24px;
	font-weight: bold;
}
@media (max-width: 830px){
	.header__item {
	margin-right: 20px;
	font-size: 20px;
	font-weight: bold;
	}
}
@media (max-width: 768px){
	.header__item {
		margin: 0px 0px 16px 127px;
		font-size: 35px;
		line-height: 72.55px;
	}
}
@media (max-width: 320px){
	.header__item {
		margin: 0 auto;
	}
} 
.header__item a {
	color:#fff;
}
.header__item a:hover {
	color:gold;
	cursor: pointer;
}
.header__item--popular {
}
.header__item--rated {
}
.header__item--latest {
}
.header__item--upcoming {
}
.header__form {
	
}
.header__search {
	background-color: transparent;
	border: 2px solid var(--first-color);
	border-radius: 50px;
	font-size: 1rem;
	padding: 0.5rem 1rem;
	color: #000;
	opacity: 0.7;
}
@media (max-width: 620px) {
	.header__search {
		width: 85%;
	}
}
@media (max-width: 330px) {
	.header__search {
		width: 100%;
	}
}
.header__search::placeholder {
	color: #b573c5;
}
.header__search:focus {
	outline: none;
	background-color: #fff;
}
/*=============== Burger menu =============== */
.hamburger {
	display: none;
}
@media (max-width: 768px) {
.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-width: 50px;
	height: 50px;
	cursor: pointer;
	user-select: none;
	z-index: 3;
	margin: 0px 20px 0px 0px;
	}
}
@media (max-width: 620px){
	.hamburger {
	margin: 0px 20px 0px 20px;
	}
}
.line {
	width: 100%;
	height: 3px;
	background: #fff;
	margin: 5px 0;
	z-index: 15;
	transition: all 0.3s ease-in-out;
}
.hamburger.open .line1 {
	transform: rotate(-45deg) translate(-10px, 12px);
}
.hamburger.open .line2 {
	opacity: 0;
}
.hamburger.open .line3 {
	transform: rotate(45deg) translate(-6px, -8px);
} 
/* Main------------------------------------------- */

.main {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.movie {
	/* flex: 0 1 25%; */
	width: 300px; 
	margin: 0.5rem;
	background-color: var(--second-color);
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
	position: relative;
	overflow: hidden;
	border-radius: 3px;
}
.movie__poster {
	width: 100%;
}
.movie__text {
	color: #eee;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 1rem 1rem;
	letter-spacing: 0.5px;
}
.movie__title {
	margin-top: 0px;
	line-height: 1.2rem;
	font-weight: bold;
}
.movie__rate {
	background-color: var(--first-color);
	padding: 0.25rem 0.5rem;
	border-radius: 70px;
	font-weight: bold;
}
.movie__rate.green {
	color: rgb(47, 185, 89);
}
.movie__rate.orange {
	color: orange;
}
.movie__rate.red {
	color: red;
}
.movie__overview {
	background-color: #fff;
	color: #000;
	line-height: 1.5rem;
	padding: 2rem;
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	max-height: 100%;
	transform: translateY(101%);
	overflow-y: auto;
	transition: transform 0.3s ease-in;
}
.movie:hover .movie__overview {
	transform: translateY(0);
}
.movie__overview-title {
	text-transform: uppercase;
	text-align: center;
	font-weight: bold;
	margin-bottom: 1rem;
	color: grey;
}

/* Footer------------------------------------------ */

.footer {
	background-color: var(--second-color);
}
.footer__list {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
}
.footer__item {
	flex: 0 1 33.3333%;
	text-align: center;
	font-size: 1.5rem;
}
@media (max-width: 768px) {
	.footer__item {
	flex: 1 1 100%;
	}
}
.footer__link-author {
	color: #fff;
}
.footer__link-school {
}


