/* Header styles */
header {
    margin-right: 5%;
    margin-left: 5%;
}

/* Card container styles */
.card-container {
    display: flex;
    gap: 5%;
    justify-content: space-around;
    margin: 5%;
}

/* Individual card styles */
.card {
    flex: 1 1 0;
    width: 0px;
    text-align: center;
    border: 0.5px solid #c0c0c0; /* Thinner, slightly darker border */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); /* Subtle shadow for depth */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Add some padding */
    transition: box-shadow 0.3s ease, border-color 0.3s ease; /* Smooth transition for hover effect */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); /* Slightly stronger shadow on hover */
    border-color: #a0a0a0; /* Darker border on hover */
}

/* Card text alignment */
.card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Body overflow control */
body {
    overflow: "hidden";
}

/* Article border radius */
article {
    border-radius: 5%;
}

/* LLM form padding */
#llm-form {
    padding: 20px;
}

/* Button container styles */
.button-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Primary button styles */
.primary-button {
    display: inline-block;
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-inverse);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Primary button hover effects */
.primary-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card button margin */
.card a[role="button"] {
    margin-top: auto;
    align-self: stretch;
}

/* Full-width button in cards */
.card .primary-button.full-width {
    width: 100%;
    display: block;
}

/* Card primary button colors */
.card .primary-button {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-inverse);
}

/* Card primary button hover colors */
.card .primary-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Main heading styles */
.main-heading {
    text-align: left;
    color: var(--h1-color);
    font-size: 2.2rem;
    margin: 0 0 1rem;
    line-height: 1.3;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Main description styles */
.main-description {
    text-align: left;
    color: color-mix(in srgb, white 80%, var(--primary));
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Try now container positioning */
.try-now-container {
    margin-top: auto;  /* Pushes the button to the bottom of hero-content */
}

/* Hero section layout */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 5% 4rem 5%;
    padding-bottom: 2rem;
}

/* Hero content styles */
.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 2rem;
}

/* NASA logo styles */
.nasa-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    object-fit: contain;
}

/* Heading margin adjustments */
h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

/* Specific styles for the About page */
.container h1 {
    margin-bottom: 2rem;
}

.container h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Card container styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Individual card styles */
.card {
    flex: 1 1 300px;
    max-width: 100%;
}

/* Media query for responsiveness */
@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
    }

    .hero-content {
        text-align: left;
        margin-right: 2rem;
    }

    .nasa-logo {
        width: 35%;
        margin-left: 2rem;
    }
}

@media (max-width: 767px) {
    .card-container {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }
}

/* Responsive font sizes */
.main-heading {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.main-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

/* Responsive padding and margins */
body {
    padding: clamp(1rem, 3vw, 2rem);
}

.container {
    padding: clamp(1rem, 3vw, 2rem);
}
/* Theme toggle button styles */
#theme-toggle {
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--secondary);
    color: var(--contrast);
    border: 2px solid var(--contrast);
    transition: all 0.3s ease;
    outline: none;
}

#theme-toggle:hover, #theme-toggle:focus {
    background-color: var(--secondary-hover);
    border-color: var(--primary);
}

#theme-toggle:active {
    transform: translateY(1px);
}

#theme-toggle .material-icons {
    transition: opacity 0.3s ease;
}

#theme-toggle .material-icons:nth-child(1) {
    opacity: 0;
    position: absolute;
}

#theme-toggle .material-icons:nth-child(2) {
    opacity: 1;
}

[data-theme="dark"] #theme-toggle .material-icons:nth-child(1) {
    opacity: 1;
}

[data-theme="dark"] #theme-toggle .material-icons:nth-child(2) {
    opacity: 0;
}

#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0 10px;
}

#theme-toggle .material-icons {
    font-size: 24px;
    line-height: 1;
}

nav ul li {
    display: flex;
    align-items: center;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tooltip {
    position: absolute;
    text-align: left;
    padding: 10px;
    font: 14px sans-serif;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 0px;
    border-radius: 5px;
    pointer-events: none;
    max-width: 200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-container {
    margin-bottom: 40px;
}

.results-container {
    text-align: center;
}

.analysis-container {
    margin-bottom: 30px;
}

.graph-container {
    margin-bottom: 30px;
    width: 100%;
    height: 500px; /* Set a fixed height or use a responsive approach */
}

#d3-container {
    width: 100%;
    height: 100%;
}

#respond-button,
#chat-container {
    margin-top: 20px;
}

.content-width-limit {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

