@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

main {
    margin: 0 auto;
}

.hero-image {
    background: url("./images/posters.png") gray 0px -158.291px / 100% 423.007% no-repeat;
    height: 13em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.text-block {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.text-block h4 {
    font-weight: 800;
    font-size: 2rem;
    color: #fff;
}

.text-block a {
    text-decoration: none;
    color: white;
    cursor: pointer;
}

form {
    position: relative;
    top: -25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

input[type="search"] {
    display: flex;
    align-items: center;
    border-radius: 6px 0 0 6px;
    border: 1px solid var(--gray-300, #D1D5DB);
    background-image: url('images/Search.svg');
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #fff;
    padding: 10px 30px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input[type="search"]:focus {
    border: 2px solid darkgray;
    outline: none;
}

#search-btn {
    display: flex;
    padding: 9px 30px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    align-self: stretch;
    border-radius: 0 6px 6px 0;
    border: 1px solid var(--gray-300, #D1D5DB);
    background: var(--gray-50, #F9FAFB);
    cursor: pointer;
}

.movie-container {
    margin-top: 2em;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.movie-container > .empty-container,
.movie-container > .error {
    margin-top: 5em;
    color: #DFDDDD;
    text-align: center;
    font-family: Inter;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
}

.search-link {
    color: #000;
    text-decoration: none;
}

.card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 20px 20px;
    width: min(700px, 90%);
    border-bottom: 1.5px solid #E5E7EB;
}

.card img {
    width: 5em;
}

.card-body {
    padding-left: 15px;
    text-align: start;
}

.card-body .title {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    display: inline-block;
}

.card-body .rating {
    padding-left: 1em;
    display: inline-block;
    color: #111827;
    font-family: Inter;
    font-size: .75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.card-body .runtime,
.card-body .genre,
.card-body .plot {
    color: #111827;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    text-align: left;
}

.card-body .plot {
    line-height: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card-body .details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 20px;
    margin-bottom: 20px;
}

.watchlistBtn,
.removeWatchlistBtn {
    border: none;
    background-color: #fff;
    cursor: pointer;
}

#icon {
    pointer-events: none;
}