* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.main-title {
    font-size: 120px;
    font-weight: 900;
    color: #0f3460;
    margin-bottom: 40px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 5px;
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.title-line {
    display: block;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.voting-section {
    margin: 40px 0;
}

.question {
    font-size: 24px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

.voting-form {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.vote-btn {
    padding: 25px 50px;
    font-size: 28px;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vote-yes {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
}

.vote-yes:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.6);
}

.vote-no {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.vote-no:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.6);
}

.vote-home {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: white;
}

.vote-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.6);
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
    animation: slideDown 0.5s ease;
}

.warning-message {
    background: #ff9800;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    font-size: 18px;
    font-weight: 600;
    animation: slideDown 0.5s ease;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results {
    margin-top: 60px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.results h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.result-bars {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.result-item {
    text-align: left;
}

.result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.result-count {
    font-size: 24px;
    font-weight: 700;
    color: #0f3460;
}

.result-bar {
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.result-fill {
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: 700;
}

.result-fill-yes {
    background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
}

.result-fill-no {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
}

.result-fill-home {
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.result-percent {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.total-votes {
    margin-top: 40px;
    font-size: 22px;
    color: #333;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vote-again {
    margin-top: 30px;
}

.btn-refresh {
    display: inline-block;
    padding: 15px 40px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.visitor-counter {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-title {
        font-size: 100px;
        letter-spacing: 3px;
        margin-bottom: 30px;
    }

    .question {
        font-size: 18px;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .vote-btn {
        font-size: 20px;
        padding: 18px 30px;
        min-width: 100%;
    }

    .voting-form {
        gap: 15px;
    }

    .container {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .results {
        padding: 25px 15px;
        margin-top: 40px;
    }

    .results h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .result-label {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .result-count {
        font-size: 18px;
    }

    .result-bar {
        height: 35px;
    }

    .result-percent {
        font-size: 16px;
    }

    .total-votes {
        font-size: 18px;
        margin-top: 30px;
        padding: 15px;
    }

    .success-message,
    .warning-message {
        font-size: 16px;
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 80px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .question {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .container {
        padding: 25px 15px;
    }

    .vote-btn {
        font-size: 18px;
        padding: 16px 25px;
    }

    .results {
        padding: 20px 10px;
    }

    .results h3 {
        font-size: 18px;
    }

    .result-label {
        font-size: 14px;
    }

    .result-count {
        font-size: 16px;
    }

    .result-bar {
        height: 30px;
    }

    .total-votes {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: 70px;
    }

    .question {
        font-size: 15px;
    }

    .vote-btn {
        font-size: 16px;
        padding: 14px 20px;
    }
}
