/* full-hd-movies.css */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    flex-direction: column; /* This is a crucial change */
    justify-content: flex-start; /* This is a crucial change */
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    
    /* Make the body itself scrollable if content overflows */
    overflow-y: auto; 
    
    /* Add this for smoother scrolling on iOS devices */
    -webkit-overflow-scrolling: touch; 
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#video-bg {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Main Container for Cards */
.container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 90%; 
    max-width: 800px; /* Setting a max-width for better desktop layout */
    margin-top: 50px; /* Add some space from the top for better viewing */
    margin-bottom: 50px;
    position: relative; /* This is important to ensure it sits on top of the video */
    z-index: 1; /* This is important to ensure it sits on top of the video */
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%; 
    max-width: 400px; 
    margin-bottom: 20px;
}

/* Form and Input Styles */
.card-content h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 20px;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    font-size: 1em;
    color: #fff;
    padding: 20px 45px 20px 20px;
}

.input-box input::placeholder {
    color: #ccc;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #fff;
}

/* Button Styles */
.btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1em;
    color: #333;
    font-weight: 600;
}

/* Signup Rules */
.signup-rules {
    margin-top: 20px;
    text-align: left;
    padding: 0 10px;
}

.signup-rules h4 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 5px;
}

.signup-rules p {
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.5;
}

/* Image Card Styles */
.image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-header {
    font-size: 1.5em; 
    color: #ff9900;
    margin-bottom: 10px;
}

.qr-image {
    width: 100%; 
    max-width: 250px;
    height: auto;
    margin-top: 10px;
}

/* Pop-up Message Box */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.message-box.show {
    display: block;
    opacity: 1;
}

.message-box p {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
}
