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

html {
    scroll-behavior: smooth;
}

body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    grid-template-columns: 1fr;
    grid-template-areas: 
    "title"
    "search"
    "movie-result"
    "footer";
    font-family: Dosis;
    overflow-x: auto;
    overflow-y: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

.title {
    font-family: Dosis;
    grid-area: title;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid black;
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: navy;
    margin: 0;
    padding: 0;
}

.web-title {
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient(180deg, red, orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 4.2em;
}

.web-subtitle {
    margin-top: 8px;
    font-style: italic;
    color: white;
    font-size: 1.65em;
}

@media (max-width: 430px) {
    .web-title {
        font-size: 5.5em;
    }
    .web-subtitle {
        font-size: 2.5em;
    }
}

.search {
    grid-area: search;
    display: flex;
    background-color: #FFA700;
    position: sticky;
    top: 154.4px;
    z-index: 1;
    border-bottom: 2px solid black;
}

.movie-title, .movie-genre {
    display: flex;
    flex-shrink: 1;
    gap: 5px;
    margin-top: 0.5%;
    margin-bottom: 0.5%;
    margin-right: 1%;
    margin-left: 1%;
}

.movie-title {
    margin-right: auto;
}

.movie-genre {
    margin-left: auto;
}

.movie-title-input, .movie-genre-input {
    width: 150px;
    font-size: 1.2em;
    flex-shrink: 1;
    white-space: nowrap;
    font-family: Dosis;
    background-color: black;
    color: white;
    border: 1px solid black;
    border-radius: 10px;
}
.movie-title-search, .movie-genre-search, .movie-genre-input {
    height: 100%;
    flex-shrink: 1;
    white-space: nowrap;
    font-family: Dosis;
}
.movie-title-search, .movie-genre-search {
    font-size: 1em;
    width: fit-content;
    background-color: black;
    color: white;
    border: 1px solid #000000;
    border-radius: 10px;
}

.movie-title-input {
    transition: border-radius 0.4s;
}

.movie-title-input:focus {
    border-radius: 0;
}

.movie-title-search:hover, .movie-genre-search:hover, .movie-genre-input:hover {
    cursor: pointer;
    background-color: #FFA700;
    color: black;
}

.movie-title-search:active, .movie-genre-search:active {
    background-color: black;
    color: white;
}

@media (max-width: 1300px) {
    .movie-title-input, .movie-genre-input {
        width: 170px;
        font-size: 1.6em;
    }
    .movie-title-search, .movie-genre-search {
        font-size: 1.2em;
    }
}

@media (max-width: 430px) {
    .movie-title-input, .movie-genre-input {
        width: 210px;
        font-size: 2em;
    }
    .movie-title-search, .movie-genre-search {
        font-size: 1.6em;
    }
}

.movie-result {
    grid-area: movie-result;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-color: #111827;
    gap: 10px;
    padding: 1%;
    min-height: 100vh;
}

.movie-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: white;
    width: 700px;
    height: 300px;
    border-radius: 20px;
    border: 1px solid black;
    box-shadow: 12px 6px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.4s;
}

.movie-card::-webkit-scrollbar {
    display: none;
}

.movie-card:hover {
    transform: scale(1.03);
}

.movie-poster {
    height: 300px;
    width: auto;
}

.movie-name-title {
    background: linear-gradient(180deg, red, orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-top: 0;
    margin-bottom: 0;
}

.movie-details:hover {
    cursor: pointer;
}

.details-list-item {
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer {
    grid-area: footer;
}