/**
 * Windows XP - Splash Screen (Boot/Loading)
 * Tela de carregamento inicial do Windows XP
 */

#xp-splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    color: #EFEFEF;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 10000;
}

#xp-splash.active {
    display: flex;
}

/* Logo Container */
#xp-splash .centred {
    width: 50%;
    max-width: 380px;
    height: auto;
    text-align: center;
}

#xp-splash .logo {
    overflow: hidden;
    line-height: 1;
}

#xp-splash .logo img {
    width: 66.67%;
    display: block;
    margin: 0 auto -30px;
}

#xp-splash .logo .ms {
    font-size: 150%;
}

#xp-splash .logo .ms sup {
    font-size: 40%;
    font-weight: bold;
}

#xp-splash .logo .win {
    font-size: 400%;
    font-weight: bold;
    float: left;
    margin-right: 10px;
    margin-top: -10px;
}

#xp-splash .logo .xp {
    font-size: 300%;
    font-weight: bold;
    color: #FF3300;
    float: left;
    margin-top: -20px;
}

/* Loading Bar Container */
#xp-splash .loader {
    position: relative;
    margin: 10% 15% 5%;
    width: 66.67%;
    max-height: 20px;
    height: 3vh;
    min-height: 14px;
    padding: 3px 2px;
    border: 1px solid #EFEFEF;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    background-color: #000;
}

/* Individual Loading Blocks */
#xp-splash .loader span {
    display: inline-block;
    margin: 0 1px;
    height: calc(100% - 4px);
    width: 10px;
    background: linear-gradient(to bottom, #708CF1 0%, #5A7AE5 40%, #3562D4 70%, #2546B8 100%);
    opacity: 0;
    transform: scaleY(0);
    vertical-align: top;
    box-shadow: 0 0 3px rgba(112, 140, 241, 0.3);
}

/* Efeito de aparecimento dos blocos */
#xp-splash .loader span.visible {
    animation: blockAppear 0.3s ease-out forwards, blockPulse 1.5s ease-in-out infinite 0.3s;
}

@keyframes blockAppear {
    0% {
        opacity: 0;
        transform: scaleY(0.2);
    }
    60% {
        transform: scaleY(1.1);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Animação de pulsação suave dos blocos */
@keyframes blockPulse {
    0%, 100% {
        transform: scaleY(0.85);
        filter: brightness(0.95);
    }
    50% {
        transform: scaleY(1);
        filter: brightness(1.05);
    }
}

/* Copyright Text */
#xp-splash .copy {
    position: absolute;
    bottom: 12.5%;
    left: 7.5%;
    font-size: 11px;
}

#xp-splash .title {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    position: absolute;
    bottom: 12.5%;
    right: 7.5%;
    font-weight: bold;
    font-style: italic;
    font-size: 14px;
}

/* Fade Out Animation */
#xp-splash.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}
