* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  --color-bg: #e5e5e5;
  --color-bg-2: #f2f2f2;
  --color-white: #fff;
  --color-danger: #ff3b30;
  --color-yellow: #fc0;
  --color-success: #34c759;
  --color-black: #000000;
  --color-dark: #161617cc;
  --color-top-bg: linear-gradient(to bottom, #161617cc, #16161788);
}

html {
  font-size: 20px;
}

body {
  font-family: "Helvetica", sans-serif;
  background: var(--color-white);
}

header {
  border-bottom: 2px solid var(--color-bg);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.scrolled {
  background-color: #333;
  color: var(--color-white);
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-black);
}

.topcontainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.4rem;

  width: 80%;
  margin: 0 auto;
}

.navbarlist ul {
  display: flex;
}

.navbarlist ul li {
  margin-right: 1rem;
  padding: 0.2rem 0.6rem;
  transition: all 300ms ease;
  border: 1px solid transparent;
  font-size: 0.75rem;
}

.navbarlist ul li:hover,
.navbarlist ul li:active {
  border: 1px solid var(--color-dark);
  border-radius: 2rem;
  background-color: var(--color-yellow);
}

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

.topcontainer .title {
  margin-bottom: 0.2rem;
}
.title > h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-top-bg);
}

#dot {
  font-size: 2.5rem;
  color: var(--color-yellow);
}

h1:hover,
#dot:hover {
  transition: all 300ms ease-in-out;
  background-color: var(--color-success);
}

.topcontainer input {
  font-family: "Helvetica", sans-serif;
  font-size: 0.8rem;
  background-color: transparent;
  border: none;
  padding: 0.1rem 0.9rem;
}

i {
  color: var(--color-bg);
  font-size: 0.8rem;
}

.searchbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.2rem 0.9rem 0.3rem;
  border-radius: 2rem;
  background-color: transparent;
  border: 1px solid var(--color-bg);
}

main {
  margin-top: 5rem;
  padding-bottom: 14rem;
}

.moviecontainer {
  padding: 1rem 1rem;
}

.moviedetails,
.watchlistdetails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2%;
  text-align: justify;
  width: 90%;
  margin: 0 auto;
}

.watchlistdetails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.moviedetails p,
.watchlistdetails p {
  font-size: 0.8rem;
}

.movieunit,
.watchlistmovieunit {
  display: grid;
  grid-template-rows: 55% 35% 10%;
  border: 1px solid var(--color-bg);
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0.5, 0.1);
  background-color: #fbfbfb;
}

.movieunit img,
.watchlistmovieunit img {
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
  background-size: cover;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 20%, black 40%);
}

.movietext,
.watchlistmovietext {
  width: 95%;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.25;
}

.addbtn,
.removebtn {
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: 0 auto;
}

.addbtn button,
.removebtn button {
  margin: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: none;
}
.addbtn button:hover,
.removebtn button:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  transition: all 300ms ease;
}

footer {
  margin-top: 3rem;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 4rem 0 3rem;
  width: 100%;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5%;
  justify-items: start;
  align-items: start;
  width: 60%;
  margin: 0 auto;
}

.footer-container a,
.footer-container p {
  font-size: 0.75rem;
}

a:hover {
  opacity: 80%;
}
