@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@100;300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Ensures padding doesn't break width */
}

body {
  min-height: 100vh;
  background: url('laptop.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: "Prompt", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
}

/* Fix for the Thai text stacking/wrapping */
nav a, nav button {
  font-family: "Prompt", sans-serif;
  height: 100%;
  padding: 0 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
  white-space: nowrap; /* CRITICAL: Keeps Thai text on one line */
}

nav {
  background-color: white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav li {
  height: 60px;
  display: flex;
  align-items: center;
}

nav a:hover {
  background-color: #f0f0f0;
}

nav li:first-child {
  margin-right: auto;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0; 
  right: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1000;
}

.sidebar li {
  width: 100%;
  height: auto; /* Let sidebar items breathe */
}
img.image2{
  display: none;
}

.sidebar a {
  width: 100%;
  padding: 15px 25px;
}

.menu-button {
  display: none;
}

/* Responsive Logic */
@media(max-width: 960px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
  /* Adjusted logo logic for mobile */
  img.image{
    display: none;
  }
  img.image2{
    display: block;
    padding-right: 50px;
  }
  li.logo1{
    width: 220;
  }
  a.logo{
    width: 150px;
  }
  .imglogo{
    padding-left: 60px;
  }
}

@media(max-width: 960px) {
  .sidebar {
    width: 100%;
  }
  .menu-button {
    display: block;
  }
}