body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.interstitial-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1000;
}

.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ff0090; /* Pink theme */
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-content video {
    width: 90%;
    height: 35%;
    z-index: 5;
    position: absolute;
    top: 8%;

    /* Prevent all interactions on iOS */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-text-size-adjust: 100%;
}

/* Transparent overlay to block video interactions */
.video-overlay {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 35%;
    z-index: 6;
    background: transparent;
    pointer-events: auto;
}
#logo{
    display: none; /* Logo hidden */
    width: 90px;
    height:68px;
    z-index: 10;
    top: 1%;
    left:0%;
    position: absolute;
}
#audioButton {
    position: absolute;
    top: 33%; /* Position relative to the video container */
    right: 5%; /* Position relative to the video container */
    z-index: 10; /* Ensure the button appears above the video */
    background: none; /* No background for the button */
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#audioButton img {
    width: 30px; /* Adjust icon size */
    height: 30px;
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When the image is hidden */
#audioButton img.hidden {
    opacity: 0; /* Fades out */
    pointer-events: none; /* Prevents interaction with the hidden image */
}

/* Banner Section */
.banner-section {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 14.5%;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles for the carousel */
#slider {
    margin-top: 0; /* Remove extra margin */
    height: 34vh;
    width: 270vw; /* Fit the carousel to the screen width */
    position: absolute;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    top: 63%;
}

#slider input[type="radio"] {
    display: none;
}

#slider label {
    margin: auto;
    width: 25%;
    height: 100%;
    border-radius: 4px;
    position: absolute;
    left: 0;
    right: 0;
    cursor: grab;
    transition: transform 0.4s ease, opacity 0.4s ease; /* Smooth snapping and opacity change */
    opacity: 0; /* Initially hide slides */
    transform: translate3d(0, 0, 0) scale(0.8); /* Default scale for inactive slides */
}


/* Position and visibility for slides - 3 slides only */
#s1:checked ~ #slide1, #s2:checked ~ #slide2,
#s3:checked ~ #slide3 {
    transform: translate3d(0, 0, 0); /* Center the active slide */
    opacity: 1; /* Make it fully visible */
    z-index: 3; /* Ensure it's on top */
}

#s1:checked ~ #slide2, #s2:checked ~ #slide3,
#s3:checked ~ #slide1 {
    transform: translate3d(115%, 0, -140px); /* Position to the right */
    opacity: 0.8; /* Slightly dimmed */
    z-index: 2;
}

#s1:checked ~ #slide3, #s2:checked ~ #slide1,
#s3:checked ~ #slide2 {
    transform: translate3d(-115%, 0, -140px); /* Position to the left */
    opacity: 0.8; /* Slightly dimmed */
    z-index: 2;
}

/* Slide colors */
#slide1 {
    background-color: #ffffff; /* White */
    position: relative;
}

#slide2 {
    background-color: #ffffff; /* White */
    position: relative;
}

#slide3 {
    background-color: #ffffff; /* White */
    position: relative;
}


#gesture{
    width: 18%;
    height: 13%;
    position: absolute;
    z-index: 10;
    top: 80%;
    border-radius: 50%;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Offset by half of the element's width */
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0090; /* Pink theme */
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
}

.slider-button {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    width: 40px;
    height: 58px;
    background-color: #ffffff; /* White */
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    color: black; /* Black text for visibility */
    font-size: 30px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.slider-button span {
    font-size: 24px;
    line-height: 1;
}

.slider-button.left {
    left: 10px; /* Adjust position for left button */
}

.slider-button.right {
    right: 10px; /* Adjust position for right button */
}
#mute{
    display: none;
}
/* Media query for devices with a width of up to 768px */
/* Media query for devices with a width between 450px and 768px */
@media (max-width: 768px) {
    .ad-content video {
        width: 95%;
        height: 33%;
        top: 8%;
    }

    .video-overlay {
        width: 95%;
        height: 33%;
        top: 8%;
    }

    .banner-section {
        width: 95%;
        height: 13.5%;
        top: 44%;
    }

    #slider {
        top: 60%;
        height: 35vh;
    }

    .slider-button {
        top: 78%;
    }
}

