:root{
    --msg-box-color: #333
}
.log-events {
    max-width: 300px;
    min-width: 220px;
    height: auto;
    background-color: var(--msg-box-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed; 
    top: 7%;
    left: 80%;
    transform: translateX(-60%); 
    border-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    text-align: center;
    padding: 8px 10px;
    color: #333;
    border: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.log-events::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 5px;
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: var(--msg-box-color) transparent transparent transparent;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
    transform-origin: center bottom;
}


/* Show animation */
.show {
    display: flex;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Hide animation */
.hide {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) translateX(-50%);
    }
}
