/* static/styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
}

.container {
    max-width: 100%;
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #444444;
    border-radius: 10px;
    background-color: #2d2d2d;
    height: auto;
}

.header {
    text-align: center;
    margin-bottom: 10px;
}

.header h1, .header h2 {
    color: #e0e0e0;
    margin: 5px 0;
}

.header h2 {
    font-size: 1.2em;
    color: #a0a0a0;
}

.explanation {
    text-align: center;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e0e0e0;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background-color: #3d3d3d;
    color: #e0e0e0;
    border: 1px solid #555555;
    border-radius: 4px;
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background-color: #4a86e8;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3a76d8;
}

.result {
    text-align: center;
    margin-top: 20px;
    font-size: 1.5em;
}

nav {
    background-color: #1a1a1a;
    padding: 10px 20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #4a86e8;
}

.plot-container,
.chart-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 5px auto;
    padding: 10px 0;
    height: 500px;
    background-color: #2d2d2d;
}

.plot,
.plotly-graph-div {
    width: 100% !important;
    height: 500px !important;
    margin: 0 auto !important;
    display: block !important;
}

.sliders {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.slider-group {
    text-align: center;
    width: 18%;
}

.analysis-section {
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.analysis-section h2 {
    color: #4a86e8;
    border-bottom: 2px solid #4a86e8;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.analysis-detail {
    background-color: #3d3d3d;
    border-left: 4px solid #4a86e8;
    padding: 10px;
    margin-bottom: 10px;
}

pre {
    background-color: #3d3d3d;
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e0e0e0;
}

.result-highlight {
    font-weight: bold;
    color: #4a86e8;
}

#sensitivity-chart {
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 10px;
    background-color: #2d2d2d;
}

@media (max-width: 768px) {
    .plot-container,
    .chart-container {
        height: 400px;
    }
}

/* Preserving unique styling from the original CSS */
.form-group button {
    width: 100%;
    padding: 10px;
    background-color: #4a86e8;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-group button:hover {
    background-color: #3a76d8;
}

footer p {
    font-size: 0.9em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}


/* Add this at the top of your CSS file */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
}

.container {
    max-width: 100%;
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #444444;
    border-radius: 10px;
    background-color: #2d2d2d;
    height: auto;
}

/* ... (keep other styles as they are) ... */

.plot-container,
.chart-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 5px auto;
    padding: 10px 0;
    height: auto; /* Change from fixed height */
    min-height: 300px; /* Add minimum height */
    background-color: #2d2d2d;
}

.plot,
.plotly-graph-div {
    width: 100% !important;
    height: 100% !important; /* Change from fixed height */
    min-height: 300px; /* Add minimum height */
    margin: 0 auto !important;
    display: block !important;
}

/* Add these media queries at the end of your CSS file */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .header h2 {
        font-size: 1em;
    }

    .plot-container,
    .chart-container {
        height: auto;
        min-height: 250px;
    }

    .plot,
    .plotly-graph-div {
        height: 250px !important;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .sliders {
        flex-direction: column;
    }

    .slider-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group button {
        font-size: 16px; /* Increase font size for better touch targets */
    }
}

@media (max-width: 480px) {
    .plot-container,
    .chart-container,
    .plot,
    .plotly-graph-div {
        min-height: 200px;
    }

    .plot,
    .plotly-graph-div {
        height: 200px !important;
    }
}

body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.plot { 
    width: 100%; 
    height: 500px; 
    margin-bottom: 20px; 
}
.explanatory-text { 
    font-style: italic; 
    color: #666; 
    margin-top: -15px; 
    margin-bottom: 30px; 
}
/* ... (keep other styles as they are) ... */

/* Footer and disclaimer styles */
footer, .top-disclaimer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    margin-top: auto;
}

.top-disclaimer {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 20px;
}

.top-disclaimer a, footer a {
    color: #00FFFF;
    text-decoration: underline;
}

/* Logo and title styles */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-title {
    margin: 0;
}

nav {
    width: 100%;
    background-color: #333;
    padding: 10px 20px;
    margin-bottom: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* ... (keep other styles as they are) ... */