﻿/*<!--vis-->*/
body {
    margin: 0;
    height: 100vh;
    background-color: white;
    transition: background-color 0.3s;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    opacity: 1;
    visibility: visible;
    transition: opacity 5s ease, visibility 5s ease;
    z-index: 1000;
    /* golden-ratio visual offset */
    transform: translateY(-6vh);
}

    #preloader.hidden {
        opacity: 0;
        visibility: hidden;
    }

    #preloader.visible {
        opacity: 1;
        visibility: visible;
    }

/* --- Preloader layout --- */
.container {
    position: relative;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SVG animation */
svg {
    width: 300px;
    height: 200px;
}

.dot {
    fill: blue;
}

@keyframes moveLoop {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

.moving-dot {
    position: absolute;
    offset-path: path("M 150 100 C 50 0, 50 200, 150 100 C 250 0, 250 200, 150 100");
    offset-distance: 0%;
    animation: moveLoop 8s linear infinite;
}

/* --- Preloader text (Workshop info) --- */
.preloader-text {
    margin-top: 1.4rem;
    text-align: center;
    color: #111;
}

    .preloader-text h1 {
        font-size: 1.4rem;
        font-weight: 600;
        margin: 0 0 0.4rem 0;
    }

    .preloader-text p {
        font-size: 0.95rem;
        margin: 0.2rem 0;
        opacity: 0.75;
    }

    .preloader-text .contact {
        margin-top: 0.6rem;
        font-weight: 500;
        opacity: 0.9;
    }

/* --- Telemetry Dashboard --- */
#dashboard {
    display: none; /* <- klucz */
    opacity: 0;
    visibility: hidden;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 480px;
    margin: 2rem auto;
    color: #111;
    transition: opacity 5s ease, visibility 5s ease;
    z-index: 500;
}

    #dashboard.visible {
        display: block; /* <- klucz */
        opacity: 1;
        visibility: visible;
    }


    #dashboard.hidden {
        opacity: 0;
        visibility: hidden;
    }

    #dashboard header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

#metrics-section {
    margin-bottom: 2rem;
}

#metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #metrics-list li {
        padding: 4px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid #eee;
    }

/* Swiss-style clock */
.swiss-clock {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    color: #d11142; /* Swiss red */
}

