:root {
  --primary-dark: #0F0F1E;
  --primary-light: #6366F1;
  --accent-purple: #8B5CF6;
  --accent-blue: #3B82F6;
  --gradient-1: linear-gradient(135deg, #6366F1, #8B5CF6);
  --gradient-2: linear-gradient(45deg, #3B82F6, #8B5CF6);
}

@font-face {
  font-family: 'DB Gin Siam X';
  src: url('../fonts/DBGinSiamX.woff2') format('woff2'),
       url('../fonts/DBGinSiamX.woff') format('woff'),
       url('../fonts/DBGinSiamX.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* Apply font to all elements on the page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DB Gin Siam X', sans-serif !important; /* Ensure font is applied as per your previous request */
}

/* Ensure headings, paragraphs, and other common elements inherit the font */
h1, h2, h3, h4, h5, h6, p, span, button, a {
  font-family: 'DB Gin Siam X', sans-serif !important;
}

.menu-container {
  background-color: var(--primary-dark) !important;
  padding: 5px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.user-profile {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 15px 0 !important; /* Add slight padding for consistency */
  cursor: pointer; /* เปลี่ยนเมาส์เป็นมือชี้เมื่อชี้ที่ user-profile */
  width: 200px !important;
}
.user-profile img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.user-info {
  /* display: flex !important; */
  flex-direction: column !important;
}

.username {
  font-size: 14px !important;
  font-weight: bold !important;
}

.credits {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
.message {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
.user {
  font-size: 12px !important;
}
/* From Uiverse.io by bandirevanth */ 
.custom-btn {
  /* width: 130px; */
  height: 40px;
  color: #fff;
  border-radius: 5px;
  padding: 10px 25px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),
    7px 7px 20px 0px rgba(0,0,0,.1),
    4px 4px 5px 0px rgba(0,0,0,.1);
  outline: none;
 }
 
 .btn-1 {
  background: rgb(96,9,240);
  background: linear-gradient(0deg, rgba(96,9,240,1) 0%, rgba(129,5,240,1) 100%);
  border: none;
 }
 
 .btn-1:before {
  height: 0%;
  width: 2px;
 }
 
 .btn-1:hover {
  box-shadow: 4px 4px 6px 0 rgba(255,255,255,.5),
               -4px -4px 6px 0 rgba(116, 125, 136, .5), 
     inset -4px -4px 6px 0 rgba(255,255,255,.2),
     inset 4px 4px 6px 0 rgba(0, 0, 0, .4);
 }

.sidebar.active {
  right: 0; /* แสดง sidebar เมื่อมี class "active" */
}

.sidebar-content {
  padding: 20px;
  color: var(--text-white);
}

#sidebar-username {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

#sidebar-credits {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin: 10px 0;
}

.sidebar-menu a {
  text-decoration: none;
  color: var(--text-white);
  font-size: 16px;
  display: block;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.sidebar-menu a:hover {
  background-color: var(--primary-light);
} 

/* Logo */
.logo img {
  width: 60px;
  height: auto;
}

/* Navigation menu */
.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #ffffff; /* Light purple for text */
  font-size: 16px;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}

/* Animated underline effect */
.nav-menu a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-purple); /* Bright purple for underline */
  transform: scaleX(0); /* Start hidden */
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-menu a:hover::after {
  transform: scaleX(1); /* Expand to full width on hover */
  transform-origin: bottom left; /* Slide from left to right */
}

.nav-menu a:hover {
  color: #ffffff; /* Bright purple on hover for text */
}

/* User profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.username {
  font-size: 16px;
  color: #d1c4e9;
}

.user-stats {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #b39ddb;
}

.user-stats i {
  margin-right: 5px;
}

#login-btn {
  background-color: #6a1b9a; /* Medium purple button */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

#login-btn:hover {
  background-color: #4a0072; /* Darker purple on hover */
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0px;
  right: -300px; /* Start off-screen */
  width: 300px;
  height: 100vh;
  background-color: #301e3fc9; /* Dark purple sidebar background */
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.sidebar.active {
  right: 0; /* Slide in when active */
}

.sidebar-content {
  padding: 20px;
  color: #d1c4e9;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.sidebar-header h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.sidebar-header p {
  font-size: 14px;
  color: #b39ddb;
}
.hero-section {
  width: 100%;
  height: 100vh; /* หรือความสูงที่คุณต้องการ */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 5%;
}
.custom-btn.btn-1 {
  background-color: #6a1b9a; /* Medium purple button */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  margin: 5px 0;
}

.custom-btn.btn-1:hover {
  background-color: #4a0072; /* Darker purple on hover */
}

.sidebar-menu-container {
  margin-top: 20px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  text-decoration: none;
  color: #d1c4e9;
  font-size: 16px;
  display: block;
  padding: 10px;
  transition: color 0.3s ease;
}

.sidebar-menu a:hover {
  color: #ba68c8; /* Bright purple on hover */
}

/* Responsive design */
@media (max-width: 768px) {
  .menu-container {
      padding: 10px;
  }

  .nav-menu {
      gap: 10px;
  }

  .nav-menu a {
      font-size: 14px;
      padding: 8px 12px;
  }

  .user-profile img {
      width: 30px;
      height: 30px;
  }

  .username {
      font-size: 14px;
  }

  .user-stats {
      font-size: 12px;
  }
}
