body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: gold;
    overflow-y: auto; /* Enable scrollbar */
}
h1{
    text-align: center;
}
h2{
    text-align: center;
}
p1 {
    font-size: 1.5em;
    margin-bottom: 2vh;


}
#background-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center; /* Center content vertically */
    min-height: 100vh; /* Ensure full height */
    padding: 4vh;
    position: relative; /* Position content relative to the starry background */
    z-index: 1; /* Ensure content is above the canvas */
}
img{
    max-height:60%;
    max-width:90%;
    margin:1vh;
}
h1 {
    color: gold;
    font-size: 3em;
    text-align: center;
    margin-bottom:4vh;
}

.nav-bar {
    display: flex;
    justify-content: center;
    gap: 3vh; /* Space between nav buttons */
    margin-bottom: 2vh; /* Add spacing below the nav bar */
    padding: 1vh;
    /* border: 2px solid gold; */
    height:100%;
    width:100%;
    box-sizing: border-box;
    flex-wrap:wrap;

}

.nav-btn {
    background-color: transparent;
    color: gold;
    /* border: 2px solid gold; */
    border-radius: 1vh;
    padding: 2vh 4vh;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1vh;
    flex-wrap:wrap;
}

.nav-btn:hover {
    background-color: gold;
    color: black;
    transform: translateY(-1vh);
    box-shadow: 0 1vh 3vh rgba(255, 215, 0, 0.5);
}

.button-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Two columns for buttons */
    gap: 4vh; /* Space between buttons */
    justify-items: center; /* Center each button horizontally */
    justify-content: center; /* Center the grid itself horizontally */
    width: 100%;
    max-width: 100%; /* Set maximum width for the grid */
    margin-bottom: 5vh; /* Add spacing below the nav bar */

}

.link-button {
    display: block;
    max-width: 30vh; /* Reduced width by 20% */
    height:100%;
    max-height:30vh; /*400px; /* Reduced height by 20% */
    background-color: #111;
    border: 2px solid gold;
    border-radius: 2vh;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: 2vh;
    align-self:center;
    color:gold;
    font-size:2vh;
    
    /* scroll; 
    /*hidden; */
    /* Hide any overflow from images */
}

.link-button img {
    width: 60%; /* Scale image to the full width of the button */
    height: 60%; /* Make image take up 75% of the button height */
    object-fit: cover; /* Ensures image covers the available area while maintaining aspect ratio */
}

.link-button p {
    color: gold;
    padding: 2vh;
    font-size: 1em;
    height: 5%; /* Ensure the description fills the remaining 25% of the button */
    margin: 0; /* Remove margin for consistent padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-button:hover {
    transform: translateY(-1vh); /* Hover effect */
    box-shadow: 0 1vh 3vh rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .button-container {
        grid-template-columns: 1fr; /* Stack buttons vertically on smaller screens */
    }

    .link-button {
        width: 30vh; /* Reduced width for mobile screens */
        height: 25vh; /* Reduced height for mobile screens */
    }
}

#starry-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
}