/* Basic reset for margin and padding */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: Montserrat, sans-serif;
    background-color: #121212;
    color: #d7d7d7;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    overflow: auto; /* Enable scrolling for the whole body */
}

/* 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; /* Adjust the height as needed */
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    padding-top: 10px;
    border-bottom: 1px solid #2e2e2e;
}

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;
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Ensure buttons are centered */
    padding-bottom: 0; /* No padding at the bottom */
}

.nav-button {
    background-color: inherit;
    border: none;
    color: grey;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px;
    font-size: 14px;
    border-radius: .9em .9em 0 0;
    transition: ease 0.5s;
}

.nav-button.active, .nav-button:hover {
    background-color: #171717;
    color: #13aff0;
}

@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: row; /* Stack navigation buttons vertically on mobile */
        gap: 0.5rem; /* Adjust gap for better spacing on mobile */
    }

    .nav-button {
        font-size: 12px; /* Adjust font size for navigation buttons on mobile */
        padding: 8px; /* Reduce padding for better fit on mobile */
        margin-right: 0; /* Remove margin for better fit on mobile */
        border-radius: .5em .5em 0 0; /* Adjust border radius for better look on mobile */
    }
}
