*{
    box-sizing: border-box;
    /*font-family: "Comic Relief", sans-serif;*/
}

/* Vertical infinite slideshow */
.slideshow-vertical-container {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
}

.slideshow-vertical-track {
    display: flex;
    flex-direction: column;
    animation: verticalScroll 20s linear infinite;
}

.slideshow-vertical-track-reverse {
    display: flex;
    flex-direction: column;
    animation: verticalScrollReverse 20s linear infinite;
}

.image-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.slideshow-vertical-track img,
.slideshow-vertical-track-reverse img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.image-wrapper:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Text overlay on hover - shows alt text */
.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    padding: 8px 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    max-width: 90%;
    z-index: 10;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.slideshow-vertical-track:hover,
.slideshow-vertical-track-reverse:hover {
    animation-play-state: paused;
}

.slideshow-vertical-track img:hover,
.slideshow-vertical-track-reverse img:hover {
    transform: scale(0.9);
    filter: brightness(0.7);
}

@keyframes verticalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes verticalScrollReverse {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Bootstrap overrides */
.navbar-dark{
    background-color: #039147;
}

footer, footer div .row{
    background-color: white;
}

div .row, div .slideshow-vertical-container{
    /*background-color: #F1E3D7;*/
    background-color: #ffcccc;
    background-color: #a1d99b;
    background-color: #9bd9fe;
    background-color: white;
}

body{
    /*background-color: #DDC5B0;*/
    background-color: #ff9999;
    background-color: #41ab5d;
    background-color: #48b7ff;
    background-color: #e4d5b7;
}

.nav-tabs .nav-link {
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 0.375rem 0.375rem 0 0;
    color: black;
    position: relative;
    transition: all 0.3s ease;
    border: none; /* Remove default border */
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d82b28;
    transition: width 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #039147;
    border: none; /* Keep border removed on hover */
    transform: none; /* Prevent any movement */
}

.nav-tabs .nav-link.active {
    background-color: white;
    color: black;
    border: none; /* Remove border on active state */
    transform: none; /* Prevent any movement */
}

.nav-tabs .nav-link.active::after {
    width: 100%;
    animation: slideInFromLeft 0.4s ease-out;
}

.nav-tabs {
    border: 0;
}

@keyframes slideInFromLeft {
    0% {
        width: 0;
        left: 0;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

/* Tab pane fade animation - slower */
.tab-content {
    position: relative;
}

.tab-pane {
    opacity: 0;
    transition: opacity 0.2s ease-in-out; /* Increased from 0.4s to 0.8s */
}

.tab-pane.active {
    opacity: 1;
}

.tab-pane.fade {
    opacity: 0;
    transition: opacity 0.2s ease-in-out; /* Increased from 0.4s to 0.8s */
}

.tab-pane.fade.show {
    opacity: 1;
}

/* Alternative: Even slower fade */
.tab-pane.fade-slow {
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Even slower at 1.2s */
}

.tab-pane.fade-slow.show {
    opacity: 1;
}

span.material-symbols-outlined {
    font-size: 52px;
    color: #039147;
}

#insta-logo{
    width: 52px;
}

#whatsapp-logo{
    height: 52px;
}

#insta-qr{
    width: 100%;
}

#left-panel{
    background-color: #039147;
}

#middle-panel{
    background-color: white;
}

#right-panel{
    background-color: #d82b28;
}

/* Shimmer animation for Order Online button */
.btn-danger {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #dc3545, #e74c3c, #dc3545);
    background-size: 200% 200%;
    animation: shimmerBackground 10s ease-in-out infinite;
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmerSlide 5s ease-in-out infinite;
    z-index: 1;
}

.btn-danger span,
.btn-danger {
    position: relative;
    z-index: 2;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }
    30% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmerBackground {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced shimmer on hover */
.btn-danger:hover {
    animation: shimmerBackground 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    transform: translateY(-2px);
    transition: all 0.5s ease-in-out;
}

.btn-danger:hover::before {
    animation: shimmerSlide 1s ease-in-out infinite;
}

/* Footer link hover animations */
footer a {
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

footer a:hover {
    color: white !important;
    transform: scale(1.1);
}

/* Enhanced hover for specific footer sections */
#left-panel a:hover {
    color: white !important;
    transform: scale(1.15);
}

#right-panel a:hover {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Special animation for Instagram icon */
footer #left-panel img:hover {
    transform: scale(1.2) rotate(5deg);
    transition: all 0.3s ease-in-out;
}

