
/* 
  Styling for the navigation bar (nav element).
  Positions and styles the navigation items in a horizontal layout.
*/

/* Container for navigation */
header{
  width: 100%; /* Ensures the header itself spans the full width */
  margin: 0;
  padding: 0;
}
.top-nav {
  display: flex;                  /* Use Flexbox for layout */
  align-items: center;            /* Align items vertically centered */
  justify-content: space-between; /* Space out the elements horizontally */
  padding: 0 20px;                /* Add some padding for spacing */
  background-color: #333;         /* Background color for the nav */
  width: 100%;
}
.nav-logo{
    margin: 1rem 0;
     width: 30rem;
     cursor: pointer;
}


/* Style for the logo button */
.logo-button {
  display: flex;                  /* Flexbox for the logo to align properly */
  align-items: center;         
  /* Align vertically centered */
}

/* Style for the unordered list */
#top-nav-links {
  display: flex;                  /* Flexbox for the list items to align horizontally */
  list-style: none;               /* Remove default list styling */
  padding: 0;                     /* Remove padding */
  margin: 0;                      /* Remove margin */
}


#top-nav-links li {
   margin-right: 8rem;  /*  Add some spacing between the list items */
       
}

/* 
  Styling for each button in the navigation bar.
  Customizes the appearance of navigation buttons.
*/
nav ul li a {
     
  background-color: transparent; /* Makes button background transparent */
  color: #FDD051; /* Sets text color to match the theme color */
  border: none; /* Removes default button borders */
  font-size: 2.5rem; /* Sets font size for button text */
  text-decoration: none;
  cursor: pointer; /* Changes cursor to pointer on hover */
}

/* 
  Hover effect for navigation buttons.
  Changes text color on hover to enhance user interaction feedback.
*/
nav ul li a:hover {
  color: #FFF; /* Changes text color to white when hovered over */
}

/* menu button to open on small screens */
.menu-btn{
    /* hide if on larg screens */
    display: none;
    cursor: pointer;
    font-size: 5rem;
    color: #FDD051;
    
    z-index: 500;
    padding-right: 2rem;

}
/* Styling for the side navigation pane */
/* Styling for the side navigation pane */
.side-nav {
  height: 100%; /* Full height to cover the screen */
  width: 0; /* Initially hidden (width 0) */
  position: fixed; /* Fixed positioning to stay in place */
  top: 0; /* Start from the top of the page */
  right: 0; /* Aligns to the right edge */
  background-color: #333; /* Dark background color */
  overflow-x: hidden; /* Prevents horizontal scrolling within the pane */
  transition: 0.5s; /* Smooth transition effect for opening and closing */
  display: flex; /* Flexbox layout to center content */
  /* justify-content: center; Centers content horizontally */
  align-items: center; /* Centers content vertically */
  flex-direction: column; /* Stack children elements vertically */
  z-index: 1000;
  padding-top: 10px; /* Adds padding at the top */
}

/* Styling for links inside the side navigation pane */
.side-nav a {
  padding: 10px 15px; /* Padding around each link for spacing */
  text-decoration: none; /* Removes underline from links */
  font-size: 18px; /* Sets font size for readability */
  color: #FDD051; /* Text color to match theme */
  display: block; /* Displays links as block elements */
  transition: 0.3s; /* Smooth transition effect for hover */
  text-align: center; /* Centers text within the block */
  margin: 10px 0; /* Adds vertical margin for spacing between links */
}


/* Hover effect for side navigation links */
.side-nav a:hover {
  color: #fff; /* Changes text color to white on hover */
}

/* Styling for the close button of the side navigation pane */
.side-nav .closebtn {
  position: absolute; /* Absolute positioning */
  top: -20px; /* Anchors to the top */
  right: 12px; /* Spacing from the right */
  font-size: 36px; /* Larger font size */
  margin-left: 50px; /* Margin from the left */
}


@media screen and (max-width: 1080px) {
  /*  Set the font size */
nav ul li a {
 font-size: 2rem;
}
}
/* Media query for smaller screens */

@media screen and (max-width: 600px) {
  /*  Set the font size */
nav ul li a {
 font-size: 2rem;
}
    .top-nav{
          display: flex; /* Uses Flexbox to align the navigation items horizontally */
    }
    /* hide the top links on small screens the show the hamburger for the side nav links */
    #top-nav-links{
        
      display: none;
    }
    /* menu button to open on small screens */
.menu-btn{
    /* hide if on larg screens */
    display: inline-block;
   margin-left:  90px;
}
  .side-nav {padding-top: 15px;} /* Adjusts padding for smaller heights */
  .side-nav a {font-size: 18px;} /* Reduces font size */
}

@media screen and (max-width: 1000px) {
#top-nav-links li {
   margin-right: 3rem;  /*  Add some spacing between the list items */
       
}
}

@media screen and (max-width: 800px) {
    /* adjust nav bar */
 .nav-logo{
    width: 20rem;
 }
 /* nav links */


#top-nav-links button {

  font-size: large;          
}
}

/* Styles for showing side nav */
.side-nav.show {
  width: 250px; /* Width when open */
}