
.top-bar {
    position: relative;
    top: 0;
    left: 50%;
    width: 30%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1000;
    background-color: #100351 !important;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


.marquee-content {
    position: relative;
    height: 35px; /* Match the height of the top-bar */
    overflow: hidden; /* Hide text that moves out of the container */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    justify-content: flex-start;
}

.marquee-content p {
    position: absolute; /* Position each <p> for animation */
    width: 100%;
    text-align: center;
    transform: translateY(100%); /* Start off-screen */
    animation: scrollOneByOne 10s linear infinite; /* Total animation duration */
}

.marquee-content p:nth-child(1) {
    animation-delay: 0s; /* Start immediately */
}
.marquee-content p:nth-child(2) {
    animation-delay: 2.5s; /* Start after the first */
}
.marquee-content p:nth-child(3) {
    animation-delay: 5s; /* Start after the second */
}
.marquee-content p:nth-child(4) {
    animation-delay: 7.5s; /* Start after the third */
}

@keyframes scrollOneByOne {
    0% {
        transform: translateY(100%); /* Off-screen (below) */
    }
    10% {
        transform: translateY(0); /* Fully visible */
    }
    25% {
        transform: translateY(0); /* Stay visible */
    }
    35% {
        transform: translateY(-100%); /* Off-screen (above) */
    }
    100% {
        transform: translateY(-100%); /* Stay off-screen */
    }
}


/* Keyframes for scrolling animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


.main-content {
    padding-top: 60px;
}

/* Mobile Styles */
/*
@media (max-width: 600px) {
    .top-bar {
        position: relative;
        width: 100%;
        height: 50px;
        clip-path: none; /* Remove the clip-path for mobile 
        justify-content: center; /* Center the content 
    }
    
    .marquee-content {
        padding: 0 10px; /* Add padding for better spacing 
    }
}
*/

@media (max-width: 600px) {
    header {
        display: flex;
        flex-direction: column; /* Stack the elements vertically */
    }

    .top-bar {
        order: 1; /* Move .top-bar directly after the header */
        position: relative;
        width: 100%;
        height: 50px;
        clip-path: none; /* Remove the clip-path for mobile */
        justify-content: center; /* Center the content */
    }

    .marquee-content {
        padding: 0 10px; /* Add padding for better spacing */
    }
}