:root {
    --font-primary: 'Montserrat', 'Arial', sans-serif;
    --font-secondary: 'Poppins', 'Helvetica', sans-serif;
    --bg-dark: #121212;
    --bg-medium: #151515;
    --bg-light: #171717;
    --text-light: #d7d7d7;
    --text-muted: grey;
    --accent: #edb049;
    --border: #2e2e2e;
    --spacing-sm: 5px;
    --spacing-md: 10px;
}

/* Match articles.css height setup */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%; /* Minimum context */
    box-sizing: border-box;
    overflow-x: hidden; /* Added to match */
}

html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
}

body {
    font-family: Montserrat, sans-serif;
    background-color: #121212;
    color: #d7d7d7;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Changed from height: 100vh to match articles.css */
    overflow-y: auto; /* Match articles.css */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE and Edge */
html {
    -ms-overflow-style: none;  /* IE and Edge */
}

body {
    overflow-y: scroll; /* Allows vertical scrolling */
}

h1 {
    font-size: 20px;
    margin: 0;
    margin-bottom: 5px;
    color: white;
    -webkit-user-select: none; /* Safari */
    user-select: none;
    font-weight: 400;
    text-align: left; /* Ensure all h1 elements are aligned to the left */
}

h2 {
    font-size: 16px;
    margin: 0;
    color: grey;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    -webkit-user-select: none; /* Safari */
    user-select: none;
}


.top-container {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    padding-top: var(--spacing-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
    transition: padding-top 0.3s ease;
}

.top-container.shrink {
    padding-top: var(--spacing-sm);
}

hr {
    opacity: .05;
}

.bottom-container {
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #151515;
    width: 100%;
    gap: 10px;
    border-radius: 5px;
}

.horizontal-container {
    width: 65%; /* Adjust the width as needed */
    margin: auto;
}

.panel-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #d7d7d7;
    text-align: left; /* Align panel titles to the left */
}

p {
    font-size: 16px;
    line-height: 1.4;
    color: grey;
}

.summary-panel p {
    text-align: justify;
}



@media (max-width: 600px) {
    body {
        font-size: 14px; /* Adjust the base font size for better readability on small screens */
    }

    h1 {
        font-size: 18px; /* Smaller font size for headings on mobile */
        text-align: center; /* Center align headings for better presentation on mobile */
    }

    h2 {
        font-size: 14px; /* Smaller font size for subheadings on mobile */
        text-align: center; /* Center align subheadings for better presentation on mobile */
    }

    .top-container {
        padding-top: 10px;
        border-bottom: 1px solid #2e2e2e;
    }

    .bottom-container {
        padding: 10px; /* Reduce padding for better fit on mobile */
        gap: 5px; /* Reduce gap for better fit on mobile */
    }

    .horizontal-container {
        width: 90%; /* Increase width to better fit mobile screens */
        margin: 0 5%; /* Center the container */
    }

    .panel-title {
        font-size: 20px; /* Adjust font size for panel titles on mobile */
        text-align: center; /* Center align panel titles for better presentation on mobile */
    }

    p {
        font-size: 14px; /* Adjust font size for paragraphs on mobile */
        line-height: 1.6; /* Increase line height for better readability on mobile */
    }

    .navigation-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-button {
        font-size: 12px;
        padding: 8px;
        margin-right: 0;
        border-radius: 0.5em 0.5em 0 0;
        width: 100%;
        text-align: center;
    }
}
