#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff; /* පසුබිම් වර්ණය */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000; /* අනිත් හැමදේටම වඩා උඩින් පෙනීමට */
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

#bowing-girl {
    width: 250px; /* අවශ්‍ය ප්‍රමාණයට වෙනස් කරන්න */
    height: auto;
    margin-bottom: 20px;
}

.loading-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Page එක Load වුනාම හංගන්න භාවිතා කරන Class එක */
.fade-out {
    opacity: 0;
    pointer-events: none;
}

//* Animation එක හදමු */
@keyframes bowingAnimation {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(20deg); /* නැමෙන ප්‍රමාණය */
    }
    100% {
        transform: rotate(0deg);
    }
}

#bowing-girl {
    width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
    
    /* Animation එක මෙතනින් සෙට් කරනවා */
    animation: bowingAnimation 3s ease-in-out infinite;
    
    /* ඉණ ප්‍රදේශය ස්ථාවරව තබා ගැනීමට (Pivot Point) */
    /* 50% කියන්නේ මැද, 70% කියන්නේ උසින් ඉණ තියෙන හරිය */
    transform-origin: 50% 70%; 
}

/* Loading text එකටත් පොඩි animation එකක් */
.loading-text {
    text-align: center;
    font-family: 'Arial', sans-serif;
    margin-top: 20px;
    font-weight: bold;
    color: #d63031;
}