/* Scientific Method Workflow Diagram Styles */

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: 'aliceblue';
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

button:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.diagram-container {
    background: aliceblue;
}

.mermaid {
    display: flex;
    justify-content: center;
    min-height: 500px;
}

/* Ensure Mermaid diagram elements use proper font size */
.mermaid .node text,
.mermaid .edgeLabel {
    font-size: 16px !important;
}

.step-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.step-details h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.step-details ol {
    margin-left: 20px;
}

.step-details li {
    margin-bottom: 12px;
    font-size: 1.05em;
    line-height: 1.6;
}

.step-details strong {
    color: #667eea;
}

.color-legend {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
    margin-bottom: 20px;
}

.color-legend h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.color-legend ul {
    list-style: none;
}

.color-legend li {
    margin-bottom: 10px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

.color-box {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 4px;
    border: 2px solid #333;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e1e8ed;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0px;
    }

    .container {
        padding: 0px;
    }

    .controls {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .diagram-container {
        padding: 0px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .controls {
        display: none;
    }

    .container {
        box-shadow: none;
    }
}
