body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

header {
    background-color: #c00;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-section {
    background-color: #fff;
    border-left: 5px solid #c00;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: #c00;
    margin-top: 0;
}

.about-content ul {
    padding-left: 1.5rem;
}

.voting-section, .results-section {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.voting-section h2, .results-section h2 {
    color: #c00;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.candidates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.candidate {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.candidate:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.candidate input[type="radio"] {
    margin-right: 0.5rem;
}

.candidate label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.party {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.captcha-container {
    margin: 1.5rem 0;
}

.vote-button {
    background-color: #c00;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.chart-container {
    flex: 1;
    min-width: 300px;
}

.results-table {
    flex: 1;
    min-width: 300px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.already-voted {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.votes-info {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #ef9a9a;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #a5d6a7;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 1rem;
    display: none;
    z-index: 1000;
}

.cookie-banner p {
    margin: 0 0 1rem;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

#accept-cookies {
    background-color: #c00;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .candidates {
        grid-template-columns: 1fr;
    }
    
    .results-container {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
}
