/* main.css */

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background: url('cart1.jpg') no-repeat center center fixed; 
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.container {
    padding: 10px;
    max-width: 100%;
    margin: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.0);
    border-radius: 15px;
}

h1 {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: 20px;
    font-size: 1.5rem;
}

.subtitle {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0px;
}

.section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 0px;
}

.box, .vipcart-video-container {
    margin: 0px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.box {
    padding: 20px;
    margin: 0px;
}

.box:hover, .vipcart-video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px rgba(0,0,0,0.8);
}

.box h2 {
    color: #000000;
    font-size: 1.2rem;
    margin: 0px;
}

.box a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin: 0px;
}

.box a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
}

input[type="text"], input[type="password"], input[type="submit"] {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #000000;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

ul {
    padding-left: 20px;
    list-style-type: none;
}

li {
    margin-bottom: 10px;
}

.scroller-section {
    margin-bottom: 40px;
}

.scroller-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    margin-bottom:2px;
    margin-top: 10px;
}

.main-scroller {
    width: 100%;
    height: 40px;
    background-color: white;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.scroller-content {
    display: flex;
    position: absolute;
    height: 100%;
    animation: scroll 30s linear infinite;
}

.scroller-content img {
    height: 80%;
    margin: 5px;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.vipcart-video-container {
    overflow: hidden;
    padding: 0;
    position: relative; /* Add this to make it a positioning context for absolute children */
}

.vipcart-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vipcart-video-expand {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10; /* Ensure it's above the iframe */
}

.vipcart-video-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
}

.vipcart-video-expanded iframe {
    width: 90%;
    height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vipcart-video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .container {
        padding: 20px;
        max-width: 1200px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .section {
        grid-template-columns: 1fr 1fr;
    }

    .scroller-title {
        font-size: 20px;
    }

    .main-scroller {
        height: 50px;
    }

    .vipcart-video-expanded iframe {
        width: 80%;
        height: 80%;
    }
}