html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
    background-color: #121212;
    height: 100vh;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-background {
    background: url('../assets/movie-poster.jpg') center no-repeat;
    background-size: cover;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: .7;
    z-index: 1;
}

.hero__text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    color: white;
}

.hero__text > a {
    text-decoration: none;
    color: white;
}

.hero,
.search-and-movieslist__container,
.watchlist-container {
    padding: 4em 2em;
    margin: 0 auto;
    width: 600px;
}

.search-and-movieslist__container {
    /* position: relative; */

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    top: 125px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.search-input__container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* position: absolute; */
    /* top: -23.675px;
    left: 50%;
    translate: calc(-50%);
    z-index: 3; */
    
    padding: 0 0 0 .5em;
    margin-bottom: 3em;
    height: 44px;
    width: 100%;
    background: #2e2e2f;
    border-radius: 5px;
    outline: none;
}

.fa-magnifying-glass {
    color: white;
    padding: .5em;
    cursor: pointer;
    
}

input[type='text'] {
    width: 100%;
    background-color: #2e2e2f;
    border: none;
    padding: .3em;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.shake {
    animation: shake 0.3s;
  }

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.search-btn {
    background-color: #4b4b4b;
    color: white;
    padding: .5em .7em;
    border: none;
    border-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 100%;
    width: 150px;
    cursor: pointer;
}

.movies-list { 
    margin: 0;
    padding: 0;
    color: white
}

.empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5em;
}

.film-icon {
    width: 70px;
}

.empty-list > p {
    font-size: 1.3rem;
    margin: 0;
    margin-top: 1em;
    color: #2E2E2F;
    font-weight: 700;
}

.watchlist-empty > p {
    font-size: 1.125rem;
    color: #2E2E2F;
    font-weight: 700;
}


.add-movies {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    text-align: center;
    font-size: 1.125rem;
    padding: 10px;
    margin-top: 1em;
    transition: transform 0.2s, background-color 0.2s;
}
  
.add-movies:hover {
transform: scale(1.05);
background-color: rgba(255, 255, 255, 0.1);
border-radius: 8px;
}

.add-movies svg {
width: 24px;
height: 24px;
fill: white;
}

  /* Movies added through JS; fetched from the OMDB API */
.movie-card {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #2C2C2C;
    padding: 1.5em 0;
    width: 100%;
}

.movie-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
}

.movie-poster img {
    width: 100%;
}

.movie-info {
    padding: 1em 1.5em;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-header > h2,
.movie-header > p,
.movie-category > p {
    margin: 0;
}

.movie-header,
.movie-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-category {
    margin: 8px 0;
    gap: 1.5em;
}

.movie-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
}

.movie-category *,
.movie-rating {
    font-size: .75rem;
}

.add-to-watchlist-btn,
.remove-from-watchlist-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: .75rem;
}

.add-to-watchlist-btn {
    color: rgb(66, 255, 123);
}

.remove-from-watchlist-btn {
    color: rgba(254, 60, 83, 1);
}

.movie-plot {
    font-size: .875rem;
    color: #A5A5A5;
    margin: 0;
    line-height: 20px;
}