.rng-container {
    
    margin: 20px auto; /* Center the container horizontally */
    padding: 20px;
    max-width: 500px; /* Limit the width for better appearance */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Add a soft shadow */
    border-radius: 10px; /* Rounded corners for the container */
    background-color: #fff; /* White background */
}

h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select, button {
    padding: 8px 12px;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    border-radius: 5px; /* Rounded corners */
}

.gender-buttons {
    display: flex;
    justify-content: center; /* Center items horizontally */
    gap: 10px;
}

.gender-buttons label {
    background-color: #f1f1f1 !important; /* Default background color */
    padding: 5px 20px;
    cursor: pointer;
    border: 1px solid #ddd !important; /* Default border */
    border-radius: 20px;
    transition: background-color 0.3s ease !important;
    position: relative;
}

.gender-buttons input[type="radio"] {
    display: none; /* Hide the default radio button */
}

.gender-buttons input[type="radio"]:checked + label {
    background-color: rgb(214,33,74) !important; /* Primary color when checked */
    color: white !important; /* Change label text color when checked */
    border-color: rgb(214,33,74) !important; /* Change border color to match primary color */
}

/* To ensure label is styled when hovered */
.gender-buttons label:hover {
    background-color: rgb(214,33,74) !important; /* Keep the same primary color on hover */
    color: white !important; /* Ensure white text on hover */
    border-color: rgb(214,33,74) !important; /* Keep primary color border on hover */
}

button {
    background-color: rgb(214,33,74) !important; /* Primary color for button */
    color: white !important;
    border: none !important;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease !important;
    font-weight: bold;
}

button:hover {
    background-color: rgb(184,26,63) !important; /* Darker shade for hover */
}

#rng-names-container {
    margin-top: 20px;
}

#name-list {
    list-style-type: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

#name-list li {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space between name and button */
    align-items: center; /* Vertically align items */
    background-color: #f9f9f9; /* Light background color for each list item */
    padding: 5px 10px;
    margin-bottom: 10px; /* Add space between list items */
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#name-list li:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
    transform: translateY(-2px); /* Slightly lift the item on hover */
}

#name-list button {
    background-color: rgb(214,33,74); /* Primary color */
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
		margin:5px;
    transition: background-color 0.3s ease;
    width: auto; /* Let the button width be auto, based on the content */
/*     display: inline-block; /* Ensures the button adjusts width to content */ */
}

#name-list button:hover {
    background-color: rgb(184,26,63); /* Darker shade on hover */
}