/* General styling */
body {
    font-family: 'Arial', sans-serif;
    color: #ddd;
    background-color: #000;
    background-image: url('../images/space-background.jpg'); /* Add your space background image */
    background-size: cover;
    background-attachment: fixed;
}

/* Add a stars animation */
@keyframes twinkling {
    0% { background-position: 0 0; }
    100% { background-position: -10000px 5000px; }
}
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent url('../images/stars.png') repeat;
    z-index: -1;
    animation: twinkling 200s linear infinite;
}

/* Navigation styling */
header {
    background-color: rgba(34, 34, 34, 0.8);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 1rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #ffcc00;
}

/* Main heading */
main h1 {
    text-align: center;
    font-size: 3.5rem;
    margin: 8rem 0 2rem 0;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Race selector styling */
#race-selector {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.race-icon {
    text-align: center;
    margin: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
}
.race-icon:hover {
    transform: scale(1.05);
}
.race-icon img {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}
.race-icon h3 {
    font-size: 1.5rem;
    color: #ffcc00;
}

/* Race details section */
#race-details {
    margin: 2rem 1rem;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(34, 34, 34, 0.8);
    color: #fff;
    font-size: 1rem;
}
