#loading-app-animation {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 21;
}

#loading-app-animation .laa-background {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    /*background-color: rgba(0, 0, 0, 0.4);*/ /* Soft semi-transparent backdrop */
    animation: fade-in 0.5s linear;
}

.laa-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 90vw;
    margin: 0;
    padding: 2em 2.5em;
    background-color: #ffffff; /* Clean white card background */
    border-radius: 8px;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);*/ /* Subtle shadow for depth */
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.laa-text {
    font-family: Calibri, sans-serif;
    color: #0058a3; /* Brand blue text */
    font-size: 1.4em;
    font-weight: 600;
    margin: 1.2em 0 0 0;
    width: 100%;
    text-align: center;
    white-space: nowrap; /* Prevents text from breaking into multiple lines */
}

.laa-spinner {
    background-color: transparent;
    border: 6px solid #f3f3f3; 
    border-top: 6px solid #0058a3; /* Brand blue spinner head */
    border-radius: 50%;
    width: 7em;
    height: 7em;
    margin-left: 0;
    animation: laa-spinner 1s linear infinite;
    box-sizing: border-box;
}

@keyframes laa-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smaller devices */
@media (max-width: 37.5em) {
    .laa-content {
        padding: 1.5em 2em;
    }
    
    .laa-text {
        font-size: 1.2em;
    }
    
    .laa-spinner {
        width: 5em;
        height: 5em;
        border-width: 5px;
        border-top-width: 5px;
    }
}