* {
    margin:0;
    box-sizing:border-box;
}
body {
    display: flex;
    justify-content: center;
    height:100vh;
    background-color: #22254b;
}
header {
    display: flex;
    position: absolute;
    background-color: #373b69;
    width:100%;
    justify-content: end;
    padding: 20px;
}
input {
    width:200px;
    height:30px;
    background-color:transparent;
    border-radius: 20px;
    border: 2px solid #22254b;
    outline: none;
    padding-left:10px;
    color:white;    
}
input:focus {
    background-color: #22254b;
}
input::placeholder {
    color: #7374b3;
}
.container {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap:10px;
    position: absolute;
    margin-top: 90px;
    left: 10px;
    right:10px;
    /* border-radius: 70px; */
}
.movie {
    width:300px;
    height: 500px;
}
.img-con {
    height: 80%;
}
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.par-con {
    display: flex;
    height: 20%;
    background-color: #373b69;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
}
p {
    color: white;
    text-align: center;
    font-weight: bolder;
    font-size: 25px;
}
.rating {
    background-color: #22254b;
    height: 40px;
    padding: 10px;
    border-radius: 10px;
    color: #bf9300;
    font-weight: bolder;
    font-size: 17px;
}

.hidden {
    display: none;
  }

/* Media query for phones (max-width: 768px) */
@media only screen and (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
  } 
  .movies {
    margin-bottom: -30px;
  }
  input {
    font-size: 1.1em;
  }
   .par-con {
      flex-direction: row;
      align-items: center;
      height: 40px;
  }
  p {
    font-size: 15px;
    text-align: left;
  }
}