/* General styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #131a43; /* Dark solid background color */
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #131a43; /* Dark solid background color */
    font-family: Arial, sans-serif;
    text-align: center;
    color: white; /* Ensure text is visible on dark background */
}

header {
    width: 100%;
    padding: 1rem;
    position: relative;
    z-index: 1;
    background-color: #13132d; /* Match header background color */
}


header nav {
    text-align: center; /* Center the nav items */
}

header nav ul {
    display: inline-block; /* Change the ul to be inline-block to center within the nav */
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline; /* Ensure the li elements are inline */
    margin: 0 10px;
}


/* Style for the menu links */
nav ul li a {
    text-decoration: none; /* Remove default underline */
    color: #ffffff; /* White color for the text */
    font-weight: normal; /* Normal font weight by default */
}

/* Style for the active menu link */
nav ul li a.active { /* To handle active link when clicked */
    font-weight: bold; /* Bold font weight for the active link */
}

/* Style for the hovered menu link */
nav ul li a:hover {
    text-decoration: underline; /* Underline when hovered */
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    height: calc(100vh - 100px); /* Adjust according to your header/footer height */
    overflow-y: auto; /* Enable vertical scrolling */
}

footer {
    flex:1;
    width: 100%;
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    z-index: 1;
    text-align: center;
}

#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center; /* Ensure text is centered */
}

#github-readme {
    text-align: left;
    margin: 2rem auto;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
    overflow: auto;
    transition: height 0.3s ease; /* Smooth transition for height changes */
    height: auto; /* Allow height to adjust based on content */
    min-height: 100px; /* Ensure a minimum height */
    margin-bottom: 10px;
}

#toggle-readme {
    display: block;
    margin: 10px 0;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#toggle-readme:hover {
    background-color: #0056b3;
}

#social-buttons {
    display: flex;
    justify-content: center;
    align-items: center; /* Center items vertically */
    gap: 20px; /* Space between the buttons */
    margin-top: 20px; /* Adjust the spacing if needed */
}

#social-buttons a img {
    width: 72px;  /* Ensure consistent size */
    height: 72px;
}

footer {
    flex:1;
    width: 100%;
    color: white;
    padding: 1rem;
    z-index: 1;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer ul {
    list-style-type: none;
    padding: 0;
}

footer ul li {
    margin: 0.5rem 0;
}

footer ul li a {
    color: #007bff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}


/* Responsive styles */
@media (max-width: 768px) {
    header nav ul {
        display: flex;
        flex-direction: column;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }

    footer {
        font-size: 0.8rem;
    }
}
