.event-container {
    max-width: auto;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
}

.event-item {
    background-color: var(--bg-color);
    border: 1px solid var(--bg-color-2);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    transition: background-color 0.3s ease;
    color: #c9d0d3;
    display: flex;
    align-items: center;
}

.event-item:nth-child(even) {
    background-color: var(--bg-color-2);
}

.event-item:hover {
    background-color: var(--bg-color-2-opacity);
}

.event-time {
    font-size: 0.9em;
    color: #888;
    margin-right: 10px;
}

.event-type {
    font-weight: 600;
    color: var(--main-color);
    margin-right: 10px;
}

.event-details {
    color: #c9d0d3;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.event-images {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* Różne kolory dla różnych typów wydarzeń */
.event-item[data-event-type="kill"] {
    border-left: 4px solid #ff4444;
}

.event-item[data-event-type="quest"] {
    border-left: 4px solid #2d8555;
}

.event-item[data-event-type="level"] {
    border-left: 4px solid #2585a8;
}

.event-item[data-event-type="changeZone"] {
    border-left: 4px solid #ffbb33;
}

.event-item[data-event-type="sign"] {
    border-left: 4px solid #8B4513;
}

.event-item[data-event-type="equip"] {
    border-left: 4px solid #40e0d0;
}

.event-item[data-event-type="achievement"] {
    border-left: 4px solid #aa66cc;
}

.event-item[data-event-type="poison"] {
    border-left: 4px solid #34df34;
}

.player-image, .creature-image {
    max-height: 48px;
    width: auto;
    margin-right: 2px;
}

.creature-image {
    min-height: 32px;
    min-width: 32px;
    object-fit: contain;
}

.player-link, .creature-link, .achievement-link, .item-link {
    color: #c9d3d0;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.player-link:hover, .creature-link:hover, .achievement-link:hover, .item-link:hover {
    color: var(--main-color);
    text-decoration: none;
}

.creature-link {
    color: #d43535;
}

.player-link span, .creature-link span, .achievement-link span, .item-link span {
    margin-left: 5px;
}

.no-events-message {
    background-color: var(--bg-color-2);
    border: 1px solid var(--main-color);
    border-radius: 5px;
    color: #c9d0d3;
    padding: 20px;
    text-align: center;
    font-size: 1.1em;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.item-container {
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

.item-image {
    max-height: 32px;
    width: auto;
}

.item-amount {
    position: absolute;
    top: -7px;     /* Przesunięcie w górę */
    right: -7px;   /* Przesunięcie w prawo */
    color: white;
    font-size: 10px;
    padding: 1px 3px;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;  /* Dodaje delikatny border tekstu */
}

.item-amount {
    display: none;
}

.item-container[data-amount]:not([data-amount="1"]) .item-amount {
    display: block;
}

.item-link {
    text-decoration: none;
    color: inherit;
}

.item-link:hover .item-image {
    opacity: 0.8;
}

.achievement-image {
    max-height: 32px;
    width: auto;
    margin: 0 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.achievement-link {
    font-weight: 600;
    color: #aa66cc;
}

.item-link {
    font-weight: 600;
    color: #40e0d0;
}