* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  width: 100%;
  height: 70px;
  background-color: black;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  height: 40px;
}

.search {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-bar {
  width: 80%;
  height: 40px;
  background-color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 0 10px;
}

.search-box {
  flex: 1;
  height: 100%;
  font-size: 16px;
  border: none;
  outline: none;
}

#search-icon {
  height: 20px;
  cursor: pointer;
}

.movies {
  width: 100%;
  padding: 50px 5%;
  background-color: #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* justify-content: space-around; */
}

.movie {
  width: 200px;
  height: 300px;
  background-color: red;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.overlay:hover {
  opacity: 1;
}

.details h1 {
  font-size: 16px;
}

.details h2 {
  font-size: 14px;
  font-weight: normal;
}
