/* Animowane tło całej strony */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #312e81, #1e1b4b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Górny pasek */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Zegar z gradientem */
#zegar {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: linear-gradient(90deg, #ff0055, #007bff, #ff0055);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;           /* fallback */
    animation: gradient-move 3s linear infinite;
}

/* Logo 3D - Kostka */
.logo-3d-container {
    width: 50px;
    height: 50px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;   /* nieco wolniej = ładniej */
}

.face {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.7);
    border: 2px solid #ff0055;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 2rem;
}

.front  { transform: translateZ(25px); }
.back   { transform: rotateY(180deg) translateZ(25px); }
.right  { transform: rotateY(90deg)  translateZ(25px); }
.left   { transform: rotateY(-90deg) translateZ(25px); }
.top    { transform: rotateX(90deg)  translateZ(25px); }
.bottom { transform: rotateX(-90deg) translateZ(25px); }

@keyframes rotateCube {
    from { transform: rotateX(0deg)  rotateY(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* Napis Wyraj_Dev */
.wyraj-text {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: linear-gradient(90deg, #ff0055, #007bff, #ff0055);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-move 3s linear infinite;
}

@keyframes gradient-move {
    to { background-position: 200% center; }
}

main {
    text-align: center;
    margin-top: 40px;
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    #zegar, .wyraj-text {
        font-size: 1.9rem;
    }
}

.maintenance-box {
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid #ff0055;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.25);
    max-width: 90%;
    width: 800px;
}

.gif-container img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #007bff;
}

.status-text {
    font-family: 'Courier New', monospace;
    color: #60a5fa;
    font-weight: bold;
    font-size: 1.3rem;
}