* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --bg-primary: linear-gradient(rgba(128, 0, 128, 1), rgba(0, 0, 255, 0.8));
}

body {
  font-family: cursive;
  word-spacing: 5px;
  background: var(--bg-primary);
}

.btn {
  outline: none;
  border-radius: 16px;
  padding: 0.5rem;
  font-size: 1.5rem;
  border: none;
  background-color: hsl(278, 50%, 51%);
  box-shadow: 0px 7px 15px rgba(0, 0, 0, 0.7);
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.err-mess {
  font-size: 30px;
}
img {
  width: 100%;
}

/* navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 1rem auto;
  margin-bottom: 5rem;
  padding: 0 2rem;
}
nav h2 {
  margin-left: 10rem;
  font-size: 2rem;
}
.navbar input[type="text"] {
  padding: 0.3rem;
  padding-left: 2rem;
  outline: none;
  border-radius: 15px;
  font-size: 1.3rem;
  border: none;
}
.navbar button {
  outline: none;
  border-radius: 16px;
  padding: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  font-weight: 550;
  background-color: hsl(278, 50%, 51%);
  box-shadow: 0px 7px 15px rgba(0, 0, 0, 0.7);
  font-family: Arial, Helvetica, sans-serif;
}
.navbar h1 {
  font-size: 3rem;
}
.navbar #logo {
  display: flex;
  align-items: center;

  background-color: black;
  padding: 10px;
  border-top-right-radius: 40px;
}

#openbtn {
  display: inline-block;
  margin: 14px;
  cursor: pointer;
}
#openbtn div {
  width: 48px;
  height: 6px;
  background-color: black;
  margin: 7px 0;
  border-radius: 50%;
}
/* sidebar */
#side-bar {
  background: black;
  color: white;
  width: 0;
  height: 100%;
  overflow-x: hidden;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  padding-top: 60px;
  transition: width 350ms ease-in;
  overflow: hidden;
}
#side-bar ul {
  margin-top: 4rem;
}
#side-bar a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 2rem;
  display: block;
  padding-left: 30px;
  margin-bottom: 2.5rem;

  padding-bottom: 80px;

  transition: color 400ms;
}
#side-bar li a {
  min-width: 400px;
}
#side-bar a:hover {
  color: rgb(136, 28, 236);
}

#closebtn {
  position: absolute;
  top: 0;
  right: 8px;
 
}

/* movie section */

.movie img {
  width: 100%;
}

.movie-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.2rem;
  max-height: calc(100vh - 15rem);
  overflow-y: scroll;
  
}

.movie-container > div {
  flex-basis: 100%;
}
.movie:hover {
  transform: scale(1.061);
}

.movie {
  max-width: 250px;
  margin: 1rem;
  transition: transform 400ms;
}

.movie h3 {
  text-align: center;
  font-size: 1.5rem;
  background-color: black;
  color: purple;
  margin-top: 8px;
}

/* scroll bar */
/* ::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 50px;
  width: 30px;
  height: 20px;
} */
@media (max-width: 920px) {
  .navbar input[type="text"] {
    width: 170px;
    padding-left: 10px;
    font-size: 1.1rem;
  }
}

@media (max-width: 880px) {
  .movie {
    max-width: 200px;
    margin: 1rem;
  }
  .movie-container {
    max-height: 100vh;
    overflow: auto;
  }
}

@media (max-width: 800px) {
  .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .navbar input[type="text"] {
    margin-top: 3rem;
    width: auto;
    padding-left: 2rem;
    font-size: 1.3rem;
  }
}

@media (max-width: 730px) {
  .navbar h1 {
    font-size: 3.7rem;
  }

  .navbar input[type="text"] {
    padding: 0.6rem;
  }
  .movie {
    max-width: 350px;
  }
  nav h2 {
    text-align: center;
    margin: 0 auto;
  }
}
@media (max-width: 560px) {
  .navbar h1 {
    font-size: 3rem;
  }

  .navbar input[type="text"] {
    padding: 0.4rem;
  }
}

/* INFO PAGE*/

#movie {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
  padding: 2rem;
}


.outer {
  margin: 30px;
  
}
.info-desc > * {
  margin-left: 70px;
  margin-right: 30px;
}
.info-desc {
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: 2rem;
  align-items: center;
}
.movie-info {
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;

  font-size: 2rem;
}

.movieposter img {
  max-width: 300px;
}
.movieposter button {
  margin: 0 auto;
  margin-top: 2rem;
  box-shadow: 3pxpx 0px 6px;
}
.movieposter h3 {
  margin-top: 1rem;
}
.movie-overview {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 46px;
}
footer {
  min-height: 35px;
  width: 100%;
  background-color: black;
  color: purple;
  position: fixed;
  bottom: 0;
  left: 0;
  padding-left: 20px;
  font-size: 20px;
  padding-top: 9px;
  font-weight: 800;
}
.info-btn a {
  text-decoration: none;
  color: black;
  font-family: cursive;
  font-weight: 600;
}
.info-btn {
  display: flex;
  margin-top: 30px;
  margin-bottom: 80px;
  width: 300px;
  justify-content: space-between;
}
@media (max-width: 800px) {
  .movie-info h3 {
    margin: 15px 0;
  }
}
@media (max-width: 750px) {
  .info-desc > * {
    font-size: 1.7rem;
  }

  .movie-overview {
    text-align: center;
  }
}
