/* Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  overflow: hidden; /* Disable global scrollbar */
}

footer {
  align-self: center;
}

footer p{
  display: block;
  text-align: center;
  margin: 0;
  margin-top: 2em;
  padding: 0;
}

.container {
  border: 2px solid #fff; /* Bright border */
  border-radius: 20px; /* Rounded corners */
  margin: 20px;
  max-height: calc(100vh - 40px); /* Account for margins */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent content from spilling out */
}

.content-wrapper {
  overflow-y: auto; /* Enable scrolling inside the box */
  flex: 1; /* Take up remaining space below navbar */
  padding: 20px;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 2px solid #fff;
  position: sticky;
  top: 0;
  background-color: #121212; /* Match background to avoid flickering */
  z-index: 1000; /* Ensure it stays on top */
}

.navbar .brand {
  font-size: 1.5em;
  flex: 1;
}

.navbar .links {
  display: flex;
  gap: 20px;
  flex: 2;
  justify-content: center;
}

.navbar .right-links {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex: 1;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 5px 10px;
  position: relative;
  z-index: 1; /* Ensure text appears above the highlight */
  transition: color 0.3s ease; /* Smooth transition for color */
}

.navbar .brand a {
  font-weight: bold;
}

.navbar .right-links a {
  font-weight: bold;
  font-size: large;
}

.navbar a.active {
  color: #000; /* Black text for active link */
}

/* Highlight animation */
.navbar .highlight {
  position: absolute;
  background-color: #fff;
  height: 100%;
  border-radius: 5px;
  z-index: 0; /* Place behind the text */
  transition: all 0.3s ease; /* Smooth animation */
}

.navbar .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  margin-left: 10px;
}

.navbar .hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

@media (max-width: 1000px) {
  #sname {
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 0px;
    border-radius: 0px;
    max-height: 100vh;
    border: none;
  }
  
  .navbar .links {
    display: none; /* Hide links by default on small screens */
    flex-direction: column;
    background-color: #121212;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border: 2px solid #fff;
    border-radius: 10px;
    gap: 10px;
  }

  .navbar .hamburger {
    display: flex; /* Show the hamburger menu on small screens */
  }

  .navbar .links.visible {
    display: flex; /* Show links when the menu is toggled */
    margin-top: 10px;
  }

  .navbar .links a.active {
    background-color: #fff; /* Add white background to active link */
    color: #000; /* Black text */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
  }
}

/* Chrome, Safari, Edge */
.scroll-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.scroll-thin::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.scroll-thin::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox */
.scroll-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}