
/* Background Image & Description Layout */
.voting-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 900px;
    margin: auto;
}

.background-preview {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.background-preview img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.background-desc {
    flex: 1;
    max-width: 50%;
    padding-left: 20px;
    font-size: 14px;
    color: #ccc;
}

/* Mobile Layout - Adjust Background Layout */
@media (max-width: 900px) {
    .voting-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .background-preview,
    .background-desc {
        max-width: 100%;
        padding-left: 0;
    }
    .background-preview img {
        max-width: 100%;
    }
}

/* Voting Results Table */
.vote-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background-color: #2b2b2b;
    color: white;
}
.vote-table th, .vote-table td {
    border: 1px solid #444;
    padding: 10px;
    position: relative;
}
.vote-table th {
    background-color: #3e3e3e;
    font-weight: bold;
}
.vote-table tr:nth-child(even) {
    background-color: #333;
}
.vote-table tr:hover {
    background-color: #555;
}

/* Apply Background Image to Pattern Image Cell */
.pattern-bg-cell {
    position: relative;
    background-size: auto 100%; /* Fill height proportionally, allow width to expand */
    background-position: center;
    height: 120px; /* Match pattern image height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
}

.pattern-thumb {
    max-width: 80px; /* Maintain size consistency */
    max-height: 100px; /* Ensure it doesn't exceed the cell height */
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

/* Voting Scale Bar 
.voting-scale {
    width: 120px;
    height: 15px;
    background: white;
    border: 2px solid #ccc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 4px;
    overflow: hidden;
}
*/

.voting-scale-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
}

.voting-scale-marks span {
    width: 2px;
    height: 100%;
    background: #ccc;
}


/* Voting Results Container */


/* Background Header */
.bg-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

/* Description Paragraph */
.vote-description {
    text-align: center;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
}

.vote-description a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

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

/* Voting Results Table */
.vote-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background-color: #2b2b2b;
    color: white;
}
.vote-table th, .vote-table td {
    border: 1px solid #444;
    padding: 10px;
    position: relative;
    vertical-align: bottom;
}
.vote-table th {
    background-color: #3e3e3e;
    font-weight: bold;
}
.vote-table tr:nth-child(even) {
    background-color: #333;
}
.vote-table tr:hover {
    background-color: #555;
}

/* Voting Results Container */
.vote-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #2b2b2b;
    color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Background Header */
.bg-header {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

/* Background Image Container */
.background-preview-container {
    text-align: center;
    margin-bottom: 20px;
}

.background-preview-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .background-preview-container {
        display: none;
    }
}

/* Description Paragraph */
.vote-description {
    text-align: center;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
}

.vote-description a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

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

/* Voting Item */
.vote-item {
    background-color: #3b3b3b;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-row {
    margin-bottom: 10px;
    text-align: center;
}

/* Image Container with Background */
.image-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: auto;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
}

.image-container img.pattern-thumb {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}

