/* Reset and base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f0f9;
    color: #3e3e3e;
    line-height: 1.6;
    padding: 20px;
}

/* Main container */
.container {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(128, 0, 128, 0.1);
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #5b2c6f; /* Deep purple */
}

/* Forms */
form label {
    display: block;
    //margin: 15px 0 5px;
    font-weight: 600;
    color: #5a2a7c;
}

form input[type="text"],
form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #b99bd4;
    border-radius: 6px;
    font-size: 16px;
    background-color: #faf8fc;
}

form input[type="text"]:focus,
form select:focus {
    border-color: #8854d0;
    outline: none;
}

/* Buttons */
button {
    display: inline-block;
    background-color: #8854d0; /* Purple button */
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover,
.vote-buttons button:hover {
    background-color: #6c3cb0;
}

/* Alert boxes */
.alert {
    padding: 12px;
    margin: 20px 0;
    border-radius: 6px;
    font-weight: 600;
}

.alert-success {
    background-color: #e8dcf5;
    color: #4b2b7f;
    border: 1px solid #c3b2e8;
}

.alert-error {
    background-color: #f6e0ec;
    color: #9c1f5e;
    border: 1px solid #f0b6d1;
}

/* Button row */
.vote-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.vote-buttons button {
    flex: 1;
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    form button,
    .vote-buttons button {
        font-size: 14px;
        padding: 10px;
    }
}

.progress-bar {
            width: 100%;
            background: #eee;
            margin-bottom: 15px;
        }
        .progress {
            //height: 20px;
            background: #8854d0;
            color: white;
            text-align: center;
        }
.alert{
    color: red;
    border: 1px solid #F00;
    padding: 12px;
    border-radius: 5px;
    background-color: #ffe2e0;
}

.alert2{
    color: green;
    border: 1px solid #0F0;
    padding: 12px;
    border-radius: 5px;
    background-color: #e5ffe0;
}