:root {
    --space-dark: #12132c;  
    --space-light: #273469;  
    --accent-color: #ff6b6b;  
    --text-color: #e6e6fa;  
}

body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: var(--space-dark);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--space-dark), var(--space-light));
    z-index: -1;
    animation: twinkle 3s infinite;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    animation: star-twinkle 2s infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

#space-game-container {
    width: 90%;
    max-width: 500px;
    background-color: rgba(39, 84, 105, 0.7);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#spaceship-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--accent-color);
}

#multiplication-problem {
    font-size: 2em;
    text-align: center;
    margin: 20px 0;
    color: var(--text-color);
}

#control-panel {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

#user-answer {
    padding: 10px;
    font-size: 1.2em;
    width: 150px;
    background-color: rgba(255,255,255,0.1);
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    border-radius: 5px;
}

#submit-answer, #start-game, #difficulty-select {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--space-dark);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

#submit-answer:hover, #start-game:hover, #difficulty-select:hover {
    background-color: #ff99a2;
    transform: scale(1.05);
}

#mission-feedback {
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

.space-text {
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}