/* ===== Kolory dla statusów ===== */
.status.online {
    color: green;   /* Online w zieleni */
}
.status.offline {
    color: red;     /* Offline na czerwono */
}

/* Ustawienia dla canvas */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Ogólne ustawienia */
body {
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    padding: 20px;
    position: relative;
}

/* Przycisk powrotu */
#homeButton {
    background: #444;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: box-shadow 0.5s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#homeButton i {
    margin-right: 10px;
    margin-left: -10px;
}

#homeButton:hover {
    box-shadow: 0 0 5px #a200ff, 0 0 10px #a200ff, 0 0 20px #a200ff, 0 0 30px #a200ff;
}

/* Kontener na statusy */
.container {
    display: flex;
    gap: 40px;
    margin-left: -300px;
    margin-top: 100px;
}

.status-box {
    background: rgba(200, 200, 200, 0.2);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    width: 350px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.status-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.status-container {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.status {
    font-size: 28px;
    font-weight: bold;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
}

/* Przyciski wewnątrz status-box */
.status-box > button {
    background: #222;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    font-size: 18px;
    margin-top: 60px;
}

.status-box > button:hover {
    background: #444;
    transform: scale(1.05);
}

/* Kropki ładowania */
.dots-loader {
    display: none;
    gap: 10px;
    position: absolute;
    display: flex;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate, glow 1.2s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s, 0.4s;
}
.dot:nth-child(3) {
    animation-delay: 0.4s, 0.8s;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}
@keyframes glow {
    0%, 100% { background-color: white; }
    50%     { background-color: lightgreen; }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.hidden {
    display: none !important;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .status-box {
        width: 90%;
        margin-bottom: 20px;
    }
    #homeButton {
        font-size: 16px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .status-box {
        width: 100%;
        padding: 25px;
    }
    .status {
        font-size: 22px;
    }
    button {
        font-size: 14px;
        padding: 8px 14px;
    }
}
