@import url("/font.css");

* {
    box-sizing: border-box;
    font-family: "JetBrainsMonoNLNFM", monospace !important;
}

body {
    margin: 0;
    background-color: #0d1117;
    color: #c9d1d9;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#loader-container {
    width: 240px;
    transition: opacity 0.3s ease;
}

.track {
    width: 100%;
    height: 3px;
    background-color: #161b22;
    position: relative;
    overflow: hidden;
}

.bar {
    width: 60px;
    height: 100%;
    background-color: #58a6ff;
    position: absolute;
    /* Линия бегает туда-сюда */
    animation: bounce 1.8s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.5);
}

@keyframes bounce {
    0% { left: -60px; }
    50% { left: calc(100% - 60px); }
    100% { left: -60px; }
}

#error-screen {
    color: #ff7b72;
    text-align: center;
    opacity: 0.8;
}

.hidden { display: none !important; }

#appContainer {
    position: absolute;
    inset: 0;
    z-index: 999;
    background-color: #0d1117;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
