* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

h2, h3, h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.explanation, .explanation-detailed {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.explanation p, .explanation-detailed p {
    margin-bottom: 1rem;
}

ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

.simulator-container {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#reset-btn {
    background-color: #e74c3c;
}

#reset-btn:hover {
    background-color: #c0392b;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.simulation-area {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

#brain-container {
    flex: 1;
    min-height: 400px;
    min-width: 300px;
    position: relative;
    border-radius: 8px;
    background-color: #f0f2f5;
    overflow: hidden;
}

#info-panel {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    background-color: #f0f2f5;
    border-radius: 8px;
}

.neuron {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #95a5a6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background-color 0.3s;
}

.neuron.active {
    background-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.7);
}

.synapse {
    position: absolute;
    height: 2px;
    background-color: #bdc3c7;
    transform-origin: left center;
    z-index: 5;
    transition: background-color 0.3s, height 0.3s;
}

.synapse.active {
    background-color: #e74c3c;
    height: 3px;
}

.synapse.strong {
    background-color: #3498db;
    height: 4px;
}

.case-studies {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 4px 4px 0 0;
    color: #2c3e50;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

.case-scenario {
    background-color: #f5f7fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

.quote {
    font-style: italic;
    color: #34495e;
    margin: 0.5rem 0;
    display: block;
    padding-left: 1rem;
    border-left: 3px solid #3498db;
}

.reaction-toggle {
    display: flex;
    margin-bottom: 1rem;
}

.toggle-btn {
    background: none;
    border: 1px solid #3498db;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    color: #3498db;
}

.toggle-btn.active {
    background-color: #3498db;
    color: white;
}

.reaction-content {
    position: relative;
}

.reaction-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.reaction-pane.active {
    display: block;
}

.brain-impact {
    background-color: #f5f7fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.brain-impact.positive {
    border-left: 4px solid #2ecc71;
}

.brain-impact.negative {
    border-left: 4px solid #e74c3c;
}

.brain-diagram {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
}

.brain-label {
    font-size: 10px;
    fill: #7f8c8d;
}

.highlight {
    background-color: #fffacd;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.schema {
    font-weight: bold;
    color: #e74c3c;
}

.conclusion {
    font-weight: bold;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #ebf5fb;
    border-radius: 4px;
}

.stop-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stop-step {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.step-animation {
    height: 60px;
    width: 100%;
    margin-top: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

#stop-step1::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: #e74c3c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

#stop-step2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid #3498db;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 4s infinite;
}

#stop-step3::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 24px;
    transform: translate(-50%, -50%);
    animation: observe 3s infinite;
}

#stop-step4::after {
    content: "👉";
    position: absolute;
    top: 50%;
    left: 20%;
    font-size: 24px;
    transform: translate(-50%, -50%);
    animation: proceed 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

@keyframes observe {
    0% { transform: translate(-50%, -50%) rotate(0); }
    25% { transform: translate(-70%, -50%) rotate(-10deg); }
    50% { transform: translate(-50%, -70%) rotate(0); }
    75% { transform: translate(-30%, -50%) rotate(10deg); }
    100% { transform: translate(-50%, -50%) rotate(0); }
}

@keyframes proceed {
    0% { left: 20%; }
    50% { left: 80%; }
    100% { left: 20%; }
}

.agility-exercise ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .simulation-area {
        flex-direction: column;
    }
    
    #brain-container, #info-panel {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        margin-bottom: 0.5rem;
        border-radius: 4px;
    }
    
    .stop-steps {
        flex-direction: column;
    }
}