:root {
    --primary: #2c3e50;
    --bg: #f0f2f5;
    --white: #ffffff;
    --team-a: #3498db;
    --team-b: #e74c3c;
    --team-c: #2ecc71;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

header h1 {
    margin: 0;
    color: var(--primary);
    font-weight: 800;
}

header p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.card h2 {
    margin: 10px 0 5px;
    font-size: 1.5rem;
}

.card p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.card:active .overlay {
    opacity: 1;
}

#status-message {
    height: 30px;
    font-weight: 600;
    margin: 20px 0;
}

.results-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.result-item {
    margin-bottom: 15px;
}

.result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-track {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.fill-a {
    background-color: var(--team-a);
}

.fill-b {
    background-color: var(--team-b);
}

.fill-c {
    background-color: var(--team-c);
}

.total-votes {
    text-align: right;
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 10px;
}