body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
.contain {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f4f4, #e0e0e0); /* Gradient background */
    padding: 0px;
}
.event-image {
    width: 100%;
    max-height: none; 
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.event-image:hover {
    transform: scale(1.01);
}

.event-image:focus {
    outline: 3px solid #007bff;
}
.modal-image-container {
    width: 100%;
    height: 60vh; /* Fixed height */
    overflow-y: auto; /* Enable vertical scrolling */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #f4f4f4; /* Optional background */
}
.image-zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5000;
}

.image-zoom-content {
    position: relative;
    width: 99%;
    /*max-width: 1100px;*/
    max-height: 90vh;
    background: #111;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 30px 70px;
}

.image-zoom-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
    cursor: grab;
    touch-action: none;
}

.image-zoom-content img.pan-active {
    cursor: grabbing;
}

.image-zoom-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 20;
    pointer-events: auto;
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.image-zoom-controls {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.65);
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.zoom-btn {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#zoomLevelLabel {
    color: #fff;
    min-width: 50px;
    text-align: center;
    font-weight: 600;
}
.contentShowEv {
    /*max-width: 800px;*/
    text-align: center;
    padding: 10px;
}
.event-title {
    font-size: 36px; /* Larger font size */
    font-weight: bold;
    margin-top: 10px;
    color: #333; /* Darker color for better contrast */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}
.event-subtitle {
    font-size: 22px; /* Slightly larger font */
    color: #666; /* Softer color */
    margin-bottom: 10px; /* Add spacing below */
}
.event-category {
    margin-top: 10px;
    font-weight: bold;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */
}
.event-category::before {
    content: "\f02b"; /* FontAwesome icon for category */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #007bff;
}
.event-date {
    margin: 10px 0;
    
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    text-align: center; /* Center align the text */
    justify-content: center; /* Center align the content */
}
.event-date::before {
    content: "\f073"; /* FontAwesome icon for calendar */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #666;
}
.event-description {
    margin-top: 15px;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    background-color: #ffffff; /* White background for contrast */
    padding: 15px; /* Add padding for spacing */
    border: 1px solid #ddd; /* Light border for definition */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #333; /* Darker text for readability */
    animation: fadeIn 0.5s ease-in-out; /* Add fade-in animation */
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.event-address {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.close-btn-event {
    position: fixed;
    top: 10px;
    right: 15px;
    width: 40px; /* Bigger Clickable Area */
    height: 40px;
    background: none;
    border: none;
    font-size: 32px; /* Larger 'X' */
    font-weight: bold;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s;
}

.close-btn-event:hover {
    color: red; /* Changes color on hover */
    transform: scale(1.2); /* Slight zoom effect */
}
.share-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.share-btn i {
    font-size: 18px;
}

.share-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1); /* Slightly larger on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.modal-footer {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.comment-box {
    border-left: 4px solid #28a745;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
#commentList {
    max-height: 300px; /* Set max height */
    overflow-y: auto;  /* Enable vertical scrolling */
    padding-right: 5px; /* Avoid content cut-off */
}

/* Optional: Style scrollbar (only for WebKit browsers like Chrome, Edge) */
#commentList::-webkit-scrollbar {
    width: 6px;
}

#commentList::-webkit-scrollbar-thumb {
    background-color: #28a745;
    border-radius: 10px;
}

.card{
    width: 100%;
}

#qrcode img{
    width:auto;
}

.truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Mostra solo 3 righe */
line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /*cursor: pointer;*/
}
        
.toggle-icon {
    font-size: 20px;
    color: #007bff;
    cursor: pointer;
    margin: 0; /* Removed left margin since we're centering with wrapper */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #007bff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.toggle-icon:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    border-color: #0056b3;
}

.toggle-icon:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.toggle-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.toggle-icon:hover::before {
    width: 30px;
    height: 30px;
}

.toggle-icon i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
}

.toggle-icon.expanded i {
    transform: rotate(180deg);
}

/* Add pulse animation for better attention */
.toggle-icon.pulse {
    animation: togglePulse 2s infinite;
}

@keyframes togglePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4), 0 0 0 4px rgba(0, 123, 255, 0.1);
    }
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    .toggle-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        /* Larger touch target for mobile */
    }
    
    .toggle-icon:hover {
        /* Reduce hover effects on mobile, focus on touch feedback */
        transform: scale(1.05);
    }
}

/* Add subtle text animation */
.event-description {
    transition: max-height 0.3s ease-in-out;
}

.event-menu {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
}

.menu-table-container {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* Enable horizontal scrolling for small screens */
    margin: 0 auto;
    max-width: 100%;
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 16px;
    text-align: left;
}

.menu-table th, .menu-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.menu-table th {
    background-color: #007bff;
    color: white;
    text-transform: uppercase;
}

.menu-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.menu-table tr:hover {
    background-color: #f1f1f1;
}

.menu-table td {
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .menu-table th, .menu-table td {
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* Enhanced animations for openAccount button */
#openAccount {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseGlow 2s infinite;
}

#openAccount:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    animation: bounceHover 0.6s ease-in-out;
}

#openAccount:active {
    transform: translateY(-1px) scale(1.02);
    animation: clickPulse 0.2s ease-in-out;
}

#openAccount::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#openAccount:hover::before {
    left: 100%;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.8), 0 0 30px rgba(0, 123, 255, 0.6);
    }
}

@keyframes bounceHover {
    0%, 100% {
        transform: translateY(-3px) scale(1.05);
    }
    50% {
        transform: translateY(-5px) scale(1.08);
    }
}

@keyframes clickPulse {
    0% {
        transform: translateY(-1px) scale(1.02);
    }
    50% {
        transform: translateY(0) scale(0.98);
    }
    100% {
        transform: translateY(-1px) scale(1.02);
    }
}

/* Optional: Add a subtle floating animation when the button is visible */
#openAccount.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

#addEntityShowPublic{
    border-bottom: 10px green solid;
}