body {
  padding: 0px;
  margin: 0px;
  background-color: var(--bg);
  font-family: -apple-system,
    BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell,
    "Fira Sans", "Droid Sans",
    "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

html {
  --bg: #fff;
  --bg-panel: #efefef;
  --color-heading: #262329;
  --color-text: #fff;
  --min-btn: #222222;
  --bg-terminal: #202124;
  --color-toggle: #000;
  --color-paragraph: #262329;
  --hl-bg: #202124;
  --hl-text: #fff;
  --shadow: rgba(0, 0, 0, 0.24) 0px 3px
    8px;
  --bg-header: #f8f9f9;
  --border-bottom: 1px solid #d1d1d1;
  --footer-text: #fff;
  --bg-footer: #202124;
  scroll-behavior: smooth;
  --clear: #fff;
  --bg-sub-menu: #d3d3d350;
  --bg-sub-menu-hover: #6bcb77;
  --bg-blur: blur(0px);
  --footer-link: #3273dc;
  --bg-sidebar: #d3d3d330;
}

/* dark theme styling - Here, we set data-them as "dark"*/
html[data-theme="dark"] {
  --bg: #22272e;
  --bg-panel: #434343;
  --color-heading: #adbac7;
  --color-text: #000;
  --min-btn: #fff;
  --bg-terminal: #fff;
  --color-paragraph: #adbac7;
  --color-toggle: #000;
  --hl-bg: whitesmoke;
  --hl-text: #222222;
  --shadow: #000;
  --bg-header: #2d333b;
  --bg-blur: blur(15px);
  --border-bottom: none;
  --footer-text: #fff;
  --bg-footer: #2d333b;
  scroll-behavior: smooth;
  --clear: #222222;
  --bg-sub-menu: #2d333b;
  --bg-sub-menu-hover: #171717;
  --footer-link: #3273dc;
  --bg-sidebar: #22272e;
}

.terminal {
  --size: 1.3;
  --color: var(--color-text);
  --background: var(--bg-terminal);
  width: 100%;
  height: 100%;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
.terminal.textarea {
  max-width: 100%;
}
input[type="checkbox"] {
  /* styling for input element */
  height: 0;
  width: 0;
  visibility: hidden;
}

label {
  /* styling for labels */
  cursor: pointer;
  text-indent: -9999px;
  width: 52px;
  height: 27px;
  background: #000;
  float: right;
  border-radius: 100px;
  position: relative;
  margin-right: 15px;
}

label:after {
  /* styling for labels - on toggle */
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 90px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

input:checked + label {
  /* conditional check while toggling */
  background: var(--color-toggle);
}

input:checked + label:after {
  left: calc(100% - 5px);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
}

label:active:after {
  width: 45px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 55px;
  border-bottom: var(--border-bottom);
  top: 0;
  position: fixed;
  background-color: var(--bg-header);
  z-index: 1;
  box-shadow: var(--shadow);
  backdrop-filter: var(--bg-blur);
}

i {
  color: var(--min-btn);
  cursor: pointer;
  width: 15px;
  margin-right: 15px;
}

#content {
  color: var(--color-text);
  padding: 10px 10px 10px 20px;
  margin: 0px 10px 10px 5px;
}

#content a {
  color: #3273dc;
  text-decoration: none;
}
#content p {
  color: var(--color-paragraph);
  line-height: 2rem;
}

#content h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  padding-top: 60px;
}
#content li {
  color: var(--color-heading);
  line-height: 1.5rem;
}

.hljs {
  color: var(--hl-text);
  background: var(--hl-bg);
  border-radius: 5px;
}

.main {
  display: flex;
  width: 100%;
  height: 100%;
}

.terminal-container {
  flex: 0.5;
  width: 100%;
  height: 84vh;
  position: sticky;
  position: -webkit-sticky;
  top: 65px; /* required */
}

#content {
  flex: 1;
  width: 50%;
  height: 100%;
  overflow: auto;
  margin-left: 300px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-container {
  position: relative;
}

.img-moon {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 3px;
  right: 3px;
}

.img-sun {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 3px;
  left: 4px;
}

.header-right-svg {
  width: 25px;
  height: 25px;
  margin-right: 15px;
  position: relative;
  cursor: pointer;
}
.header-right-svg-max {
  width: 15px;
  height: 15px;
  margin-right: 15px;
  cursor: pointer;
  margin-bottom: 6px;
}
.header-right-svg-help {
  width: 15px;
  height: 15px;
  margin-right: 15px;
  cursor: pointer;
  margin-bottom: 6px;
}
.header-right-svg-show {
  display: none;
}

.header-right .header-right-text-help {
  visibility: hidden;
  width: 100px;
  background-color: var(--bg);
  color: var(--bg-terminal);
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 12px;
  z-index: 1;
  /* Position the tooltip */
  position: absolute;
  top: 50px;
}

.header-right-svg-help:hover
  .header-right-text-help {
  visibility: visible;
}

