body {
    margin: 0;
    padding: 0;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#earth {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('graphic/earth.png'); /* Path to the Earth image */
    background-size: cover; /* Ensure the image covers the entire element */
    background-position: center; /* Center the image */
    border-radius: 50%; /* Maintain the circular shape */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


#timer {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: white;
    visibility: hidden; /* Hide the timer initially */
}

.asteroid {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: cover; /* Ensure the image covers the entire element */
    background-position: center; /* Center the image */
    border-radius: 50%; /* Maintain the circular shape */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Ensure text visibility, if needed */
    font-size: 14px; /* Adjust the font size as needed */
    text-align: center; /* Center text alignment */
    margin-top: 55px;
}

.asteroid-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column; /* Stack the asteroid and its name vertically */
    align-items: center; /* Center the asteroid and name horizontally */
}

.asteroid-name {
    margin-top: 55px; /* Space between the asteroid and its name */
    color: white; /* Ensure the text is visible */
    font-size: 14px; /* Adjust the font size as needed */
    text-align: center; /* Center the text */
    text-shadow: 50px 50px 5px black; /* Add a drop shadow */
}

#stats {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#controls input, #controls button {
    margin: 10px;
    padding: 10px;
    font-size: 16px;
}

/* New styles for congratulatory message and score display */
.congrats-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    font-size: 24px;
    color: white;
    text-align: center;
    animation: fadeIn 1s ease;
}

.score-message {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 20px;
    color: white;
    text-align: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