/* Sale and Promo Buttons */
.sale-button, .promo-button {
    background-color: red;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

.promo-button {
    background-color: orange;
}

/* Voting Scale Bar (Vertical) 
.vote-bars {
    display: flex;
    justify-content: center;
    gap: 15px;
}
*/

/**/
.voting-scale {
    width: 50px;
    height: 150px; /* Increased height for visibility */
    background: #f1f1f1;
    border: 2px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.voting-scale-fill {
    width: 100%;
    background: #FFC107; /* Gold */
    transition: height 0.3s ease-in-out;
    min-height: 10px; /* Ensures small values are still visible */
}


/* Responsive Mobile Layout */
@media (max-width: 700px) {
    .vote-table {
        display: none;
    }
    .vote-item {
        width: 100%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .vote-row {
        width: 100%;
    }
    .vote-title-row {
        font-size: 18px;
        font-weight: bold;
    }
    .image-container {
        width: 90%;
        max-width: 400px;
    }
    .vote-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    .vote-scale-titles, .vote-bars {
        display: flex;
        justify-content: space-around;
        width: 100%;
        max-width: 300px;
        font-size: 14px;
        font-weight: bold;

    }
    .vote-scale-titles div {
        flex: 1;
        text-align: center;
    }
    .vote-bars, .voting-scale-container {
        margin-top: 12px;
        flex: 1;
        text-align: center;
    }
}

/* Consistent Link Styling */
.vote-link {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.vote-link:hover {
    color: #ffd700;
    text-decoration: underline;
}
.vote-scale-titles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Match the width of vote-bars */
    margin: 0 auto; /* Centering */
    text-align: center;
}

.vote-scale-titles div {
    flex: 1;
    text-align: center;
    white-space: nowrap; /* Prevent stacking */
}

.vote-bars {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    margin-top: 12px;
}
.voting-section {
    background-color: #555; /* Light background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 10px; /* Rounded corners */
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.voting-info {
    background-color: #333; /* Light blue-tinted background */
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.voting-info a {
    color: #0056b3; /* Make link more noticeable */
    font-weight: bold;
}
/* Fix layout issues for voting results */
.voting-results-container {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
}

/* Ensure background title is properly spaced */
.bg-name h3 {
    text-align: center;
    font-size: 22px;
    color: #ffcc00 !important; /* Adjust color as needed */
    text-decoration: none; /* Remove underline if necessary */
    margin-bottom: 10px;
}
.bg-name h3 a {
    color: inherit !important;
    text-decoration: none;
}
.bg-name h3 a:hover {
    color: #555; /* Adjust hover color */
    text-decoration: underline;
}
.all-results-link {
    font-size: 14px;
    color: #0073e6;
}
.bg-desc {
    flex: 1;
    max-width: 50%;
}
/* Background description styling */
.bg-desc p {
    text-align: center;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Voting row with background image */
.voting-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}
.bg-image {
    flex: 1;
    max-width: 50%;
}
/* Image inside background */
.bg-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Voting columns for Human, Deer, Overall */
.voting-columns {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

/* Column styling */
.voting-columns .column {
    flex: 1;
    padding: 10px;
}
.column {
    flex: 1;
}
/* Style for list of top camo patterns */
.voting-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.voting-columns li {
    padding: 5px 0;
}

.voting-columns li a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.voting-columns li a:hover {
    text-decoration: underline;
    color: #ffd700;
}
.voting-titles {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    text-align: left;
    margin-top: 10px;
}
/* Make voting sections responsive */
@media (max-width: 768px) {
    .voting-results-container {
        padding: 10px;
    }

    .voting-columns {
        flex-direction: column;
        text-align: center;
    }

    .voting-columns .column {
        padding: 5px 0;
    }

}
@media (max-width: 768px) {
    .bg-desc {
        display: none;
    }

    .bg-image {
        max-width: 100%;
    }
}
.vote-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}
/* Optional: Style the ranking circle */
/* Fix for the rank-circle */
.rank-circle {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFC107; /* Gold/Yellow */
    color: #333;
    font-size: 14px;
    font-weight: bold;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Ensures it's above the image */
}
.pagination {
    text-align: center;
    margin-top: 20px;
}
.pagination a {
    margin: 5px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 3px;
}
.pagination a:hover {
    background: #ddd;
}
/* Center the form */
/* Form Styling: Keep elements in one row */
form {
    display: flex;
    flex-wrap: nowrap;  /* Prevents wrapping when there's space */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px; /* Spacing between elements */
    margin: 20px auto;
    max-width: 1000px; /* Prevents excessive stretching */
    white-space: nowrap; /* Prevents content from breaking into new lines */
}

/* Make select inputs and button consistent */
form select,
form button {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    white-space: nowrap; /* Ensures text inside doesn’t break */
}

/* Responsive: Allow stacking only on very small screens */
@media (max-width: 600px) {
    form {
        flex-wrap: wrap; /* Allow wrapping ONLY on very small screens */
    }

    form select,
    form button {
        width: 100%; /* Full width when stacked */
    }
}

/* Style the vote-result-item */
.vote-result-item {
    position: relative; /* Ensures .rank-circle is positioned within it */
    background-color: #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* Make brand and pattern links gold/yellow */
.vote-result-item a {
    color: #FFC107; /* Gold/Yellow */
    text-decoration: none;
    font-weight: bold;
}

.vote-result-item a:hover {
    color: #FFD54F; /* Lighter shade for hover effect */
    text-decoration: underline;
}
.voting-scale-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px; /* Adjust width as needed */
    text-align: center;
}

.voting-scale-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px; /* Spacing between title and score */
}

.voting-score {
    position: absolute;
    bottom: 5px; /* Keeps it inside the bar */
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background: rgba(255, 255, 255, 0.8); /* Adds contrast */
    padding: 2px 0;
    border-radius: 3px;
}