*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  display: flex;
  align-items: stretch;
  overflow-y: auto;
}
:root {
  --focus-ring: 0 0 0 3px rgba(107, 114, 128, 0.25);
  --focus-border: #9ca3af;
  --search-overlap: 20px;
}
.hidden {
  display: none;
}
ul#pages-container.hidden {
  display: none;
}
.container {
  width: 100%;
  min-height: 100vh;
  height: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
}
.content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
header {
  background-image: url("images/posters.png");
  height: 208px;
  background-color: #0e0e0e;
  color: white;
}
h1 {
  margin: 0;
  font-weight: 800;
  font-size: 2.67rem;
}
nav a {
  text-decoration: none;
  color: white;
  font-size: 0.875rem;
  margin: 0;
  font-weight: bold;
}
form {
  display: inline-flex;
  justify-content: center;
  margin-top: calc(-1 * var(--search-overlap));
  margin-bottom: var(--search-overlap);
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
input#search-input {
  background-image: url("images/search.png");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 13px center;
  padding: 12px 0px 12px 42px;
  width: auto;
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 6px 0 0 6px;
  margin: 0;
  font-size: 16px;
}
button#search-btn {
  width: 140px;
  padding: 12px 0 12px 0;
  border-radius: 0 6px 6px 0;
  margin: 0 0 0 -4px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #374151;
  font-family: inherit;
  cursor: pointer;
  font-size: 16px;
}
button#search-btn:hover,
#search-form:focus-within button#search-btn {
  background-color: #e5e7eb;
}
button#search-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.35);
}
input#search-input:focus,
button#search-btn:focus {
  outline: none;
}
#search-form:focus-within {
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}
#search-form:focus-within input#search-input,
#search-form:focus-within button#search-btn {
  border-color: var(--focus-border);
}
#search-form:focus-within button#search-btn {
  background-color: #f3f4f6;
}
.not-found {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 321px;
  margin: auto;
  transform: translateY(-40px);
}
.not-found.hidden {
  display: none;
}
.not-found p {
  margin: 0;
}
#movies-container {
  align-items: stretch;
}
#watchlist-container {
  justify-content: flex-start;
  padding-top: 181px;
}
main {
  background-color: white;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-top: var(--search-overlap);
  color: #6b7280;
  font-weight: bold;
  font-size: 1.125rem;
  overflow: visible;
  position: relative;
}
.start-exploring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
}

.add-movies-text {
  display: flex;
  gap: 5px;
  font-size: 0.875rem;
  align-items: center;
}
.add-movies-text a {
  color: #363636;
  text-decoration: none;
}

ul#pages-container {
  list-style: none;
  display: flex;

  padding: 20px 0 20px 0;
  width: fit-content;
  margin: 0 0 20px auto;
}

.page-btn {
  text-decoration: underline;
  border: none;
  background-color: white;
  cursor: pointer;
}
.page-btn.is-active,
.page-btn:disabled {
  text-decoration: none;
  font-weight: 600;
  color: #374151;
  cursor: default;
}

.movie,
.movie-info,
.movie-title,
.movie-text,
.add-to-watchlist,
.remove-from-watchlist {
  display: flex;
}
.movies-list {
  width: 100%;
}
.movie {
  gap: 20px;
  margin: 0;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1.5px solid #e5e7eb;
  padding: 20px 0;
}
.movie-poster {
  width: 99px;
  height: 147.41px;
  border-radius: 2.33px;
}
.star-icon {
  width: 11px;
  height: 11px;
}
.movie-text {
  flex: 1;
  flex-direction: column;
  gap: 15px;
}
.movie-title {
  align-items: center;
  gap: 7px;
}
.movie-title h2 {
  font-size: 1.125rem;
  margin: 0;
  color: black;
  font-weight: 500;
  margin-right: 10px;
}
.movie-title span,
.movie-info,
.add-to-watchlist,
.remove-from-watchlist {
  font-size: 0.75rem;
  color: #111827;
  font-weight: 400;
}
.movie-info {
  align-items: center;
  gap: 20px;
}

.add-to-watchlist,
.remove-from-watchlist {
  gap: 5px;
  background-color: white;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.add-to-watchlist:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.plot {
  color: #6b7280;
  font-weight: 400;
  font-size: 0.875rem;
}
.plot-text {
  margin: 0;
  display: inline;
}
.read-more {
  display: inline;
  font-family: inherit;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: none;
  color: #272727;
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}
.read-more:hover {
  color: #111827;
}

@media (max-width: 600px) {
  body {
    align-items: stretch;
  }

  header {
    height: 150px;
  }

  .content {
    padding: 0 16px;
  }

  h1 {
    margin: 0;
    font-size: 2rem;
  }

  nav a {
    margin: 0;
  }

  form {
    margin-top: calc(-1 * var(--search-overlap));
  }

  form {
    width: 100%;
  }

  input#search-input {
    min-width: 0;
  }

  button#search-btn {
    width: 120px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .header-content {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .movie {
    width: 100%;
    padding: 20px 0;
  }
  .movies-list {
    padding: 0;
  }
  main {
    padding: 0;
  }

  .movie-text {
    width: 100%;
  }

  .movie-info {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .movie-poster {
    width: 90px;
    height: 134px;
  }
}

@media (min-width: 900px) {
  .content {
    padding: 0 48px;
  }

  h1 {
    font-size: 3rem;
  }

  input#search-input {
    width: 520px;
  }

  button#search-btn {
    width: 170px;
  }

  .movie {
    padding: 24px 0;
  }
}
