*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    font-family: herofont;
    /* box-sizing: border-box; */
}

@font-face {
    font-family: herofont;
    src: url(Drcharmed-8Y1Z.ttf);
}

li {
    list-style: none;
}

body {
    overflow-x: hidden;
    background-color: #000000;
}

.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    height: 100px;
    padding: 10px 30px;
}

.desktop-main-menu {
    margin-right: 50px;
    width: 100%;
}

.desktop-main-menu ul {
    display: flex;
    justify-content: space-between;
}

.desktop-main-menu ul li {
    position: relative;
    margin-right: 50px;
    padding-bottom: 2px;
}

.desktop-main-menu ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: right center;
}

.desktop-main-menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    transition-duration: 0.4s;
}

.banner {
    box-sizing: border-box;
    padding-bottom: 20px;
    width: 100%;
    height: 80vh;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-4deg) rotateY(0deg);
    }

    to {
        transform: perspective(1000px) rotateX(-4deg) rotateY(360deg);
    }
}

.banner .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform:
        rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(550px);
}

.banner .slider .item img {
    border-radius: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-inner {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(29, 199, 199);
    text-align: center;
}

.section-inner h4 {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 700;
    animation-fill-mode: both;
    animation: fadeInUp 0.5s ease-in-out;
    text-align: center;
    text-decoration: underline;
}

.section-inner h2 {
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-in-out 0.2s;
    animation-fill-mode: both;
    text-align: center;
}

.bd {
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
}

.bd::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('movies_images/avengers_vs_xmen_bg.jpg') no-repeat center center/cover;
    filter: blur(4px); 
    z-index: -1; 
}

a {
    color: white;
    font-size: 25px;
    text-decoration: none;
    font-family: 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
}

.main-container {
    display: flex;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    justify-content: space-evenly;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.cards {
    margin: 50px;
    width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 2px 2px 10px gray;
    background-image: url(white_bg.jpg);
    padding: 10px;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease-in;
}

.discription {
    width: 100%;
    height: auto;
    margin: 0;
    display: flex;
    border-radius: 20px;
    height: 400px;
    width: 95%;
    overflow: hidden;
    box-sizing: border-box;
    background-size: cover;
}

.discription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: url('comic_images/comic1.png') no-repeat center center/cover;
    filter: blur(4px); 
    z-index: -1; 
}

.movie_img img {
    height: 470px;
    width: auto;
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cards:hover {
    filter: none;
    opacity: 1; 
    transform: scale(1.05); 
    z-index: 1; 
}

.main-container:hover > .cards:not(:hover) {
    filter: brightness(0.8) saturate(1) contrast(1.2) blur(10px);
}

.root {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 50px;
    z-index: 3;
}

.root > h1 {
    color: white;
    font-size: 50px;
    background-color: rgba(11, 1, 11, 0.3);
    height: auto;
    width: 400px;
    box-shadow: 2px 2px 10px black;
    z-index: 10;
    filter: blur(0);
    padding-left: 10px;
    border-radius: 30px;
    text-align: center;
    margin-left: 20px;
}

.root > p {
    color: #5d4257;
    font-family: herofont;
    font-size: 20px;
}

.suppoter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}
