.main-content {
text-align: center;
padding: 2rem;
}

.races-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
padding: 2rem 0;
}

.race-button {
background-color: #4A4A6A;
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 8px;
font-size: 1.25rem;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.race-button:hover {
background-color: #6a6a99;
transform: translateY(-2px);
}

/* Modal and Overlay Styling */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;
}

.modal {
background-color: #fff;
padding: 2rem;
border-radius: 12px;
width: 90%;
max-width: 600px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
position: relative;
max-height: 80vh;
overflow-y: auto;
animation: fadeIn 0.3s ease-out;
}

.modal-content h2 {
margin-top: 0;
color: #4A4A6A;
}

.close-modal {
position: absolute;
top: 10px;
right: 15px;
font-size: 2rem;
cursor: pointer;
color: #999;
transition: color 0.2s;
}

.close-modal:hover {
color: #333;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}