/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.gem-timeline-refresh-button {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin: 8px auto;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.gem-timeline-refresh-button:hover {
    background-color: #3a3a3a;
}

.gem-timeline-refresh-button.hidden {
    display: none;
}

.timeline-item {
    scroll-margin-top: 90px;
}

.timeline-item:has(> .timeline-item-deeplink) {
    position: relative;
}

.timeline-item-deeplink {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.gem-event-highlight {
    animation: gem-event-flash 2.5s ease-out 1;
}

@keyframes gem-event-flash {
    0%, 40% {
        background-color: rgba(224, 49, 49, 0.12);
    }
    100% {
        background-color: transparent;
    }
}

.gem-timeline-refresh-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background-color: #e03131;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}