* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 800px;
    height: 600px;
    background-color: #16213e;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: #e94560;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.score-display, .level-display {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.2em;
    background-color: rgba(233, 69, 96, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #0f3460;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.black-hole {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #000000 0%, #1a1a2e 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px #e94560;
    animation: pulse 2s infinite;
}

.player {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #e94560;
    border-radius: 50%;
    transition: all 0.1s ease;
    box-shadow: 0 0 10px #e94560;
}

.math-problem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 46, 0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    min-width: 300px;
}

#equation {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(233, 69, 96, 0.5);
}

#answer {
    padding: 10px;
    font-size: 1.2em;
    width: 150px;
    margin-right: 10px;
    border: 2px solid #e94560;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
}

#answer:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

#submit {
    padding: 10px 25px;
    font-size: 1.2em;
    background-color: #e94560;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#submit:hover {
    background-color: #c1121f;
    transform: scale(1.05);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 46, 0.95);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
    min-width: 300px;
}

.game-over h2 {
    color: #e94560;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.game-over p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.game-over button {
    padding: 12px 30px;
    font-size: 1.3em;
    background-color: #e94560;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.game-over button:hover {
    background-color: #c1121f;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px #e94560;
    }
    50% {
        box-shadow: 0 0 50px #e94560;
    }
    100% {
        box-shadow: 0 0 30px #e94560;
    }
} 