@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
:root {
  --color-1: #0f1016;
  --text-color: #f0f0f0;
  --accent-color: #006aff;
  --hover-bg-color: #0C0C11; 
  --hover-text-color: rgb(248, 248, 248);
}
*{
  margin: 0;
  padding: 0;
  font-family: 'Oswald';
}


html{
  font-family: Poppins, Segoe UI, Tahoma, sans-serif;
}

nav{
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--color-1);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 9999; /* Increased z-index to a very high value */
  position: fixed; /* Ensure z-index works */
}

.links-container{
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  
}
nav a{
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}
nav a:hover{
  background-color: var(--accent-color);
  text-decoration: none;
}
nav .home-link{
  margin-right: auto;
}

nav svg{
  fill: var(--text-color);
}
#sidebar-active{
  display: none;
}
.open-sidebar-button, .close-sidebar-button{
  display: none;
}

nav a:hover {
  background-color: var(--hover-bg-color); 
  color: var(--hover-text-color);
  text-decoration: none;
}

#authLink {
  width: 100px;
  padding-left:1.5%;
}

.modal {
  z-index: 2; 
}

.modal-backdrop {
  z-index: 1; 
}

a :hover {
 text-decoration: none;
}
@media(max-width: 450px) {
  nav {
    justify-content: flex-start; /* Align items to the left */
  }

  .links-container {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -300px; /* Menu slides in from the left */
    z-index: 10000; /* Increased z-index to be higher than the navbar */
    width: 300px;
    background-color: var(--color-1);
    box-shadow: 5px 0 5px rgba(0, 0, 0, 0.25);
    transition: 0.75s ease-out;
  }

  nav a {
    box-sizing: border-box;
    height: auto;
    width: 100%;
    padding: 20px 30px;
    justify-content: flex-start;
  }

  .open-sidebar-button,
  .close-sidebar-button {
    padding: 20px;
    display: block;
  }

  #sidebar-active:checked ~ .links-container {
    left: 0; /* Menu slides in from the left */
  }

  #sidebar-active:checked ~ #overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
  }

  #authLink {
    width: auto;
    margin-left: 8%; 
    text-align: left;
    color: var(--text-color);         
  }

  nav a:hover {
    background-color: #0f1016;
    text-decoration: none;
  }

  /* Keep the close button on the left side of the sidebar */
  .close-sidebar-button {
    align-self: flex-start;
  }

  /* Ensure #authLink inherits font styles and position it correctly */
  .pc-builder #authLink,
  body.pc-builder #authLink {
    margin-left: -190px; /* Position it 140px to the left */
    padding-left: 30px; /* Align with other links */
  }
}


/* Add these styles to your navbar.css file */
.navbar {
  position: relative;
  z-index: 1000; /* This ensures the navbar is on top of other elements */
}



