/* Keep original styles */
body {
    font-family: sans-serif;
    /* Remove background-color here, will be set dynamically or by ::before */
    color: #333; /* Default text color */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* Ensure body takes full viewport for background */
    width: 100%;
    position: relative; /* Needed for z-index on ::before */
    z-index: 0;
}

/* The ::before pseudo-element will be styled inline for the background image
   but we can define the overlay here */
body::before {
    content: "";
    position: fixed; /* Cover the whole viewport */
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Default dark overlay */
    z-index: -1; /* Behind the content */
}


.container {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px; /* Limit width */
    width: 90%;
    color: #333; /* Dark text for readability on light background */
    z-index: 1; /* Ensure container is above the ::before overlay */
    position: relative; /* Needed for z-index context */
}

h1 {
    /* color: #555; */ /* Use color from .container */
    margin-bottom: 10px;
}

p {
    /* color: #666; */ /* Use color from .container */
    margin-bottom: 20px;
}

/* Keep other styles (.voting-section, .options, .vote-button, etc.) */
.voting-section {
    margin-top: 20px;
    border-top: 1px solid #ccc; /* Slightly darker border */
    padding-top: 20px;
}

.options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.vote-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px; /* Ensure buttons have some width */
}

.vote-button:hover {
    background-color: #0056b3;
}

.vote-button:disabled {
    background-color: #cccccc;
    color: #666;
    cursor: not-allowed;
}

.count {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darker background on light container */
    color: #333; /* Ensure count text is readable */
    padding: 5px 10px;
    border-radius: 4px;
}

.message {
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px; /* Reserve space */
}

.message.success {
    color: green;
}

.message.error {
    color: red;
}

/* Homepage specific styles from index.html can also be moved here */
.search-container { margin-bottom: 20px; }
#search-input { padding: 10px; width: 80%; max-width: 400px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px;}
#results-list { list-style: none; padding: 0; max-height: 400px; overflow-y: auto; border: 1px solid #eee; margin-top: 10px;}
#results-list li { margin-bottom: 0; padding: 8px 12px; border-bottom: 1px solid #eee;}
#results-list li:last-child { border-bottom: none; }
#results-list a { text-decoration: none; color: #007bff; display: block;}
#results-list a:hover { background-color: #f0f0f0; text-decoration: none; }
.loading, .status-error { margin-top: 15px; font-weight: bold; color: #666; }
.status-error { color: red; }
