body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
}

h1 {
    color: #333;
    text-align: center;
    margin-top: 20px;
}

#votingForm {
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center align the content */    
}

label {
    display: inline-block; /* Set labels to display as inline-block */
    width: 75px; /* Fixed width for labels */
    vertical-align: center; /* Align labels to the top of the input */
}

.input-group {
    margin-bottom: 15px; /* Adjust vertical spacing between input groups */
}

/* Updated styles for better mobile responsiveness */
@media only screen and (max-width: 600px) {
    .name-list-container {
        position: absolute;
        width: 100%;
        top: 40px;
        max-height: 200px;
        overflow-y: auto;
    }

    .name-item {
        padding: 12px;
    }
}

button {
    background-color: #800000; /* Dark red color for the button */
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background-color: #600000; /* Darker red color on hover */
}


.error {
    border: 2px solid red;
}

.error-message {
    color: red;
    margin-bottom: 5px;
}

/* Add these styles to your CSS file */
#successMessage {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

#successMessage h1 {
    color: #3c763d;
}

#successMessage table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#successMessage th, #successMessage td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#successMessage th.points-column {
    text-align: right;
}

#successMessage th {
    background-color: #dff0d8;
}

#successMessage a {
    color: #3c763d;
    text-decoration: underline;
}

#successMessage a:hover {
    color: #2a5d38;
}

/* Additions for the success page */
.container {
    max-width: 800px;
    margin: 20px auto;
}

h1 {
    color: #333;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

thead {
    background-color: #333;
    color: #fff;
}

th, td {
    padding: 12px;
    text-align: left;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
