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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header h1 i {
    color: #ff6b6b;
    margin-right: 15px;
}

.header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Game Info Cards */
.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.info-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Forms */
.start-form {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.start-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.start-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.menu-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Screen */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.lives {
    display: flex;
    gap: 10px;
}

.life {
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.life.active {
    color: #ff6b6b;
}

.score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
}

.score i {
    color: #ffd93d;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    background: rgba(255,255,255,0.3);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Question Card */
.question-card {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.answer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.answer-btn {
    padding: 20px;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.true-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.true-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

.false-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.false-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.answer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Quit Button */
.quit-btn {
    align-self: center;
    min-width: auto;
    padding: 12px 25px;
    font-size: 1rem;
}

/* Game Over Screen */
.game-over-content {
    text-align: center;
    background: rgba(255,255,255,0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.game-over-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.game-over-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.game-over-content p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.game-over-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ranking */
.ranking-list {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-position {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    min-width: 50px;
}

.ranking-position.first {
    color: #ffd93d;
}

.ranking-position.second {
    color: #c0c0c0;
}

.ranking-position.third {
    color: #cd7f32;
}

.ranking-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-left: 20px;
}

.ranking-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

/* Admin Panel */
.admin-section {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.admin-players {
    max-height: 400px;
    overflow-y: auto;
}

.admin-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: white;
}

.admin-player-info {
    flex: 1;
}

.admin-player-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.admin-player-score {
    color: #667eea;
    font-size: 0.9rem;
}

.admin-player-actions {
    display: flex;
    gap: 10px;
}

.admin-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #4ecdc4;
    color: white;
}

.edit-btn:hover {
    background: #44a08d;
}

.delete-btn {
    background: #ff6b6b;
    color: white;
}

.delete-btn:hover {
    background: #ee5a52;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-content {
    text-align: center;
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feedback-icon.correct {
    color: #4ecdc4;
}

.feedback-icon.incorrect {
    color: #ff6b6b;
}

.feedback-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.feedback-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Edit Form */
.edit-form h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.edit-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.edit-form input:focus {
    outline: none;
    border-color: #667eea;
}

.edit-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.edit-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .game-info {
        grid-template-columns: 1fr;
    }
    
    .answer-buttons {
        grid-template-columns: 1fr;
    }
    
    .menu-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .game-over-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .question-card {
        padding: 25px;
    }
    
    .question-card h2 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        padding: 25px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary, .btn-secondary {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-player-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-player-actions {
        justify-content: center;
    }
}

