


/*
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Adjust spacing between elements 
}*/

#vision-button {
    background-color: orange;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#vision-button.human {
    background-color: green; /* Change to green when in Human Vision mode */
}

#shrink-button {
    background-color: blue;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#shrink-button.enlarge {
    background-color: red; /* Change to red when in Enlarge mode */
}

#toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745; /* green */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-title-row {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center;
    gap: 10px; /* Adds spacing */
    text-align: center;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between links */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center;
}

.product-link {
    color: #007bff; /* Blue link */
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
}

.product-link:hover {
    text-decoration: underline;
}

.sale-link {
    color: red;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}

.sale-link:hover {
    text-decoration: underline;
}

/* Product Display Styling */
.product-container {
    position: relative;
    width: 100%; /* Full width of screen or parent container */
    max-width: 1200px;
    height: auto; /* Allow scaling */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents excess image overflow */
}

.product-background {
    width: 100%; /* Always fill the container width */
    max-width: 1200px; /* Ensure it doesn’t exceed original width */
    height: auto; /* Keeps aspect ratio */
    display: block;
    min-width: unset !important; /* Remove any unintended min-width */
    min-height: unset !important; /* Remove any unintended min-height */
}

.product-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: calc(0.6 * var(--bg-height)); /* 60% of background height */
    max-height: calc(0.6 * var(--bg-height));
}


/* Tablet and smaller screens (reduce size proportionally) */
@media (max-width: 1200px) {
    .product-background {
        width: 100% !important; /* Background scales down */
        height: auto !important;
        max-width: 100vw !important; /* Ensures it never exceeds viewport width */
        min-width: unset !important; /* Ensures no minimum width restriction */
        min-height: unset !important; /* Remove any minimum height restriction */
    }

    .product-overlay {
        height: calc(0.6 * 100%); /* Maintain proportion relative to background */
        width: auto;
    }
}

/* Mobile Screens - iPhone SE Example */
@media (max-width: 375px) {
    .product-background {
        width: 100vw !important; /* Ensure it fits the screen width */
        height: auto !important; /* Maintain aspect ratio */
        max-width: 100% !important;
        min-width: unset !important; /* Remove any hidden constraints */
        min-height: unset !important; /* Remove any minimum height restriction */
    }

    .product-overlay {
        height: calc(0.6 * 100%); /* Adjust height accordingly relative to background */
        width: auto;
    }
}

/* Shrink Button Functionality */
.shrink-active .product-overlay {
    height: 40% !important; /* Shrinks to 40% of background height */
    max-height: 40% !important;
}


/* Voting Section Styling */
/* Main Voting Container */
.vote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #222;
    border-radius: 8px;
    max-width: 350px;
    margin: 15px auto;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}

/* Voting Section Styling */
.vote-heading {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Voting Message */
.vote-message {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    margin-top: 10px;
}

/* Voting Form Container */
.vote-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reduce spacing */
    padding: 12px;
    background: #333; /* Dark theme */
    border-radius: 8px;
    max-width: 320px; /* Reduce form width */
    margin: 15px auto;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

/* Label & Select Group - Keep Together */
.vote-group {
    display: flex;
    align-items: center;
    justify-content: center; /* Center items together */
    gap: 6px;
    width: auto;
}

/* Labels */
.vote-label {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Select Dropdowns (Smaller & Inline) */
.vote-select {
    width: 50px; /* Smaller size */
    padding: 4px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    text-align: center;
    transition: border-color 0.2s ease-in-out;
}

.vote-select:focus {
    border-color: #ffd700;
    outline: none;
}

/* Submit Button */
.vote-submit {
    background-color: #ffd700;
    color: #222;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 8px;
}

.vote-submit:hover {
    background-color: #e6c200;
}

/* Description Below Button */
.vote-description {
    font-size: 12px;
    text-align: center;
    color: #ccc;
    margin-top: 5px;
    line-height: 1.4;
    max-width: 280px;
}

/* "Find out how this helps" link */
.vote-description a {
    color: #ffd700;
    font-weight: bold;
    text-decoration: none;
}

.vote-description a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vote-form {
        width: 90%;
    }
}
.star-rating {
    display: flex;
    gap: 5px;
    cursor: pointer;
    font-size: 20px;
}

.star {
    color: #bbb; /* Default star color (gray) */
    transition: color 0.2s ease-in-out;
    pointer-events: auto;
    cursor: pointer;
}

.star.selected,
.star:hover {
    color: #ffd700; /* Highlight stars when selected or hovered */
}
