html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

header {
    position: relative;
    background: #1f2937;
    color: white;
    padding: 1px 10px;/* Reduced from 20px to 10px (about 12% less) */
    text-align: center;
    height: 165px; /* Or adjust this value to be 12% less than your current height */
    font-weight: bolder;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 4px #6A5ACD, 0 0 8px #6A5ACD;
    }
    50% {
        box-shadow: 0 0 8px #6A5ACD, 0 0 16px #6A5ACD;
    }
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6A5ACD;
    /*box-shadow:
        0 0 4px #6A5ACD,
        0 0 8px #6A5ACD,
        0 0 12px #6A5ACD;*/
    animation: neonPulse 3s infinite;
}

.logo {
    font-size: 2em;
    font-weight: bold;
}

.logo img {
    max-width: 100%;
    height: auto;
}


nav {
    margin-top: 2px;
}

nav button {
    margin: 5px;
    padding: 10px 15px;
    background: #4b5563;
    color: white;
    border: 1px solid #6A5ACD; /* Thin neon border */
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 3px #6A5ACD; /* Soft glow */
    transition: box-shadow 0.3s ease;
    font-size: initial;
}

nav button:hover {
    background: #6b7280;
    box-shadow:
        0 0 4px #6A5ACD,
        0 0 8px #6A5ACD; /* Pulse a bit more on hover */
}

.content-wrapper { /*boxes the content to a max width and centered*/
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}


main {
    /*padding: 20px; wrapper has it now*/
    /*min-height: 950px; /*main content height*/
    min-height: 950px;
    flex: 1;
}

footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 220px;
    position: relative;
    box-shadow: 0 -1px 4px #6A5ACD; /* Thin glowing top edge */
    border-top: 1px solid #6A5ACD;  /* Very thin solid border */
    padding-top: 2px;
}


.products-desc {
    margin-bottom: 20px;
}

.slideshow {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
}

.slideshow img {
    height: 480px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 10px;
}

.slideshow-container {
    position: relative;
    max-width: 998px;
    overflow: visible; /*change to visible if buttons clipped*/
    margin: 20px 0;
    margin-bottom: 20px;
}

.slides {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px;
    width: 998px;
    min-height: 950px;
    /*margin-bottom: 20px;*/ 
}

.slide-frame {
    position: relative; /* This is important for positioning the info icon */
    width: 998px;
    height: 950px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.slide-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/*Image popup styles*/
/*.slides img {
    max-height: 950px;
    height: auto;         /* allow natural scaling */
/*    width: auto;          /* remove hard width */
/*    max-width: 100%;      /* still responsive */
/*    object-fit: contain;  /* fit inside container without distortion */
/*    scroll-snap-align: center;
    border-radius: 8px;
    flex-shrink: 0;
}*/

.slides img:hover {
    z-index: 100;
}

.image-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80vw;
    max-height: 80vh;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: none;
    border: 3px solid #6A5ACD;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(106, 90, 205, 0.7);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    color: #e8f5e9; /* Light greenish-white text */
    background: rgba(76, 175, 80, 0.7); /* Soft green background */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Initial glow */
    text-shadow: 0 0 3px rgba(0, 100, 0, 0.5); /* Text glow */
}

.info-icon:hover {
    transform: scale(1.2);
    background: rgba(76, 175, 80, 0.9); /* More opaque on hover */
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.8); /* Stronger glow on hover */
    text-shadow: 0 0 5px rgba(0, 100, 0, 0.8); /* Stronger text glow */
}

/* Optional: Add a subtle pulse animation */
@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
    }
}

.info-icon {
    animation: gentlePulse 3s infinite;
}

.info-icon:hover {
    animation: none; /* Stop pulse animation on hover */
}

.image-popup.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    padding: 10px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    border: 3px solid #6A5ACD;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(106, 90, 205, 0.7);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-container.active {
    opacity: 1;
    visibility: visible;
}

.popup-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}

.popup-caption {
    padding: 10px;
    text-align: center;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #333;
}

.popup-text {
    padding: 20px;
    font-size: 1rem;
    color: #333;
    max-width: 500px;
    text-align: left;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: #6A5ACD;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;        /* wider */
    height: 80px;       /* taller */
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    border-radius: 8px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(106, 90, 205, 0.4);
}

.slide-btn:hover {
    background: rgba(0,0,0,0.7);
}

.slide-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

.slide-btn:first-of-type {
    left: -25px;  /*controlled in js*/
    transform: translate(-50%, -50%);  /* horizontal and vertical centering */
}

.slide-btn:last-of-type {
    right: -25px; /*controlled in js*/
    transform: translate(50%, -50%);   /* horizontal and vertical centering */
}

