/* general.css */

@font-face {
    font-family: Starbound Font;
    src: url(/Resources/Fonts/starbound-font.ttf);
}

/* Disable text selection */
* {
  user-select: none;
}

/* Disable image selection */
img {
  user-select: none;
}

body {
    font-family: Starbound Font;
    background-color: #111;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Slick, modern scrollbar style, with overlay behavior */
::-webkit-scrollbar {
  width: 8px; /* Thin scrollbar */
  background-color: transparent; /* Transparent track */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent dark thumb */
  border-radius: 4px; /* Rounded corners */
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5); /* Slightly darker on hover */
}

::-webkit-scrollbar-track {
  background-color: transparent; /* Transparent track */
}

/* Firefox alternative (less customization) */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgb(255, 255, 255, 0.075) transparent; /* thumb track */
}

/* Optional: smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Example usage within a div, with overlay behavior */
.scrollable-div {
  overflow-y: overlay; /* overlay scrollbar */
  max-height: 300px; /* Set a maximum height */
}

/* Example usage applied to body, with overlay behavior */
body {
  overflow-y: overlay;
}

/* Optional: if you still need padding in some cases, you can use it like this */
.padded-scrollable-div {
  overflow-y: auto;
  max-height: 300px;
  padding-right: 10px;
}

/* Navbar Styles */
.navbar {
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  background-color: rgba(60, 60, 60, 0.6);
  box-shadow: 1px 1px 6px 0px rgba(128, 128, 128, 0.165);    
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.navbar-logo {
  font-size: 24px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar-links li {
  margin: 0;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.navbar-links a:hover {
  border-bottom: 2px solid #e4c464;
}

/* Page title when done */
#page-title.completed {

}

/* Navbar link when done */
.navbar-links a.completed {
  color: #e4c464;
  text-shadow: 0 0 8px #e4c464;
}

/* Responsive Styles */
@media (max-width: 768px) {

  .navbar {
    z-index: 0;
    }

  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-logo {
    margin-bottom: 10px;
  }

  .burger {
    display: flex;
  }
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger .line {
  width: 25px;
  height: 1px;
  background-color: white;
  border-radius: 5px;
}

/* disable color-transition on nav links during initial load */
.no-nav-transition .navbar-links a {
  transition: none !important;
}

/* Privacy Policy link, fixed in the bottom-right corner */
.privacy-policy {
  position: fixed;
  bottom: 12px;
  right: 12px;
  font-size: 14px;
  color: #aaa;
  text-decoration: none;
  background-color: transparent;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  z-index: 1001; /* above navbar if sticky */
}

.privacy-policy:hover {
  color: #fff;
}

.welcomeText {
  margin-top: 150px;
}