
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans', sans-serif;
}
body.body-is-loading {
    pointer-events: none;
    overflow: hidden; /* Also prevents scrolling while loader is active */
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00346b;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: all;
}

/* NEW: This class will be added by JS to trigger the fade-out */
.preloader.preloader-fade-out {
    animation: preloader-fade-out 1s forwards ease-out;
}

.loading-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.logo-placeholder {
    width: 180px; /* Adjusted to fit your image */
    height: auto; /* Let image height be automatic */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: logo-fade-in 1.2s ease-out forwards;
}

.fading-dots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    opacity: 0;
    /* This makes the dots fade in at the same time as the logo */
    animation: logo-fade-in 1.2s ease-out forwards;
}

@keyframes logo-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Starts 20px down */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Ends in final position */
    }
}

.fading-dots > div {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: dot-fade 1.4s infinite ease-in-out both;
}

.fading-dots > div:nth-child(1) {
    animation-delay: -0.32s;
}
.fading-dots > div:nth-child(2) {
    animation-delay: -0.16s;
}
.fading-dots > div:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dot-fade {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* NEW: Keyframes for the preloader fade-out animation */
@keyframes preloader-fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden; /* Hides it from screen readers after animation */
    }
}