@font-face {
    font-family: 'EDO';
    src: url('fonts/edo.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

:root {
    --main-color: #f2f40f;
    --body-bg: #181616;
    --box-bg: #221f1f;
    --text-color: #ffffff;
    --nav-height: 60px;
    --space-top: 30px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    padding-top: var(--nav-height);
}

a {
    text-decoration: none;
    color: unset;
}

img {
    max-width: 100%;
    display: block;
}

.main-color {
    color: var(--main-color);
}

.container {
    max-width: 1920px;
    padding: 0 40px;
    margin: auto;
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: #000000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    height: var(--nav-height);
    padding: 0 20px;
}

.logo {
    font-family: "EDO", sans-serif;
    font-size: 2rem;
    font-weight: 900;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li + li {
    margin-left: 30px;
}

.nav-menu a {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color);
}

.nav-menu a:hover {
    color: var(--main-color);
}

.btn {
    background-color: #000;
    color: #fff;
    padding: 0.25rem 1.5rem;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: #221f1f;
    transition: 0.3s ease-in-out;
    z-index: 1;
}

.btn-hover:hover::before {
    width: 100%;
}

.btn i,
.btn span {
    z-index: 2;
}

.btn i {
    margin-right: 1rem;
}

.hamburger-menu {
    display: none;
    position: relative;
    height: 30px;
    width: 30px;
    cursor: pointer;
    z-index: 101;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 0.5rem;
    transition: 0.4s;
}

.hamburger::before {
    content: "";
    top: -10px;
}

.hamburger::after {
    content: "";
    bottom: -10px;
}

.hamburger-menu.active .hamburger {
    background-color: transparent;
}

.hamburger-menu.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger-menu.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* TV layout */
section {
    width: 100%;
    background-color: #ffffff;
    min-height: 100px;
}

.tv {
    width: 100%;
    height: 80vh;
    padding: 0;
}

.chat {
    width: 30%;
    height: 80vh;
    padding: 0;
}

section ul {
    background-color: #000000;
    border-bottom: 1px solid #202020;
}

section ul li {
    display: inline-block;
}

section ul li a {
    padding-left: 5px;
    color: var(--main-color);
    font-weight: bold;
}

.card {
    background-color: #202020;
    text-align: center;
    border-right: 1px solid #202020;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero slide */
.hero-slide-item {
    position: relative;
    overflow: hidden;
    padding-top: 40%;
}

.hero-slide-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hero-slide-item-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    color: var(--text-color);
    display: flex;
}

.item-content-wraper {
    width: 40%;
    padding-left: 5rem;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.item-content-wraper::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}

.item-content-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 5rem;
}

.movie-infos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.movie-info {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 10px;
}

.movie-info i {
    color: var(--main-color);
    margin-right: 5px;
}

.item-content-description {
    font-size: 1.15rem;
    margin-top: var(--space-top);
    line-height: 1.5rem;
}

.item-action {
    margin-top: var(--space-top);
}

/* Carousel nav */
.carousel-nav-center {
    position: relative;
}

.carousel-nav-center .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    outline: none;
}

.carousel-nav-center .owl-nav .owl-prev {
    left: 5px;
}

.carousel-nav-center .owl-nav .owl-next {
    right: 5px;
}

.owl-nav button i {
    font-size: 3rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 5px;
}

.owl-nav button:hover i {
    color: var(--main-color);
}

/* Animaciones */
.top-down {
    transform: translateY(-50px);
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease-in-out;
}

.delay-2 { transition-delay: 0.2s; }
.delay-4 { transition-delay: 0.4s; }
.delay-6 { transition-delay: 0.6s; }
.delay-8 { transition-delay: 0.8s; }

.owl-item.active .top-down {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Movie & lit items */
.movie-item,
.lit-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.movie-item {
    padding-top: 140%;
}

.lit-item {
    padding-top: 70%;
}

.movie-item img,
.lit-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.3s linear;
}

.movie-item:hover img,
.lit-item:hover img {
    transform: scale(1.2);
}

.movie-item-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.8);
}

.movie-item-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    height: 100px;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.movie-item-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Secciones */
.section {
    padding-top: 80px;
}

.section-header {
    margin-bottom: 30px;
    padding-left: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 4px solid var(--main-color);
    display: flex;
    align-items: center;
}

/* Footer */
footer.section {
    margin-top: 80px;
    padding-bottom: 80px;
    background-color: var(--box-bg);
}
