body {
  background: var(--bg-secondary);
}
.leftnavdt {
  position: fixed;
  left: 0.5rem;
  top: calc(var(--header-height) + 1.5rem + 1px);
  width: 60px;
  max-height: calc(100vh - 3rem - 1px - 100px);
  background-color: var(--bg-color);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  transition: transform 0.3s ease, width 0.3s ease, top 0.3s ease-in-out, height 0.3s ease, width 0.3s ease;
  z-index: 990;
  border-radius: 0.5rem;
  overflow: hidden;
}
.leftnavdt.header-hidden {
  top: 1rem;
  max-height: calc(100vh - 2rem);
}
/*
.leftnavdt.header-hidden {
  top: 1rem;
  max-height: calc(100vh - 2rem);
  width: 80px;
}
.leftnavdt.header-hidden .category-wrapper img {
  width: 40px;
}*/
.leftnavdt:hover {
  width: 700px;
  max-width: 100%;
  overflow: auto;
  left: 0;
  padding: 0 10px;
  background-color: var(--bg-color-alpha-high);
}
.leftnavdt .category-wrapper {
  border-color: transparent;
  transition: border-color 0.3s ease;
}
.leftnavdt .category-info {
  font-size: 1rem;
}

.leftnavdt .category-container {
  padding: 10px 0;
}

.leftnavdt .category-card a,
.leftnavdt .category-card .slno {
  font-size: 0.95rem;
}
.leftnavdt .category-card {
  display: none
}
.leftnavdt:hover .category-card {
  display: flex
}
.leftnavdt .category-wrapper span {
  display: none;
  white-space: nowrap;
}
.leftnavdt:hover .category-wrapper {
  border-color: var(--subtle-border-color);
}
.leftnavdt:hover .category-wrapper span {
  display: initial;
}
aside {
  width: calc(300px + 1rem);
  height: 100%;
  margin-right: 1rem;
}
.header-right {
  padding: 0.5rem 1rem;
  border-radius: 3rem;
  gap: 0.5rem;
}
#search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
#icon-search, #icon-close {
  padding: 0;
}
#search-wrapper {
  padding: 0.25rem;
  width: auto;
  height: auto;
  background: black;
  border-radius: 2rem;
  background: var(--bg-ternary);
}

.jsavcontrols .jsavend {
  margin-left: 1rem;
}
.jsavcontrols .jsavbegin {
  margin-right: 1rem;
}

body.visualization-expanded {
  overflow: hidden;
}
body.visualization-expanded .leftnavdt,
body.visualization-expanded .header-container {
  display: none;
}

body.visualization-expanded .jsavcontainer {
  box-shadow: none!important;
  border: none!important;
  border-radius: 0!important;
}
body.visualization-expanded .visualization-expanded {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
}
body.visualization-expanded .visualization-expanded.slimplayer {
  width: 100%;
}
body.visualization-expanded .visualization-expanded #visualizer-wrapper {
  height: calc(100vh - 2rem);
}
body.visualization-expanded .visualization-expanded #canvasoutputcontainer {
  height: calc(100vh - 64px - 1rem - 44px - 2rem);
  max-height: calc(100vh - 64px - 1rem - 42px - 1rem - 10px);
}
body.visualization-expanded .slimplayer.visualization-expanded #canvasoutputcontainer {
  height: calc(100vh - 64px - 1rem);
  max-height: calc(100vh - 64px - 1rem - 10px);
}
body.visualization-expanded .visualization-expanded #pseudocodecontainer,
body.visualization-expanded .visualization-expanded .jsavoutputcontainer {
  max-height: unset;
}
body.visualization-expanded #stepSlider{
  position: fixed;
  bottom: 0;
  left: 0;
  border-radius: 0;
}
body.visualization-expanded #scrollToTopBtn{
  display:none!important;
}

.jsavcontrols::before,
.jsavcontrols::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 60px;
  height: 60px;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

.jsavcontrols::before {
  content: "";
  position: absolute;
  left: -40px;
  width: 40px;
  height: 40px;
  background-color: var(--bg-course-bar);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M0 512L512 512L512 0C512 0 510.993 256.572 381 384C249.914 512.499 0 512 0 512Z'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M0 512L512 512L512 0C512 0 510.993 256.572 381 384C249.914 512.499 0 512 0 512Z'/%3E%3C/svg%3E");
  mask-size: cover;
  mask-repeat: no-repeat;
  z-index: 0;
}

