* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.main {
    display: flex;
    position: relative;
    background-color: rgb(21, 21, 21);
}

.nav {
    width: 7%;
    height: 100vh;
    background-color: rgb(21, 21, 21);
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    row-gap: 200px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s ease, z-index 0.3s ease;
}

.nav:hover {
    width: 200px;
    background: linear-gradient(to right, rgb(21, 21, 21) 50%, transparent);
}

.logo {
    width: 80%;
    display: flex;
    justify-content: center;
}

.nav .logo img {
    width: 89px;
}

.navbar {
    width: 100%;
    position: absolute;
    top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.menu {
    margin-top: 90px;
    margin-left: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style-type: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.menusa {
    padding: 20px 0;
    width: 100%;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    color: white;
    text-decoration: none;
}
.menus a {
    padding: 20px 0;
    width: 100%;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    color: white;
    text-decoration: none;
}

.menus:hover {
    transform: scale(1.1);
}

.menu-text {
    margin-left: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav:hover .menu-text {
    opacity: 1;
}

.main2 {
    width: 93%;
    margin-left: 7%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 230vh;
    background: url('loginbgimg.webp') repeat;
    background-size:contain;
    animation: moveBackground 30s linear infinite;
    transition: margin-left 0.3s ease;
    flex-direction: column;
    position: relative;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -1000px 0;
    }
}

.banner-img {
    width: 60%;
    height: auto;
    position: absolute;
    top: 0;
    z-index: 1;
    margin-top: 6%;
}

.ban {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2;
    padding-top: 20px;
}
.ban h1{
    color:white;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bolder;
    font-size: 25px;
    justify-content: center;
    padding: 5px;
}
.movie-detail {
    text-align: left;
    color: white;
    z-index: 3;
    padding: 0px;
    margin-top: 56%;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bolder;
    
}

.movie-detail h1 {
    margin-bottom: 10px;
    font-size: 40px;
    padding-left: 100px;
}

.movie-detail  p{
    margin-bottom: 10px;
    font-size: 15px;
    display: inline;
    justify-content: center;
    color: yellow;
    padding: 20px;
}
.subs {
    margin-top: 20px;
    
}

.button1 {
    background-color: blue;
    color: white;
    padding: 18px 10px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    font-weight: bolder;
    font-family: 'Times New Roman', Times, serif;
    width: 20%;
    height: 20%;
    margin-left: 40%;
    font-size: 17px;
}

.button1:hover {
    opacity: 0.8;
}
.mid {
    width: 80%;
    text-align: center;
    margin-top: 20px;
    z-index: 2;
    position: relative;
    padding: 20px;
    margin-top: 5%;
    border-top: white;
}


.midrap p {
    margin-bottom: 5px;
    color: yellow;
    font-weight: bolder;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}
.login-btn {
    background-color: blue;
    color: white;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.login-btn:hover {
    opacity: 0.8;
}

form {
    background-color: rgb(21, 21, 21);
    padding: 20px;
    width: 500px;
    color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: block; 
    margin-left: 23%;
}

form h2 {
    margin-bottom: 20px;
    color: white;
}

input[type=text],
input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    background-color: blue;
    color: white;
    padding: 14px 5px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

button:hover {
    opacity: 0.8;
}

.remember {
    display: block;
    text-align: left;
    margin: 16px 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

.cancelbtn {
    padding: 10px 18px;
    background-color: red;
}

span.psw {
    float: right;
    color: white;
}

span.psw a {
    color: white;
    text-decoration: none;
}

.container {
    padding: 16px;
}

hr {
    border: 0;
    height: 1px;
    background: #f1f1f1;
    margin: 20px 0;
}

@media screen and (max-width: 300px) {
    span.psw a {
        display: block;
        float: none;
        color: white;
    }
    .cancelbtn {
        width: 100%;
    }
}
