:root {
  --primary-color: rgb(4, 3, 46);
  --secondary-color: rgb(59, 8, 88);
}

body {
  font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", "Verdana", "Geneva", "Tahoma", "sans-serif";
  margin: 0;
  padding: 0;
  background-color: var(--primary-color);
  font-size: 1rem;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--secondary-color);
  height: fit-content;
  margin: auto;
  padding: 20px;
  
}

#title {
  color: white;
  text-align: center;
  padding: 20px;
  margin: auto;
}

.container {
  margin: auto;
  background-color: rgb(222, 222, 235);
}

#search_form {
  text-align: center;
  padding: 1rem;
}

#search {
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: white;
  width: 400px;
  margin: auto;
}

#search_input {
  color: white;
  background-color: var(--primary-color);
  border-radius: 10px;
  margin-left: 10px;
  padding: 0.5rem 1rem;
  margin: auto;
}

#search_input:hover {
  background-color: dodgerblue;
}

.titles {
  color: white;
  height: 40px;
  margin-top: 10px;
}

#details {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  margin: 20px auto;
  border-radius: 10px;
}

.group {
  font-size: 0.5rem;
  color: pink;
  list-style: none;
}

#plot {
  color: whitesmoke;
  background-color: var(--secondary-color);
  padding: 2rem;
}

.pagination {
  display: inline-block;
  margin-bottom: 10px;
  position: fixed;
  bottom: 0;
  right: 0;
}

.pagination a {
  color: rgb(247, 241, 241);
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

.pagination a.active {
  color: white;
  border-radius: 5px;
}

.pagination a:hover:not(.active) {
  background-color: rgb(223, 166, 166);
  border-radius: 5px;
}

.posters {
  width: 330px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin: auto;
  background-color: var(--secondary-color);
  margin-top: 20px;
  box-shadow: 10px 10px 10px 2px rgba(5, 3, 32, 0.493);
  border-radius: 5px;
  transition: transform 0.3s;
}

.posters img,
.poster {
  width: 330px;
  height: 400px;
  border-radius: 5px 5px 0px 0px;
}

.poster {
  margin: 10px 10px 15px 10px;
  box-shadow: 10px 10px 10px 2px rgba(5, 3, 32, 0.493);
  border-radius: 5px;
}

.posters:hover {
  transform: scale(1.02, 1.02);
}

.btn {
  background-color: var(--primary-color);
}
.mainbtn {
  border-radius: 0px 0px 5px 5px;
}

@media (max-width:600px){
  #search {
    width: 90%;
    margin: auto;
  }
}

