.ibg {
  background-color: #222222;
}

:root {
  --bg-light: #ffffff;
  --text-light: #1d1d1d;
  --bg-dark: #292929;
  --text-dark: #ffffff;
  --transition-duration: 0.3s;
}

/* JSU */
body {
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color var(--transition-duration),
    color var(--transition-duration);
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.theme-toggle-container {
  position: relative;
}

.theme-toggle {
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform var(--transition-duration);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.theme-icon {
  display: none;
}

body.light-mode .light-icon,
body.dark-mode .dark-icon {
  display: inline;
}

.dropShadow {
  box-shadow: 0px 1px 3px #000000ad;
}

ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}

/* CDN HAMBURGER */
.cdn-hamb {
  position: relative;
  border: 1px solid #2e2e2e !important;
  z-index: 11;
}

/* MAIN DESIGN */
main.main {
  position: relative;
  width: calc(100% - 14.5rem);
  margin-left: 13rem;
  transition: all 0.3s ease;
}

/* NAVIGATION STYLE */
nav.nav {
  color: var(--text-dark);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 12rem;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding-bottom: 4rem;
  z-index: 10;
}

@media screen and (max-width: 768px) {
  nav.nav {
    width: 10rem;
    left: -100%;
  }

  main.main {
    margin-left: 1.5rem;
    width: calc(100% - 3rem);
  }
}
/* JSU */
.media-nav {
  left: 0 !important;
  transition: all 0.3s ease;
}
/* JSU */
.media-main {
  /* width: calc(100% - 12.5rem) !important;
  margin-left: 11rem !important; */
  transition: all 0.3s ease;
}

nav.nav .left-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 6rem;
  margin-left: 1.5rem;
  padding-top: 1rem;
}
nav.nav .left-nav li:last-child {
  padding-bottom: 2rem;
}

.White {
  color: white;
}
.Black {
  color: black;
}

.nav-fixed {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  transition: all 0.3s ease;
}

/* COPY CODE CSS */
.msr-jsContainer {
  position: relative;
  width: max-content;
}

@media screen and (max-width: 1080px) {
  .msr-jsContainer {
    width: 100%;
    margin-left: 0;
  }
}
.msr-copyCode {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -2rem;
  background-color: #c9c9c9;
  background-color: #a7a7a7;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.4rem;
  border-radius: 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.msr-copyCode:hover {
  background-color: #7f7f7f;
  transition: all 0.2s ease;
}
/* JSU */
.click-smoke::before {
  content: attr(target-smoke);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.7rem;
  background-color: #7f7f7f;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  animation: smoke 1s ease;
}

@keyframes smoke {
  0% {
    bottom: 50%;
    opacity: 1;
  }
  100% {
    bottom: 150%;
    opacity: 0;
  }
}

/* BUTTON CONTAINER */
.button-container,
.buttons-group {
  position: relative;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.m-doc-flex {
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
}
.msr-needToCopy {
  margin: 1rem 0;
  overflow: scroll;
  width: 100%;
  scrollbar-width: none;
}
.msr-needToCopy code[class*="language-"] {
  display: block;
  width: 100%;
  text-wrap: wrap;
  word-wrap: break-word;
  background: #eeeeee;
  padding: 1rem;
  border: 1px solid #e0e0e0;
}

/* DOCUMENTAITON TEXT DESIGNS */
table.cdn-table {
  width: 70%;
  border-collapse: collapse;
  padding: 1rem 0;
}
.cdn-table th,
.cdn-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
table.cdn-table th {
  background-color: #f4f4f4;
}

table.cdn-table td > code {
  background-color: #e6e6e6;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  cursor: pointer;
}
table.cdn-table td > code:hover {
  background-color: #bdbdbd;
}

@media screen and (max-width: 1080px) {
  table.cdn-table {
    width: 100%;
  }
}