.header-right .header-right-text-show {
  visibility: hidden;
  width: 100px;
  background-color: var(--bg);
  color: var(--bg-terminal);
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 12px;
  z-index: 1;
  /* Position the tooltip */
  position: absolute;
  top: 50px;
}

.header-right-svg-show:hover
  .header-right-text-show {
  visibility: visible;
}

.header-right .header-right-text {
  visibility: hidden;
  width: 100px;
  background-color: var(--bg);
  color: var(--bg-terminal);
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 12px;
  z-index: 1;
  /* Position the tooltip */
  position: absolute;
  top: 50px;
}

.header-right-svg:hover
  .header-right-text {
  visibility: visible;
}
.header-right-svg-max:hover
  .header-right-text {
  visibility: visible;
}

.footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  background-color: var(--bg-footer);
  height: 45px;
  color: var(--footer-text);
  box-shadow: var(--shadow);
  backdrop-filter: var(--bg-blur);
}

.footer-container {
  display: flex;
  align-items: center;
}

.footer-container .footer-span {
  padding: 10px 5px 5px 20px;
}

.logo {
  margin-top: 5px;
  width: 150px;
  height: 40px;
  cursor: pointer;
  padding: 15px 5px 15px 20px;
}

.footer-span a {
  color: var(--footer-link);
}

#close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
}
#closeimg {
  display: none;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-top: 3px;
}

#closeimgsmall {
  display: none;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-top: 3px;
}

.close img {
  cursor: pointer;
}

.hljs-copy-button {
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  .terminal {
    display: none;
  }

  .header-right-svg {
    display: none;
  }
  .header-right-svg-max {
    display: none;
  }
  .header-right-svg-show {
    display: block;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    cursor: pointer;
  }

  #side-bar {
    display: none;
  }

  #content {
    margin-left: 0px;
  }

  #modal-content {
    padding: 20px;
    width: 90%;
    height: 90%;
    line-height: 2;
    font-size: 14px;
    overflow-y: scroll;
  }
  #content {
    overflow-x: hidden;
  }

  .header-right-text-show {
    display: none;
  }
  .header-right-text-help {
    display: none;
  }

  .logo {
    width: 100px;
    height: 30px;
  }

  #modal-close {
    width: 10px;
    height: 10px;
  }

  .modal-content-image {
    width: 140px;
  }
}

.hamburger-menu {
  width: 25px;
  height: 25px;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  margin-left: 15px;
}

.hamburger-menu i {
  color: #6bcb77;
}

.logo-container {
  display: flex;
  align-items: center;
}

#img-delete {
  cursor: pointer;
}

// MOdal

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modal-close {
  width: 30px;
  height: 30px;
  padding: 0;
  margin-top: 3px;
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  cursor: pointer;
  z-index: 9999;
  padding: 5px;
}
.modal-content {
  padding: 28px;
  width: 600px;
  height: auto;
  background-color: #fff;
  line-height: 1.5;
  font-size: 18px;
  cursor: initial;
  animation: fadeIn 0.6s ease-in-out;
  border-radius: 10px;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-12rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-content-image {
  display: block;
  max-width: 180px;
  position: relative;
}

.modal-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.modal-content-button {
  width: 140px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background-color: #6bcb77;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.modal-content b {
  font-weight: bold;
}

.modal-content a {
  color: #3273dc;
  text-decoration: none;
}

.side-bar {
  display: block;
  width: 290px;
  height: 86vh;
  position: fixed;
  top: 55px;
  left: 0;
  overflow-y: scroll;
  background-color: var(--bg-sidebar);
  z-index: 100;
}

.side-bar .menu {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 120px;
}

.side-bar .menu .item {
  position: relative;
  cursor: pointer;
}
.side-bar .menu .item a {
  color: var(--color-paragraph);
  font-size: 16px;
  text-decoration: none;
  display: block;
  padding: 5px 30px;
  line-height: 40px;
}

.side-bar .menu .item a:hover {
  background: var(--bg-sub-menu-hover);
  transition: 0.3s ease;
}

.side-bar .menu .item i {
  margin-right: 15px;
}

.side-bar .menu .item a .dropdown {
  position: absolute;
  right: 0;
  margin: 15px;
  transition: 0.3s ease;
}

.side-bar .menu .item .sub-menu {
  background: var(--bg-sub-menu);
  display: none;
}

.side-bar .menu .item .sub-menu a {
  font-size: 14px;
  padding-left: 40px;
  line-height: 1.5rem;
}

.side-bar
  .menu
  .item
  .sub-menu
  a
  .dropdown {
  position: absolute;
  right: 0;
  margin: 5px;
  transition: 0.3s ease;
}

.rotate {
  transform: rotate(90deg);
}

.side-bar-title {
  margin-top: 20px;
  font-size: 24px;
  padding: 5px 30px;
  color: var(--color-paragraph);
}

.link {
  color: #3273dc;
  font-size: 12px;
  margin-left: 5px;
}

.toc-link {
  color: #3273dc;
  font-size: 8px;
}

#close-btn {
  display: none;
}

.close-btn i {
  color: #6bcb77;
}

.space {
  visibility: hidden;
}

#link {
  cursor: pointer;
}
