* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a1128;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #1c2541;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    margin-bottom: 20px;
    color: #ffd700;
}

.hidden {
    display: none !important;
}

/* Setup Screen */
#setup-screen {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#questions-input {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    border: 1px solid #4a6491;
    border-radius: 5px;
    resize: vertical;
    font-size: 1rem;
}

button {
    background-color: #3a506b;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4a6491;
}

#start-game {
    background-color: #ffd700;
    color: #0a1128;
    font-weight: bold;
    margin-top: 10px;
}

#start-game:hover {
    background-color: #ffec80;
}

/* Game Screen */
#game-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#progress-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#money-indicator {
    color: #ffd700;
    font-weight: bold;
}

#question-container {
    background-color: #3a506b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#question-text {
    font-size: 1.2rem;
    line-height: 1.5;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-row {
    display: flex;
    gap: 15px;
}

.answer-btn {
    flex: 1;
    text-align: left;
    padding: 15px;
    font-size: 1.1rem;
    background-color: #2c3e50;
    border: 2px solid #4a6491;
    transition: all 0.3s;
}

.answer-btn:hover {
    background-color: #3a506b;
}

.correct {
    background-color: #2ecc71 !important;
    color: white;
}

.incorrect {
    background-color: #e74c3c !important;
    color: white;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#lifelines {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#fifty-fifty {
    background-color: #e67e22;
}

#fifty-fifty:hover {
    background-color: #f39c12;
}

#fifty-fifty.used {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

/* Result Screen */
#result-screen {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#result-title {
    font-size: 2rem;
}

#result-message {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#final-money {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 20px;
}

#play-again {
    background-color: #ffd700;
    color: #0a1128;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 1.2rem;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .answer-row {
        flex-direction: column;
    }
    
    #lifelines {
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        padding: 15px;
    }
}