/* Media query for devices with a width between 300px and 450px */
@media (min-width: 400px) and (max-width: 500px) {
    .ad-content video {
        width: 95%;
        height: 32%;
        top: 7%;
    }

    .video-overlay {
        width: 95%;
        height: 32%;
        top: 7%;
    }

    #logo {
        top: 8%;
    }
    .banner-section {
        width: 95%;
        height: 12%;
        top: 42%;
    }
    #slider {
        top: 57%;
        height: 35vh;
    }
    .slider-button {
        top: 75%;
    }
}
@media (min-width: 300px) and (max-width: 400px) {
    .ad-content video {
        width: 95%;
        height: 30%;
        top: 7%;
    }

    .video-overlay {
        width: 95%;
        height: 30%;
        top: 7%;
    }

    #logo {
        top: 8%;
    }
    .banner-section {
        width: 95%;
        height: 11%;
        top: 40%;
    }
    #slider {
        top: 54%;
        height: 34vh;
    }
    .slider-button {
        top: 72%;
    }
}

/* New flexbox layout styles for slide1 */
.slide-content {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

.price-section {
    flex: 1 1 40%; /* Flexible sizing */
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.image-section {
    flex: 1 1 40%; /* Flexible sizing */
    max-width: 47%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5; /* Light grey background */
    border-radius: 12px;
    padding: 6px;
    height: 90%; /* Increased height */
    box-sizing: border-box;
}

.image-section img {
    width: 105%;
    height: 105%;
    object-fit: contain;
}

.price-container {
    background-color: transparent;
    padding: 15px 20px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 15px;
    margin: 0 0 5px 0;
    font-family: Arial, sans-serif;
}

.current-price {
    color: #ff0090;
    font-size: 31px;
    font-weight: bold;
    margin: 0 0 10px 0;
    font-family: Arial, sans-serif;
}

.discount {
    color: #ff0090;
    background-color: rgba(255, 0, 144, 0.15);
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.shop-now-btn {
    background-color: #ff0090;
    color: white;
    border: none;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(255, 0, 144, 0.3);
}

.shop-now-btn:hover {
    background-color: #e0007f;
    transform: scale(1.05);
}

.shop-now-btn:active {
    transform: scale(0.98);
}

/* Responsive adjustments for new layout */
@media (max-width: 768px) {
    .slide-content {
        padding: 3px;
        gap: 3px;
    }

    .price-section {
        flex: 1 1 38%;
        max-width: 42%;
    }

    .image-section {
        flex: 1 1 38%;
        max-width: 50%;
        padding: 3px;
        height: 80%;
    }

    .price-container {
        padding: 10px 12px;
        min-width: 80px;
    }

    .original-price {
        font-size: 13px;
    }

    .current-price {
        font-size: 20px;
    }

    .discount {
        font-size: 12px;
        padding: 2px 5px;
    }

    .shop-now-btn {
        padding: 9px 14px;
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .slide-content {
        padding: 2px;
        gap: 2px;
    }

    .price-section {
        flex: 1 1 35%;
        max-width: 40%;
    }

    .image-section {
        flex: 1 1 35%;
        max-width: 47%;
        padding: 2px;
        height: 75%;
    }

    .price-container {
        padding: 8px 10px;
        min-width: 70px;
    }

    .original-price {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .current-price {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .discount {
        font-size: 11px;
        padding: 2px 4px;
        margin-bottom: 6px;
    }

    .shop-now-btn {
        padding: 7px 12px;
        font-size: 11px;
    }
}

/* Very small mobile screens - keep side by side */
@media (max-width: 380px) {
    .slide-content {
        flex-direction: row; /* Keep horizontal layout */
        padding: 2px;
        gap: 2px;
    }

    .price-section {
        flex: 1 1 35%;
        max-width: 38%;
    }

    .image-section {
        flex: 1 1 35%;
        max-width: 44%;
        padding: 2px;
        height: 70%;
    }

    .price-container {
        padding: 5px 8px;
        min-width: 60px;
    }

    .original-price {
        font-size: 11px;
    }

    .current-price {
        font-size: 16px;
    }

    .discount {
        font-size: 10px;
    }

    .shop-now-btn {
        font-size: 10px;
        padding: 6px 10px;
    }
}
