/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #000033;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: auto;
}

#game-container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

h1, h2 {
    margin: 10px 0;
}

button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #4682b4;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#auth-section, #game-section, #leaderboard {
    background-color: rgba(0, 0, 51, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#auth-form input {
    padding: 10px;
    margin: 10px;
    width: 200px;
    border-radius: 5px;
    border: none;
}

#question-section {
    margin: 20px 0;
}

.question-frame {
    background: linear-gradient(135deg, #000066, #000033);
    border: 3px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    text-align: center;
}

#question-text {
    color: #ffd700;
    font-size: 24px;
    margin: 0;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
}

.answer-frame {
    background: linear-gradient(135deg, #000066, #000033);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.answer-frame:hover {
    background: linear-gradient(135deg, #1e90ff, #000066);
    transform: scale(1.02);
}

.answer-frame.selected {
    background: linear-gradient(135deg, #ffff00, #ffd700);
    border-color: #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.7);
}

.answer-frame.correct {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.answer-frame.incorrect {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.answer-frame.disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.answer-label {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
    width: 30px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.answer-text {
    color: #fff;
    font-size: 18px;
    flex: 1;
    text-align: left;
}

.answer-frame.selected .answer-label,
.answer-frame.selected .answer-text,
.answer-frame.correct .answer-label,
.answer-frame.correct .answer-text,
.answer-frame.incorrect .answer-label,
.answer-frame.incorrect .answer-text {
    color: #000;
    text-shadow: none;
}

#timer-container {
    margin: 20px 0;
}

#timer-circle {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd700, #ff8c00);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

#timer-text {
    font-size: 24px;
    color: #000;
    font-weight: bold;
}

#lifelines {
    margin: 20px 0;
}

#money-ladder {
    position: fixed;
    right: 20px;
    top: 20px;
    background: rgba(0, 0, 51, 0.8);
    padding: 10px;
    border-radius: 10px;
}

#money-list li {
    list-style: none;
    padding: 5px;
    color: #fff;
}

#money-list li.current-level {
    background: #ffd700;
    color: #000;
    font-weight: bold;
}

#money-list li.guaranteed-level {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.8);
}

#money-list li.winner-level {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#leaderboard-table th, #leaderboard-table td {
    padding: 10px;
    border: 1px solid #ffd700;
}

#game-end-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-end-content {
    background: #000033;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #ffd700;
    transition: transform 0.5s, opacity 0.5s;
}

#game-end-content.winner {
    transform: scale(1.1);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    animation: winner-glow 1.5s infinite;
}

@keyframes winner-glow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.7); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 0, 1); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.7); }
}