.jsavcontrols::after {
  content: "";
  position: absolute;
  right: -40px;
  width: 40px;
  height: 40px;
  background-color: var(--bg-course-bar);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Rectangle-copy' fill='%23000000' fill-rule='evenodd' stroke='none' d='M 512 512 L 0 512 L 0 6.1e-05 C 0 6.1e-05 1.006714 256.572021 131 384 C 262.085571 512.498718 512 512 512 512 Z'/%3E%3C/svg%3E%0A");
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Rectangle-copy' fill='%23000000' fill-rule='evenodd' stroke='none' d='M 512 512 L 0 512 L 0 6.1e-05 C 0 6.1e-05 1.006714 256.572021 131 384 C 262.085571 512.498718 512 512 512 512 Z'/%3E%3C/svg%3E%0A");
  mask-size: cover;
  mask-repeat: no-repeat;
  z-index: 0;
}

.category-links {
  border-radius: 1rem;
}
.category-links a {
  text-decoration: none;
  border-bottom: 0;
}

.category-links ol.custom li {
  padding-left: 0;
}

.leftnavdt::-webkit-scrollbar {
  width: 10px;
}

.leftnavdt::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

.leftnavdt::-webkit-scrollbar-thumb {
  background-color: var(--bg-deep);
  border-radius: 5px;
}

.leftnavdt:hover::-webkit-scrollbar-thumb {
  background-color: var(--highlight-blue-bg);
  border-radius: 5px;
}

.leftnavdt::-webkit-scrollbar-thumb:hover {
  background-color: var(--highlight-blue-bg);
}


code::-webkit-scrollbar {
  width: 5px;
}
code::-webkit-scrollbar-track {
  background: var(--code-bg);
}
code::-webkit-scrollbar-thumb {
  background-color: var(--bg-opposite);
  border-radius: 1rem;
}
code:hover::-webkit-scrollbar-thumb {
  background-color: var(--bg-opposite);
  border-radius: 1rem;
}
code::-webkit-scrollbar-thumb:hover {
  background-color: var(--bg-opposite);
}
.home-page .main-content,
.profile .main-content,
.course-home-page .main-content,
.profile footer,
.course-home-page footer {
  margin-left: 2rem;
}
.home-page .category-container {
  margin: auto;
}
.youtube {
  width: fit-content;
}
aside .youtube-channel-section {
  margin: 1rem auto;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--subtle-border-color);
  border-radius: 12px;
  background-color: var(--bg-color);
}
aside .youtube-channel-section h3 {
  margin-bottom: 10px;
}
aside .youtube-channel-section p {
  font-size: 1rem;
  color: var(--text-color-lighter);
}
aside .youtube-channel-section a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e20f00;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
}
aside .progress-item .course-name {
  max-width: 230px;
}
.bookmarks-aside .section-heading-info {
  display: flex;
  gap: 0.5rem;
}
#bookmarks-aside {
  font-size: 1rem;
}
#bookmarks-aside .coursename {
  font-weight: 600;
}
#bookmarks-aside ul {
  padding-left: 0;
  list-style: none;
  margin-top: 0.5rem;
}
.bookmarks-aside .section-heading {
  font-size: smaller;
  padding-bottom: 0.5rem;
  color: var(--text-color-lighter);
  font-weight: bold;
}
.bookmarks-aside svg path {
  fill: var(--accent-color-80);
}
.course-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 30px;
  padding: 0;
}
.course-actions .buttons {
  opacity: 0.01;
  display: flex;
}
.loggedin .course-actions buttons {
  opacity: 1;
}
.category-link a {
  font-weight: 600;
  color: var(--text-color-lighter);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.category-link a:hover {
  background: var(--bg-color);
}
.category-link a:before {
  content: 'Category: ';
  font-size: 0.8rem;
  font-weight: 200;
}
footer .row {

}
#page-quick-links a {
  min-width: 50px;
}
.chapter_no {
  color: var(--text-color-lighter);
  padding-right: 0.5rem;
  font-weight: 200;
}
.output-exec-wrapper {
  display: flex;
}
pre.output-in-player {
  flex: 1;
  border-bottom-width: 2px;
  border-bottom-left-radius: 0.5rem;
  border-right-width: 0px;
  overflow: hidden;
  min-height: 10rem;
}
pre.output-in-player code {
  min-height: 10rem;
}
.code-exec-bar {
  flex-direction: column;
  width;
  flex: 2;
  border-radius: 0 0 0.5rem 0;
  border-top-width: 2px;
  min-height: 12rem;
}
.code-exec-bar:before {
  content: 'Explanation';
  font-size: smaller;
  padding: 0.25rem 0.5rem;
}
.code-controls-wrapper {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 0 0 0.5rem 0.5rem;
}
.code-controls {
  padding-bottom: 0;
}
pre.output code div,
pre.output.player-ready code div {
  text-wrap: wrap;
}
.course-page-content {
  padding: 2rem;
}
div.course-page-content:first-of-type {
  margin-top: 1rem;
  border-radius: 1rem 1rem 0 0;
}
div.course-page-content:nth-last-of-type(1) {
  border-radius: 0 0 1rem 1rem;
}
.code-block-wrapper {
  margin: 2rem 0;
}