@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

body {
  background: rgb(12,11,13);
  background: linear-gradient(to top left, rgba(12,11,13,1) 0%, rgba(19,4,28,1) 50%, rgba(10,6,0,1) 100%);
  font-family: poppins, sans-serif;
  min-height:100vh;
  color: #fff;
}

main {
  position: relative;;
}

.title {
  color: #eaa917;
}

.navbar {
  padding: 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: black;
  box-shadow: 1px 2px 8px #2b1f1f;
}

.searchContainer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 4px 0;
}

.searchInput {
  background: transparent;
  border: none;
  border-bottom: 1px solid gray;
  outline: none;
  height: 30px;
  width: 200px;
  text-indent: 8px;
  caret-color: #fff;
  font-family: poppins;
  color: #fff;
  margin-left: 4px;
}

.searchIcon {
  padding: 4px;
}

#movieContainer {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  justify-content: center;
}

.movie_card img {
  min-height: 300px;
  min-width: 100%;
  height: 300px;
  width: 100%;
  object-fit: fill;
}

.movie_card {
  padding: 8px 24px;
  margin: 8px;
  width: 250px;
  height: 420px;
  border-radius: 5px;
  transition: transform 0.5s ease-in;
}

.modal {
  z-index: 3;
  min-height: 100vh;
  min-width: 100vw;
  background: rgba(255, 255, 255, 0.5);
  position: fixed;
  color: black;
  top: 0;
  padding: 16px;
  display: flex;
  transition: all 0.5s ease-in;
}

.movieDetails {
  min-height: 90%;
  min-width: 50%;
  width: fit-content;
  height: 90%;
  margin: auto;
  color:#fff;
  background-color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border-radius: 4px;
  position: relative;
  flex-wrap: wrap;
}

.flex {
  display: flex;
}

.crossIcon{
  transform: scale(1.3);
  font-weight: bold;
  width:fit-content;
  cursor: pointer;
  margin: 1 1 1 auto;
  height: 25px;
  width:25px;
  padding-left: 6px;
  border-radius: 2px;
  color:white !important;
  position: absolute;
  right: 8px;
  top: 8px;

}

.crossIcon:hover {
  background: #eaa917;
  color:#fff;
}

.movieDetails img {
  position: absolute;
  width:100%;
  height: 100%;
  opacity: 0.2;
  object-fit: contain;
}

.movieDetails .movieInfo {
  z-index: 5;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
  margin: auto;
}

.detailLabel {
  min-width: 120px;
  display: inline-block;
  width: 120px;
  color: rgb(234, 169, 23);
  font-weight: bold;
}

.imgBorder {
  border: 3px solid #fff;
  border-radius: 3px;
}