body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #f8f9fa;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
}

.nav-links a.active {
    font-weight: bold;
}

main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

#container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#graphsContainer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    position: relative;
}

.graph-wrapper {
    width: 48%;
    display: flex;
    flex-direction: column;
}

.graph-area {
    height: 400px;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
}

.details {
    margin-top: 1rem;
    text-align: left;
    max-height: calc(100vh - 500px);
    overflow-y: auto;
}

.problem-title {
    color: #007bff;
    text-decoration: none;
}

.problem-title:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

footer {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.social-buttons {
    margin-top: 0.5rem;
}

.social-buttons button {
    margin: 0 0.5rem;
}

/* Ensure content is visible when scrolling */
html {
    scroll-padding-top: 450px;
}