/* Floating Events Modal CSS - Version 1.1.0 */
.floating-events-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /*background: #F5B684;*/
    background:orange;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    transition: transform 0.3s ease;
}

.floating-events-button:hover {
    transform: scale(1.1);
}

.events-icon {
    font-size: 30px;
    height: 30px;
    filter: hue-rotate(180deg) brightness(1.5);
    text-shadow: 0px 0px 1px black;

      animation: hueRotate 3s linear infinite;
  /*filter: brightness(1.5);*/
}

@keyframes hueRotate {
  from {
    filter: hue-rotate(0deg) brightness(1.5);
  }
  to {
    filter: hue-rotate(360deg) brightness(1.5);
  }
}


.events-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.events-modal-overlay.visible {
    opacity: 1;
}

.events-modal {
    width: 90%;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.events-modal.visible {
    transform: scale(1);
    opacity: 1;
}

.events-modal-header {
    padding: 15px 20px;
    background: #884916;   /*#0073aa #F5B684*/
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.events-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.events-modal-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.events-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
}

.events-loading {
    text-align: center;
    padding: 20px;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    gap: 15px;
}

.event-item:last-child {
    border-bottom: none;
}

.event-image {
    flex: 0 0 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    flex: 1;
}

.event-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.event-item a {
    /*color: #0073aa;*/
    text-decoration: none;
}

.event-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.dont-show-again {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.dont-show-again input {
    margin-right: 5px;
}

/* Animation for items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.event-item:nth-child(1) { animation-delay: 0.1s; }
.event-item:nth-child(2) { animation-delay: 0.2s; }
.event-item:nth-child(3) { animation-delay: 0.3s; }
.event-item:nth-child(4) { animation-delay: 0.4s; }
.event-item:nth-child(5) { animation-delay: 0.5s; }