/* Animations & Animated Components */

/* Generic Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Entry List (Scrolling Animation) Styles */
.entry_list {
    max-width: 100%;
    margin-top: 80px; /* Offset for header/layout */
}

.entry_list .list {
    list-style: none;
    padding-block: 10px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Default to wrap for flexibility, will be nowrap for animation */
    gap: 10px;
}

.entry_list[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white, 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white, 20%, white 80%, transparent);
}

.entry_list[data-animated="true"] .list {
    width: max-content; /* Critical for continuous scroll */
    flex-wrap: nowrap; /* Ensures items stay on one line for animation */
    animation: scroll var(--_animation-duration, 120s) var(--_animation-direction, forwards) linear infinite;
}

.entry_list[data-direction="right"] {
    --_animation-direction: reverse;
}

@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 5px));
    }
}

.entry_list .list li {
    margin-bottom: 12px;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    text-align: center;
    font-size: 1.8rem;
}

.entry_list .list a {
    font-size: 1.6rem;
}