/* SIMPLE, WORKING LAYOUT */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background-color);
}

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #222; /* Dark background */
    color: white;
    z-index: 10;
}

.header-logo img {
    height: 50px; /* Adjust as needed */
    display: block;
}

.header-left {
    flex: 1; /* Keeps space for centering */
}

.header-right {
    flex: 1;
    text-align: right;
}

.main-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #febf11;
    text-decoration: none;
    padding: 0.5rem;
    border: 2px solid #febf11;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    font-size: 1.2rem; /* Adjust icon size */
    width: 2.5rem; /* Square button */
    height: 2.5rem;
}

.main-site-link i {
    font-size: 1.2rem;
}

.main-site-link:hover {
    background: #febf11;
    color: #222;
}

.main-content {
    flex: 1;
    padding: 2rem 5%;
}

.masonry-hero {
    background: linear-gradient(135deg, var(--accent-color), #febf11);
    color: var(--primary-color);
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 500px;
}

.bouncing-piece-small {
    width: auto; /* Adjust size as needed */
    height: 150px;
    animation: bounce-rotate 2.5s infinite ease-in-out;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

.bouncing-piece {
    width: 200px; /* Adjust size as needed */
    height: auto;
    position: absolute;
    animation: bounce-rotate 2.5s infinite ease-in-out;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

.bouncing-piece.left {
    left: 15%;
}

.bouncing-piece.right {
    right: 15%;
}

@keyframes bounce-rotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.masonry-hero h1 {
    color: var(--background-color);
}

.equal-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch; /* Stretch columns to equal height */
}

.column {
    display: grid;
    grid-template-rows: auto;
    gap: 2rem; /* Restore gap for cards */
}

.card {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex; /* Make card flex container */
    flex-direction: column; /* Stack card content vertically */
}

/* Specific card heights */
.tall { min-height: 500px; }
.medium { min-height: 300px; }
.short { min-height: 200px; }

.image-rotator {
    width: 100%; /* Adjust to fit your card */
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.image-rotator img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; /* This ensures images cover the area nicely */
    opacity: 0; /* Hide all images initially */
    transition: opacity 1s ease-in-out;
}

.image-rotator img.active {
    opacity: 1; /* Show only the active image */
}

.card-img {
    width: 100%;
    object-fit: cover;
}

.card-content {
    background: #222; 
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-color);
    flex: 1;
    border-bottom: 2px solid white;
}

.card-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.price-info {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.label {
    font-size: 1rem;
    color: var(--text-color);
}

.old-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.discount-price {
    font-size: 2rem;
    color: var(--cta-bg-color);
    font-weight: bold;
}

.cta-ribbon {
    background: var(--primary-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 2rem;
    border-bottom: 2px solid white;
}

footer {
    padding: 0;
}

footer a {
    text-decoration: none;
    color: white;
}

/* Make images indicate they are clickable */
img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
img:hover {
    transform: scale(1.03); /* Slight zoom effect */
}

/* Lightbox improvements */
.lightbox {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 50%;
    transform: translateY(-50%); /* Center vertically */
    transition: background-color 0.3s ease;
    border: none;
    background: none;
}

.lightbox-prev::before {
    content: '\f104'; /* Font Awesome left arrow */
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
}

.lightbox-next::before {
    content: '\f105'; /* Font Awesome right arrow */
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
}

.close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .equal-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    .bouncing-piece {
        width: 150px; /* Adjust size as needed */
        }
        .bouncing-piece.left {
        left: 10%;
    }

    .bouncing-piece.right {
        right: 10%;
    }
}

@media (max-width: 600px) {
    .equal-columns {
        grid-template-columns: 1fr;
    }
    .bouncing-piece {
        width: 100px; /* Adjust size as needed */
        }
        .bouncing-piece.left {
        left: 1%;
    }
    .bouncing-piece.right {
        right: 1%;
    }
}

@media (max-width: 400px) {
    .header-logo img {
        height: 40px; /* Slightly reduce logo size */
    }

    .main-site-link {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .site-header {
        padding: 0.5rem; /* Reduce padding for more space */
    }
}
