/* --- Mathcad Simulation Styles --- */

body {
    font-family: 'Segoe UI', 'Calibri', 'Helvetica Neue', Arial, sans-serif;
    background-color: #e8e8e8; /* Light grey background */
    color: #222; /* Dark text */
    margin: 0;
    padding: 30px;
    line-height: 1.6;
}

.mathcad-container {
    max-width: 850px;
    margin: 0 auto;
    background-color: #ffffff; /* White paper background */
    padding: 40px 50px;
    border: 1px solid #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #003366; /* Dark blue heading */
    border-bottom: 2px solid #003366;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 10px;
}

.author-info {
    font-size: 12px;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

h2 {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

p {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: justify;
}

/* MathJax display math style */
.MathJax_Display {
    margin: 20px 0 !important;
    overflow-x: auto; /* Allow scrolling for wide equations */
    overflow-y: hidden;
    padding: 10px 0;
}

mj-container[display="true"] {
    margin: 20px 0 !important;
    padding: 10px 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Parameter List */
.parameters {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.parameters li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 13px;
}

.results-table th,
.results-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}

.results-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.results-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.results-table td:nth-child(2) { /* Align numbers */
    text-align: right;
}

/* --- Simulation Styles --- */
.mathcad-highlight {
    background-color: rgba(255, 255, 150, 0.3); /* Light yellow highlight */
    outline: 1px dotted #dd0;
    transition: background-color 0.15s ease-out, outline 0.15s ease-out;
}

/* --- Media Queries --- */

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .mathcad-container {
        padding: 20px 25px;
    }
    h1 { font-size: 20px; }
    h2 { font-size: 16px; }
    p, .parameters li, .results-table {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .mathcad-container {
        padding: 15px 15px;
    }
     h1 { font-size: 18px; }
     h2 { font-size: 15px; }
     p, .parameters li, .results-table {
         font-size: 12px;
     }
     /* Ensure MathJax blocks can scroll */
    .MathJax_Display, mj-container[display="true"] {
        font-size: 90%; /* Make equations slightly smaller */
    }
}

#ezPrivacyCenter {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    background-color: #5fa624 !important;
    color: white !important;
    border-radius: 5px !important;
    z-index: 2147483647 !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
} 