/* 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 */
    scrollbar-gutter: stable;
}

body {
    overflow-y: scroll; /* Allows vertical scrolling */
}

h1 {
    font-size: 20px;
    margin: 0;
    margin-bottom: 5px;
    color: #16e0bd;
    -webkit-user-select: none; /* Safari */
    user-select: none;
    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;
}

.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    overflow-y: auto; /* Ensure main container scrolls if necessary */
}

/* Top Container */
.top-container {
    flex: 0 0 auto; /* Adjust the height as needed */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    padding-top: 10px;
    position: relative;
    height: 50vh; /* Keep the height */
    min-height: 400px; /* Ensure minimum height */
    z-index: 1; /* Ensure content is on top */
    border-bottom: 1px solid #2e2e2e;
    overflow: hidden; /* Hide any overflow from the background */
}

/* Add a pseudo-element for the background to handle ultrawide better */
.top-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/Website-Content/background.png') no-repeat center center;
    background-size: cover;
    transform: scale(1.2); /* Zoom in by 20% */
    z-index: -1;
    opacity: 0.5; /* 50% opacity */
}

/* Add a dark overlay */
.top-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Make sure particles are behind the content */
}

/* Profile Picture Styling */
.profile-picture {
    width: 150px; /* Set a width for the profile picture */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Make it circular */
    position: absolute; /* Absolute positioning for consistency */
    top: 10%; /* Set the top position relative to the container */
    transform: translateY(-50%); /* Center vertically */
    z-index: 2; /* Ensure the profile picture is above particles and text */
}

/* User Info Panel */
.user-info-panel {
    text-align: center; /* Center the text */
    z-index: 2; /* Ensure the user info panel is above particles */
}

/* Profile Text Styling */
.profile-text {
    z-index: 1; /* Ensure text is below the profile picture but still visible */
    color: #d7d7d7; /* Ensure text is visible */
    margin-top: 10px; /* Space between picture and text */
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-bottom: 0;
}

.nav-button {
    background-color: inherit;
    border: none;
    color: grey;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
    border-radius: 0.9em 0.9em 0 0;
    transition: ease 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5em;
    height: 50px;
}

.nav-button.active,
.nav-button:hover {
    background-color: #171717;
    color: #16e0bd;
}

.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: #16e0bd;
    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;
}

.resize-buttons {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
}

.resize-button {
    background-color: #171717;
    border: none;
    color: #d7d7d7;
    font-size: 20px;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.resize-button:hover {
    background-color: #16e0bd;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    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 {
        height: 60vh; /* Increase height for mobile */
        padding-top: 10px; /* Add padding to the top for better alignment */
        padding-bottom: 50px; /* Add padding to the top for better alignment */
    }

    .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 buttons on mobile */
    }
}
