﻿
/* Slide-In and Fade-Out Animation */
@keyframes slideInRightFadeOut {
    0%

{
    transform: translateX(100%); /* Start off-screen to the right */
    opacity: 0; /* Invisible at start */
}

25% {
    transform: translateX(0); /* Text comes to the center */
    opacity: 1; /* Text is fully visible */
}

75% {
    transform: translateX(0); /* Text stays at the center */
    opacity: 1; /* Text stays fully visible */
}

100% {
    transform: translateX(-100%); 
    opacity: 0; 
}

}

#world-header {
    margin-top: 65px;
    text-align: justify;
}


.animate-slide-in {
    animation: slideInRightFadeOut 7s ease-in-out infinite; 
}

.yearend_img {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
}

#world-header h2 {
    color: #191948;
    text-align: justify-all;
    display: inline-block;
}

@media (max-width: 768px) {
    .animate-slide-in {
        font-size: 1.5em;
    }

    #world-header h2 {
        font-size:15px;
    }

    .yearend_img {
        width: 100px;
        height: 50px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .animate-slide-in {
        font-size: 1.2em;
    }
    #world-header h2 {
        font-size: 15px;
    }

    .yearend_img {
        width: 100px;
        height: 50px;
        display: flex;
        align-items: center;
    }
}



