.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0047AB;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 100px;
    height: 100px;
    border: 5px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content h2 {
    margin-top: 20px;
    font-size: 24px;
    letter-spacing: 2px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Building animation */
.building-animation {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.building-block {
    position: absolute;
    background: white;
    opacity: 0;
    animation: buildUp 2s ease-out forwards;
}

.block-1 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.block-2 {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    animation-delay: 0.5s;
}

.block-3 {
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    animation-delay: 1s;
}

@keyframes buildUp {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
