body {
  margin: 0;
  padding: 0;
  font-family: 'Playpen Sans Deva', cursive, sans-serif;
  background-color: #411400;
  color: #ffda96;
}

::selection {
  background-color: rgb(255, 68, 0);
  color: rgb(56, 0, 0);
}

/* Navbar */
.navbar {
  background-color: #5c0000;
  height: 90px;
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  align-items: center;
  z-index: 1000;
}
.container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  padding: 0 1rem;
  flex-wrap: wrap;
}
.logo img {
  max-height: 70px;
}
.hamburger {
  display: none;
  font-size: 28px;
  color: #ffda96;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}
.nav-links a {
  color: #fa2222;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  margin: 0 30px;
}
.nav-links a:hover {
  color: #ff8c00;
}
.search-form {
  display: flex;
  align-items: center;
}
.search-form input {
  background-color: #ffa455;
  border: 2px solid #ffad5b;
  color: #5c0000;
  font-weight: bold;
  padding: 4px 8px;
  margin-right: 10px;
  block-size: 40px;
  border-radius: 12px;
}
.search-form input::placeholder {
  color: #7a2e00;
  opacity: 0.7;
}
.search-form input:focus {
  outline: none;
  box-shadow: 0 0 5px #ff8c00;
  border-color: #562f00;
}
.search-form button {
  background-color: #ff8c00;
  color: #450000;
  font-weight: bold;
  border: none;
  margin-left: 5px;
  padding: 0px 20px;
  block-size: 40px;
  font-size: 15px;
  border-radius: 12px;
}
.search-form button:hover {
  background-color: #bd0000;
  color: #ffda96;
}
.close-btn {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  font-size: 28px;
  color: #ff8c00;
  cursor: pointer;
}
.notify button {
  background-color: #ff8c00;
  color: #450000;
  font-weight: bolder;
  border: none;
  padding: 0px 40px;
  border-radius: 12px;
  margin-right: 40px;
  block-size: 40px;
  font-size: 15px;
}
.notify button:hover {
  background-color: #bd0000;
  color: #ffda96;
}
.notify-onmenu a {
  display: none;

}

/* Scrollable horizontal menu */
.scroll-bar-wrapper {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  background-color: #300909;
  display: flex;
  align-items: center;
  z-index: 999;
  padding: 0 10px;
  height: 32px;
}
.course-bar {
  flex: 1;
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  padding: 5px 15px;
  background-color: transparent;
}
.course-bar::-webkit-scrollbar {
  display: none;
}
.course-bar a {
  color: #ffda96;
  font-weight: bold;
  padding: 0px 17px;
  text-decoration: none;
  font-size: 13px;
  height: 31px;
  line-height: 36px;
  display: inline-block;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.course-bar a:hover {
  color: #ff8c00;
}
.course-bar a.active {
  background-color: #ff8c00;
  color: #450000 !important;
}
.scroll-btn-left,
.scroll-btn-right {
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: transparent;
}
.scroll-btn-left img,
.scroll-btn-right img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.scroll-btn-left img:hover {
  content: url(SP-Logo-png/arrowleftfocus.png);
}
.scroll-btn-right img:hover {
  content: url(SP-Logo-png/arrowrightfocus.png);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 120px;
  left: 0;
  width: 240px;
  bottom: 0;
  background-color: #5c0000;
  overflow-y: auto;
  padding-top: 12px;
  z-index: 998;
  padding-bottom: 25px;
}
.sidebar a {
  color: #ffda96;
  display: block;
  padding: 10px 20px;
  font-weight: bold;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar a:hover {
  background-color: #450000;
}
.sidebar a.active {
  background-color: #300909;
  color: #ffda96;
}
.sidebar::-webkit-scrollbar {
  width: 10px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #890000;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #e70000;
}
.chapter-dropdown-wrapper {
  display: none;
}

/* Main content */
.main-content {
  margin-top: 120px;
  margin-left: 240px;
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* Watermark */
.watermark {
  position: fixed;
  top: 60%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 40vw;
  max-width: 500px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .main-content {
    margin-left: 0;
  }
}
