body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 250px; /* Default padding for large screens */
}
.container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}
h1, h2, h3 {
    color: #0d6efd;
}
.plot-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow-x: auto;
}
.plot-description {
    margin-bottom: 1rem;
}
.plot-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
iframe {
    width: 100%;
    height: 450px;
    border: none;
}
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
}
.logo {
    max-height: 50px;
    width: auto;
    margin-bottom: 10px;
    margin-right: 20px;
}

@media (max-width: 1200px) {
    body {
        padding-top: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }
    
    .plot-container {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    iframe {
        height: 350px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    body {
        padding-top: 300px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0.5rem;
    }
    
    .plot-container {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    iframe {
        height: 300px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .logo {
        max-height: 40px;
    }
    
    body {
        padding-top: 300px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    body {
        padding-top: 300px;
    }
    
    .container {
        padding: 0.25rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .logo {
        max-height: 35px;
    }
}

/* Add grid layout for plots */
.plots-grid {
    display: grid;
    grid-template-columns: 1fr; /* By default, single column */
    gap: 1.5rem;
}

/* Side-by-side plots on wider screens */
@media (min-width: 992px) {
    .plots-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on wider screens */
    }
    
    /* Adjust iframe height when side-by-side to maintain aspect ratio */
    .plots-grid iframe {
        height: 500px;
    }
}

/* For extra large screens, improve the plot visibility */
@media (min-width: 1600px) {
    .plots-grid iframe {
        height: 600px;
    }
}

html {
    scroll-behavior: smooth;
}

/* Add some padding to account for fixed navigation if needed */
html:target::before {
    content: "";
    display: block;
    height: 80px; /* Adjust based on your navigation height */
    margin-top: -80px;
}

.custom-margins {
    margin-left: 2rem;
    margin-right: 2rem;
}

