body {
  width: 550px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}

header {
  height: 208px;
  position: relative;
}

main {
  border: 1px solid #6b7280;
  min-height: 779px;
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: inherit;
  box-sizing: border-box;
  padding: 0 42px;
  z-index: 1;
}

nav li {
  list-style: none;
}

nav a.menu {
  text-decoration: none;
  color: #111;
  opacity: 1;
}

.background {
  background-image: url("img/background.webp");
  background-size: cover;
  opacity: 0.4;
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
}

form {
  width: 462px;
  display: flex;
  margin: 0 auto;
  position: absolute;
  top: -20px;
  left: calc((100% - 462px) / 2);
}

.space { /* Functional purpose: divider */
  height: 44px;
}

#search-input,
#search-btn {
  border: 1px solid #d1d5db;
}

#search-input {
  width: 70%;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  padding: 9px 20px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  background: url("img/search.png") no-repeat scroll 7px 7px;
  background-size: 20px 20px;
  padding-left: 35px;
  box-sizing: border-box;
  height: 38px;
  background-color: #fff;
}

#search-input::placeholder,
#search-btn {
  font-size: 14px;
  font-weight: 500;
}

#search-btn {
  width: 30%;
  padding: 0.5em;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  color: #374151;
  background-color: #f9fafb;
}

#search-btn:hover,
#search-btn:focus {
  background-color: tomato;
  color: #fff;
}

#search-btn:active {
  scale: 0.98;
}

/* =============
Movie container Section
===============*/


.default {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8.75px;
  margin-top: 193px;
  cursor: pointer;
}

.default .exploring {
  width: 70px;
  height: 61.25px;
}

.default h3 {
  font-size: 18px;
  font-weight: 700;
  color: #dfdddd;
  margin-top: 0;
}

/* =====
Watchlist Section
=======*/

/* Movie Api Data */
.movie {
  width: 462px;
  /* height: 147.41px; */
  margin: 0 auto;
  /* background-color: beige; */
  border-bottom: 2px solid #e5e7eb;
  padding: 20.59px;
  display: grid;
  grid-template-columns: 1fr 3fr;
}

.movie-poster {
  width: 99px;
  height: 147.41px;
  border-radius: 2.33px;
}

.movie-meta {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  align-self: center;
  /* height: 120px; */
}

.movie-title,
.movie-rating {
  margin-top: 0;
  margin-bottom: 0;
}

.movie-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.movie-title {
  font-size: 18px;
  font-weight: 500;
}

.movie-rating {
  font-size: 12px;
  font-weight: 400;
}

.movie-info {
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 2em;
}

.movie-plot {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin-top: 0;
}


.add-btn, 
.remove-btn {
  border: none;
  background-color: #fff;
  cursor: pointer;
}

.add-btn:hover, 
.add-focus, 
.remove-btn:hover, 
.remove-btn:focus {
  color: tomato;
}

.add-btn:active, 
.remove-btn:active {
  font-weight: bold;
  color: green;
}


/* Utility */
.make-flex-row-reverse {
  flex-direction: row-reverse;
}

.make-menu-selected {
  font-size: 42.79px;
  font-weight: 800;
}

.invisible {
  display: none;
}

#search-error-message {
  width: 75%;
  color: #DFDDDD;
  font-size: 1.5rem;
  margin: 0 auto;
  margin-top: 50%; 
}