@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: Poppins;
  box-sizing: border-box;
}
body {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}
.genres-list li {
  cursor: pointer;
  color: #aaa;
  padding: 4px;
}
.genres-list li:hover {
  color: #fff;
}
/* Genre end */
nav {
  background-color: #000;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem;
}

.logo-text {
  font-size: 2rem;
  font-weight: 600;
}
.logo {
  margin-right: auto;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-input {
  margin-right: 10px;
  width: 11rem;
  font-size: 1.5rem;
  border-radius: 6px;
}

.type-btn {
  margin-left: auto;
  height: 2.5rem;
  width: 5rem;
  border: none;
  border-radius: 6px;
}
.search-btn {
  width: 4rem;
  border-radius: 6px;
  height: 2.3rem;
  text-align: center;
}
.search-btn:hover {
  color: #fff;
  background-color: rgb(29, 44, 29);
}
/* end of nav */

.main {
  display: flex;
  height: 100vh;
  margin-top: 5rem;
}
.aside {
  width: 250px;
  padding: 1rem;
  background-color: #000;
  color: #fff;
}
.cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(236, 205, 205);
  width: 185px;
  height: 350px;
  overflow: hidden;
  border-radius: 15px;
}
.card:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.movie-main {
  padding: 20px;
  overflow-y: overlay;
}
.movie-main h2 {
  padding-bottom: 16px;
}
.genres {
  width: 250px;
}
.card .card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-details {
  padding: 10px 5px;
}
.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modal */

.modal {
  display: none;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  overflow: overlay; /* Enable scroll if needed */
  border-radius: 15px;
  max-width: 900px;
  margin: 5rem auto; /* 15% from the top and centered */
  padding: 20px;
  position: relative;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-height: 80vh;
}
.modal-content img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  padding: 20px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  right: 10px;
  position: sticky;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.details {
  padding: 20px;
  line-height: 1.7;
  overflow-y: overlay;
}
.details > * {
  margin-bottom: 10px;
}
.btn {
  text-align: center;
  border: none;
  padding: 6px 10px;
  font-size: 1rem;
  background-color: rgb(53, 53, 126);
  color: #fff;
  border-radius: 4px;
  width: max-content;
  margin: 10px auto 0;
  display: block;
  cursor: pointer;
}
.details-price {
  text-align: center;
}
.details-title {
  text-align: center;
}
.details-overview {
  text-align: justify;
}

/* chek */

.checkout {
  display: none;

  background-color: white;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%;
}
.checkout-summary {
  max-width: 500px;
  margin: auto;
  text-align: center;
  border: 1px solid #000;
  padding: 10px;
}
.wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.checkout-summary h4 {
  margin-bottom: 25px;
}
.checkout-summary h2 {
  margin-bottom: 5px;
}
.checkout-summary input {
  width: 50px;
  display: block;
  padding: 0 5px;
}
.back-btn {
  display: inline-block;
  background-color: rgb(92, 69, 24);
}
@media only screen and (max-width: 750px) {
  .logo-text {
    font-size: 1rem;
  }
  .aside {
    width: 150px;
    padding: 1rem;
  }
  .genere-heading {
    font-size: 1rem;
    padding-top: 15px;
  }
}
