:root {
    --html-bg: #232631;
    --primary-bg: #fff;
    --header-nav-bg2: #8e88ec;
    --scrollbar-bg: #c96dde;
    --linear-gradient-bg1: linear-gradient(120deg, #eb4258, #c96dde, #2cb3ea);
    --linear-gradient-bg2: linear-gradient(12deg, #c96dde, #2cb3ea);
    --category-soft-bg: #f4f3f0;

    --btn-soft-bg: #f2f1ef;
    --btn-purple-bg: #6D58FF;
    --btn-white-color: rgba(255, 255, 255, 0.5);

    --black-text: #191111;
    --gray-text: #a8a8a8;
    --white-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: "Lato", sans-serif;
    font-size: 1.6rem;
}

.home, .details, footer {
    background-color: white;
}

a {
    text-decoration: none;
    color: unset;
}

ul {
    list-style: none;
}

/* Header fixed logo and search button */

.header__logo-search {
    position: fixed;
    top: 0;
    width: 100%;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-bg);
    z-index: 1;
}

.header__brand {
    width: auto;
    height: 40px;
    margin: 10px;
    display: flex;
    align-items: center;
}

.header__logo {
    margin-right: 5px;
    font-size: 3rem;
    color: var(--btn-purple-bg);
}

.header__brand-name {
    font-size: 2.8rem;
    font-weight: 900;
}

.header__search-form {
    margin: 0 10px;
    margin-right: 30px;
    height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: var(--btn-soft-bg);
    border-radius: 40px;
}

.header__search-input {
    height: 0px;
    width: 0px;
    font-family: "Lato", sans-serif;
    font-size: 1.6rem;
    border: none;
    background: transparent;
    outline: none;
    display: none;
}

.header__search-button {
    height: 50px;
    width: 50px;
    font-size: 1.6rem;
    background-color: var(--btn-soft-bg);
    border: none;
    border-radius: 50%;
}

.showing__input {
    height: 40px;
    padding-left: 10px;
    display: block;
}

/* header navigation fixed */

.header__nav {
    position: fixed;
    bottom: 20px;
    left: 4%;
    right: 4%;
    height: 90px;
    color: white;
    background: var(--linear-gradient-bg1);
    border-radius: 20px;
    z-index: 10;
}

.nav__list {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    place-items: center;
}

.nav__button {
    border: none;
    background-color: transparent;
    font-family: 'Lato', sans-serif;
    color: var(--white-text);
}

.nav__icon {
    font-size: 3rem;
}

/* Home */

.home {
    padding-top: 90px;
}

.categories {
    width: 100%;
    height: 50px;
    margin: 0 auto;
    display: flex;
    overflow: auto;
}

.category__item {
    width:max-content;
    margin: 0 10px;
    padding: 10px 15px;
    display: block;
    font-size: 1.6rem;
    line-height: 1.8rem;
    border: none;
    border-radius: 20px;
}

.category__item__active {
    background: var(--linear-gradient-bg1);
    color: var(--white-text);
}

.category__item-2 {
    background: var(--linear-gradient-bg2);
    color: var(--white-text);
}

.home__section {
    width: 100%;
    height: auto;
    padding: 30px 0;
}

.section__hero {
    width: calc(100% - 50px);
    height: auto;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero__title {
    font-size: 2rem;
    font-weight: 900;
}

.hero__button {
    padding: 10px 12px;
    color: var(--gray-text);
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    background-color: transparent;
    border: none;
    border-radius: 20px;
}

.section__container {
    width: calc(100%);
    height: auto;
    margin: 0 auto;
    display: flex;
    overflow: auto;
}

.content__movie {
    margin: 10px;
    display: block;
    width: 150px;
    height: 200px;
}

.movie__image {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 35px;
}

/* Details content */

.header__background-content {
    position: fixed;
    top: 0;
    width: 100%;
    height: 480px;
    background-image: url("https://i0.wp.com/noescinetodoloquereluce.com/wp-content/uploads/2022/03/top-gun-poster-scaled.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.arrow-left__button {
    margin-top: 40px;
    margin-left: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 30px;
    font-size: 2.5rem;
    color: var(--btn-purple-bg);
    background-color: var(--btn-white-color);
}

.details {
    z-index: 1;
    padding: 20px;
    padding-bottom: 0;
    margin-top: 400px;
    background-color: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.details__hero {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
}

.star {
    color: rgb(250, 232, 75);
}

.detail__description {
    margin-top: 30px;
    font-size: 1.6rem;
}

/* general section */

.general-list {
    padding: 10px;
    padding-top: 90px;
}

.general__title {
    font-size: 2rem;
    font-weight: 900;
}

.general__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
}

.noheader {
    padding-top: 10px;
}

/* footer */

footer {
    width: 100%;
    height: 180px;
    font-size: 1.6rem;
    text-align: center;
    z-index: 0;
}

/* No display */

.inactive,  .inactive-mobile {
    display: none;
}

/* scrollbar */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-bg) var(--btn-soft-bg);
}

*::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

*::-webkit-scrollbar-track {
    background: var(--btn-soft-bg);
}

*::-webkit-scrollbar-thumb {
    width: 1px;
    height: 1px;
    background: var(--scrollbar-bg);
    border-radius: 4px;
}