@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
* {
    margin: 0;
    padding: 0;
    font-family: "Noto Serif", serif;
}
:root {
    --clouds: rgb(240, 243, 252);
    --deepest-teal: rgb(71, 112, 129);
    --eggplant: rgb(80, 66, 78);
    --sky-blue: rgb(163, 197, 251);
    --golden: rgb(239, 180, 117);
    --bubble-gum: rgb(247, 132, 179);
}
header {
    max-width: 100%;
    background-color: var(--deepest-teal);
}
.header-content{
    max-width: 1280px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: space-around;
}
h1 a{
    text-decoration: none;
    color: var(--golden);
}
h1 a:hover{
    transition: 0.25s;
    color: var(--bubble-gum);
}

input[type="search"] {
    height: 28px;
    outline: none;
    background: none;
    color: var(--clouds);
    border: none;
    outline: 1px solid var(--golden);
    border-radius: 20px;
    padding: 5px 10px;
}
input[type="search"]::placeholder {
    color: var(--clouds);
}
input[type="search"]:focus {
    outline: 2px solid var(--golden);
    border: none;
}
input[type="search"]:focus::placeholder {
    color: var(--sky-blue);
}
form {
    display: flex;
    align-items: center;
    position: relative;
}
form button {
    cursor: pointer;
    width: 28px;
    height: 28px;
    position: absolute;
    right: 0;
    background: none;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    color: var(--golden);
    transform: rotate(45deg);
}
input[type="search"]:focus + button {
    transition: 0.25s;
    color: var(--clouds);
    background: var(--golden);
}
input[type="search"]:focus + button:hover {
    color: var(--deepest-teal);
    font-weight: 800;
}
main {
    position: relative;
    max-width: 100vw;
    min-height: 100vh;
}
.main-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.main-wrapper {
    max-width: 100vw;
}
.movies-wrapper {
    max-width: 100%;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}
.movie {
    border-radius: 10px;
    width: 280px;
    background-color: var(--deepest-teal);
    position: relative;
    overflow: hidden;
}
.movie-image {
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 370px;
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.movie-info {
    color: var(--golden);
    padding: 10px 15px;
    border-radius: 0px 0px 10px 10px;
}
.movie-info div {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
}
h2 {
    color: var(--clouds);
    font-size: 1.2em;
}
.movie-rating {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    padding: 5px 10px;
    background-color: var(--golden);
    color: var(--deepest-teal);
    border-radius: 5px;
}
.movie-overview {
    position: absolute;
    bottom: -100%;
    max-width: 100%;
    width: 268px;
    border-radius: 1px 1px 10px 10px;
    padding: 5px 5px 10px 5px;
    background: rgba(80, 66, 78, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(240, 243, 252, 0.3);
    transition: bottom 0.5s ease-in-out;
}
.movie-overview-text {
    max-height: 100%;
    color: var(--clouds);
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 16;
    line-clamp: 16;
    -webkit-box-orient: vertical;
}
.movie-overview h4 {
    color: var(--golden);
    margin-bottom: 5px;
    text-align: left;
    font-size: 1.2em;
}
.movie:hover .movie-overview {
    bottom: 0;
    transition: bottom 0.5s ease-in-out;
}
footer {
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-evenly;
    background-color: var(--deepest-teal);
    color: var(--golden);
}
footer img {
    height: 52px;
}
