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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#game-container {
    width: 100%;
    max-width: 900px;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.screen {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Start Screen */
#start-screen {
    text-align: center;
}

#start-screen h1 {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.friend-photo {
    margin: 20px auto;
    max-width: 300px;
}

#friend-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid #667eea;
    transition: transform 0.3s ease;
}

#friend-image:hover {
    transform: scale(1.05);
}

.intro-text {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #667eea;
}

.intro-text p {
    margin: 10px 0;
    line-height: 1.6;
    color: #444;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.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: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Info Screen */
#info-screen h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

.info-content {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.info-section {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.info-section h3 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-section p, .info-section li {
    line-height: 1.8;
    color: #444;
    margin: 10px 0;
}

.info-section ul {
    list-style-position: inside;
    padding-left: 10px;
}

.info-section strong {
    color: #667eea;
}

/* Game Screen */
#game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    margin: -40px -40px 30px -40px;
    color: white;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 10px;
}

.stat .label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat span:last-child {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
}

#patient-area {
    margin-bottom: 30px;
}

#patient-info {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

#patient-info h3 {
    color: #2980b9;
    margin-bottom: 15px;
    font-size: 1.5em;
}

#patient-details {
    line-height: 1.8;
    color: #333;
}

#patient-details p {
    margin: 8px 0;
}

.symptom {
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 3px;
    font-size: 0.9em;
}

#question-area {
    margin-top: 20px;
}

#question-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    padding: 15px;
    background: #fff9e6;
    border-radius: 10px;
    border-left: 4px solid #f39c12;
}

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

.option {
    padding: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: left;
}

.option:hover {
    border-color: #667eea;
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.option.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.option.correct {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
    animation: pulse 0.5s ease;
}

.option.incorrect {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    animation: shake 0.5s ease;
}

.option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

#feedback {
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
    animation: slideIn 0.5s ease;
}

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

#feedback.hidden {
    display: none;
}

#feedback.correct {
    background: #d5f4e6;
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

#feedback.incorrect {
    background: #fadbd8;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.feedback-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.feedback-text {
    line-height: 1.6;
    margin-bottom: 15px;
}

#next-button {
    display: block;
    margin: 20px auto 0;
    padding: 15px 40px;
    font-size: 1.1em;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

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

/* Result Screen */
#result-screen {
    text-align: center;
}

#result-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#result-title.success {
    color: #27ae60;
}

#result-title.failure {
    color: #e74c3c;
}

#result-message {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 30px;
}

#result-stats {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    display: inline-block;
    min-width: 300px;
}

.result-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.1em;
}

.result-stat:last-child {
    border-bottom: none;
}

.result-stat .label {
    font-weight: 600;
    color: #667eea;
}

.result-stat .value {
    font-weight: bold;
    color: #333;
}

#learning-summary {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
    text-align: left;
}

#learning-summary h3 {
    color: #2980b9;
    margin-bottom: 15px;
}

#learning-summary ul {
    list-style-position: inside;
    line-height: 1.8;
    color: #444;
}

#learning-summary li {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #start-screen h1 {
        font-size: 2em;
    }

    .screen {
        padding: 20px;
    }

    #game-header {
        margin: -20px -20px 20px -20px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 30px;
        font-size: 1em;
    }

    .option {
        padding: 15px;
        font-size: 1em;
    }
}

/* Scrollbar Styling */
.info-content::-webkit-scrollbar {
    width: 8px;
}

.info-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

