html {
  box-sizing: border-box;
  font-size: 62.5%; /* font-size: 10px; */
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

body {
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #141627;
  font-family: "Roboto", sans-serif;
}

.back {
  width: 7rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: brown;
  border-radius: 1rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
	z-index: 1;
}

.back a {
  color: white;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Reset Style */
a {
  text-decoration: none;
}

.head {
  width: 100%;
  height: 40rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-image: url(./background.jpg);
	background-size: cover;
	background-repeat: no-repeat; */
  position: relative;
  overflow: hidden;
}

.head:before {
  content: "";
  position: absolute;
  width: 230%;
  height: 230%;
  z-index: -2;
  background: url(./background.jpg) 0 0 repeat;
  transform: rotate(21deg) scale(1.5);
}

.head::after {
  content: "";
  position: absolute;
  width: 230%;
  height: 230%;
  z-index: -1;
  background-color: rgba(8, 120, 124, 0.295);
  transform: rotate(21deg) scale(1.5);
}

.search-container {
  position: relative;
}

.search {
  width: 70vw;
  height: 5rem;
  outline: none;
  border: none;
  border-radius: 0.8rem;
  padding: 1rem 2rem;
  color: white;
  font-size: 1.7rem;
  background-color: rgb(34, 37, 37);
}

.link-result:hover {
  transform: scale(1.1);
}

.search-result {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 97%;
  max-height: 15rem;
  padding: 1rem;
  border-radius: 0 0 1rem 1rem;
  background-color: rgba(34, 37, 37, 0.822);
  z-index: 2;
  color: white;
  font-weight: bold;
  overflow-y: scroll;
}

.search-result-item {
  width: 100%;
  min-height: 6rem;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 0.1rem solid rgba(128, 128, 128, 0.685);
}

.search-result-img {
  max-width: 20%;
  height: auto;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-right: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-result-img img {
  width: 100%;
}

.search-result-name {
  color: white;
  font-size: 1.4rem;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: #464248 #222525;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 14px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: #464248;
  border-radius: 1rem;
  border: 0px solid #ffffff;
}

.body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
}

.film {
  width: 40rem;
  height: 16rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: rgba(60, 194, 194, 0.199);
  padding: 1rem;
  margin: 0.5rem;
  flex-grow: 1;
  border-radius: 0.8rem;
}

.left {
  width: 10rem;
	height: 13rem;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
	flex-shrink: 0;
}

.left img {
	align-self: stretch;
}

.right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 2rem;
  color: white;
}

.film-name {
  font-size: 1.8rem;
  height: 5rem;
  margin-bottom: 0.1rem;
	line-height: 1.1;
}

.film-years {
  font-size: 1.6rem;
	margin-top: 0.3rem;
}

.film-vote {
  font-size: 1.6rem;
	margin-bottom: 0.3rem;
}

.film-imdb {
  width: 4rem;
}

.film-imdb img {
  width: 100%;
}

.more {
  width: 10rem;
  height: 4rem;
  outline: none;
  border: none;
  margin: 2rem;
  padding: 1rem;
  border-radius: 0.8rem;
  color: white;
  background-color: rgb(240, 103, 78);
  cursor: pointer;
}

.more:hover {
  background-color: rgb(243, 93, 66);
}
