body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#rocket {
    font-size: 5em;
    transition: transform 0.1s;
    position: relative;
}

#message {
    font-size: 1.5em;
    margin-top: 20px;
}

.container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Create a container for the rocket that won't shake */
.rocket-container {
    position: relative;
    height: 120px; /* Fixed height so particles have room to animate */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 30px 0;
    /* Prevent inheritance of shake animation */
    transform: none !important;
    animation: none !important;
    overflow: visible; /* Allow particles to go outside */
}

.restart-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.restart-button:hover {
    background-color: #45a049;
}

.category {
    font-weight: bold;
    font-size: 1.2em;
    color: #000000;
}

/* Add these styles for particles and shake effect */
.particle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    font-size: 1.8em;
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.7));
}

/* Improve shake animation to be more noticeable but not extreme */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
    75% { transform: translateX(-5px); }
}

.shake {
    animation: shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}
/* Add transition to the rocket for smoother animation */
.rocket {
    font-size: 5em;
    transition: transform 0.2s ease-out;
}

