@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap');

body {
    background: #544128;
    font-family: 'Ubuntu', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: #e0b793;
    text-align: center;
    overflow: hidden;
    margin: 5%;
}

h1 {
    color: 	#f8ad34cc;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Стандартный отступ */
    justify-content: center;
    align-items: stretch;
}

.slide-ended {
    pointer-events: auto; /* Re-enable mouse interaction */
    opacity: 1; 
    transform: translateY(0) translateX(0);
}

.slide-in-active {
    opacity: 1; 
    animation-name: popInWave;
    animation-fill-mode: backwards; 
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* New Animation: Starts invisible/offset, ends at natural state */
@keyframes popInWave {
    0% {
        opacity: 0;
        transform: scale(0.9) translateX(-50px); /* Start slightly smaller and to the left */
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0); /* End at natural position */
    }
}

section {
    box-sizing: border-box;
    border-radius: 1rem;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.1s linear, height 0.1s linear, top 0.1s linear, left 0.1s linear, background-color 0.3s ease, all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
    flex: 0 1 auto;
    transform: translateY(0) translateX(0);
    opacity: 0;
}

section.slide-ended:hover {
    background-color: #3b3b3b;
    transform: translateY(-8px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}


.placeholder, .filler-placeholder {
    z-index: 1;
    padding: 0;
    display: block;
}

code {
    font-size: 1.2rem;
    margin: 0.5rem;
    background-color: #252525;
    padding: 0.5rem;
    display: block;
    border-radius: 0.5rem;
}

section p {
    margin: 0.2rem;
}

a {
    color: #f0980a;
}

.status-box {
    border-radius: 1rem;
    height: 3rem;
    align-content: center;
    color: #f8ad34cc;
}

.status-ok {
    background-color: #b28826cc;
}

.status-error {
    background-color: #f85234cc;
}

.status-nodata {
    background-color: #785b2cc6;
}

.status-loading {
    width: 60px;
    aspect-ratio: 4;
    background: radial-gradient(circle closest-side, #f39c12b3 100%, #00000000) 0/calc(100%/3) 100% space;
    clip-path: inset(0 100% 0 0);
    animation: l1 1s steps(4) infinite;
    margin: 0 auto;
}

@keyframes l1 {
    to {
        clip-path: inset(0 -34% 0 0)
    }
}

.install-instructions {
  display: flex;
  justify-content: center;
}

.install-instructions ol {
  display: flex;
  flex-direction: column;  /* Stacks items vertically */
  width: fit-content;      /* Keeps the block from expanding infinitely */
  max-width: 500px;        /* Sets a hard cap on width */
  min-width: 250px;        /* Forces a standard base width */
  padding-left: 25px;      /* Leaves room for the numbers */
}

.install-instructions li {
  width: 100%;             /* Forces every item to fill the exact same width */
  margin-bottom: 5px;
  text-align: left;
}

@media (max-width: 900px) {
    .content {
        column-count: 2;
    }

    body {
        overflow-y: auto;
    }

    .placeholder.bottom {
        display: none;
    }

    section {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 600px) {
    .content {
        column-count: 1;
    }

    .placeholder, .filler-placeholder {
        display: none;
    }
}