/* Pulse animation for important links */
footer a[href*="tel"]:hover,
footer a[href*="mailto"]:hover {
    animation: bigger 0.6s ease-in-out;
}

@keyframes bigger {
    0%, 100% {
        transform: scale(1.1);
    }
}

/* Contact section link animations */
#contact a {
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-decoration: none;
}

#contact a:hover {
    transform: translateY(-3px) scale(1.05);
    color: #d82b28 !important;
}

/* Specific animations for different contact types */
#contact a[href^="tel:"]:hover {
    animation: Wiggle 0.8s ease-in-out;
    color: #28a745 !important;
}

#contact a[href^="mailto:"]:hover {
    animation: emailPulse 0.6s ease-in-out;
    color: #28a745 !important;
}

#contact a[href*="instagram"]:hover {
    animation: socialBounce 0.5s ease-in-out;
    color: #e91e63 !important;
}

#contact a[href*="wa.me"]:hover {
    animation: Wiggle 0.6s ease-in-out;
    color: #25d366 !important;
}

/* Keyframes for contact animations */

@keyframes emailPulse {
    0%, 100% {
        transform: translateY(-3px) scale(1.05);
    }
    50% {
        transform: translateY(-3px) scale(1.15);
    }
}

@keyframes socialBounce {
    0%, 100% {
        transform: translateY(-3px) scale(1.05);
    }
    25% {
        transform: translateY(-8px) scale(1.1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
    75% {
        transform: translateY(-5px) scale(1.08);
    }
}

@keyframes Wiggle {
    0%, 100% {
        transform: translateY(-3px) scale(1.05) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) scale(1.05) rotate(-3deg);
    }
    75% {
        transform: translateY(-3px) scale(1.05) rotate(3deg);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bs-dark);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--bs-dark);
    transform: translateY(-3px);
    animation: pulse 1s ease-in-out infinite;
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: translateY(-3px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

/* Menu item styling with inline badges */
.menu-item-card {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 3px solid #d82b28; /* Bottom border for all dishes */
    position: relative;
    cursor: default;
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-bottom-color: #039147; /* Change bottom border color on hover */
}

/* Dish header with inline badges */
.dish-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem !important;
}

.menu-item-title {
    color: #333;
    font-weight: bold;
    flex-grow: 1;
    margin-right: 0.5rem;
}

/* Inline price badges */
.price-badges-inline {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-shrink: 0;
}

.price-badges-inline .badge {
    font-size: 0.75em;
    padding: 0.5em;
    white-space: nowrap;
}

/* Custom badge styles */
.badge.bg-primary {
    background: linear-gradient(135deg, #d82b28, #e74c3c) !important;
    color: white;
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(216, 43, 40, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white;
    border-radius: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* Menu item description */
.menu-item-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Alternative colored bottom borders for variety */
.menu-item-card:nth-child(3n+1) {
    border-bottom-color: #d82b28; /* Red */
}

.menu-item-card:nth-child(3n+2) {
    border-bottom-color: #039147; /* Green */
}

.menu-item-card:nth-child(3n+3) {
    border-bottom-color: #ffc107; /* Yellow */
}

/* Hover effects for different colored borders */
.menu-item-card:nth-child(3n+1):hover {
    border-bottom-color: #c82333;
    box-shadow: 0 8px 25px rgba(216, 43, 40, 0.15);
}

.menu-item-card:nth-child(3n+2):hover {
    border-bottom-color: #028a3f;
    box-shadow: 0 8px 25px rgba(3, 145, 71, 0.15);
}

.menu-item-card:nth-child(3n+3):hover {
    border-bottom-color: #e0a800;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .dish-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .price-badges-inline {
        align-self: flex-start;
    }
    
    .price-badges-inline .badge {
        font-size: 0.7em;
        padding: 0.2em 0.5em;
    }
}

/* Animation for bottom border */
.menu-item-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: width 0.3s ease;
}

.menu-item-card:hover::after {
    width: 100%;
}

.green-filter{
    filter: brightness(0) saturate(100%) invert(24%) sepia(99%) saturate(1788%) hue-rotate(137deg) brightness(102%) contrast(98%);
    max-width: 26px;
}

/* Popup notification styles */
.popup-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 500px;
    background: #028a3f;
    border: 1px solid #028a3f;
    border-radius: 8px;
    padding: 15px 40px 15px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-family: inherit;
}

.popup-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.popup-notification.success {
    background: #028a3f;
    border-color: #028a3f;
    color: white;
}

.popup-notification.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.popup-message {
    display: block;
    margin-right: 10px;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.popup-close:hover {
    opacity: 1;
}