* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overscroll-behavior: none;
    font-family: 'Balsamiq Sans', 'Segoe UI', 'Roboto', 'Arial', sans-serif !important;
    max-width: 900px;
    margin: 1em auto;
    padding: 1em;
    background: #000000;
    color: #f0f0f0;
    scroll-behavior: smooth;
}

html::before,
body::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;

    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px) 0 0 / 40px 40px,
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1.5px) 0 0 / 40px 40px !important;

    mix-blend-mode: screen !important;
    opacity: 0.2 !important;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #303030;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f3f;
}

::selection {
    background-color: #ffffff;
    color: #000000;
}

header {
    text-align: center;
    margin-bottom: 2em;
    color: #ffffff;
}

footer {
    text-align: center;
    margin-top: 3em;
    padding-top: 1em;
    color: #888;
    font-size: 0.9rem;
}

.folder-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.folder-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 8px;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: none;
}

.image-container .skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0d0d0d 25%, #1f1f1f 50%, #0d0d0d 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.image-container .error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}