.code-block {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* header */
.code-block-header {
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding-right: 10px;
  background-color: var(--code-block-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-height: 33px;
  min-height: 33px;
  border: 1px solid rgb(145, 193, 203);
}

/* left */
.code-block-header-left {
  padding-left: 10px;
  gap: 8px;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.console-language {
  user-select: none;
  color: var(--code-block-header-lang);
  font-size: medium;
  font-family: monospace;
}

/* right */
.code-block-header-right {
  padding-right: 35px;
  align-items: center;
  gap: 12px;
  display: flex;
  justify-content: space-between;
}

.show-resualt {
  color: var(--code-block-showResult);
  font-size: small;
}

.show-content {
  user-select: none;
  height: 10px;
  gap: 8px;
  align-items: center;
  display: flex;
}
.show-content:hover .show-resualt {
  color: var(--show-content-hover);
  fill: var(--show-content-hover);
  cursor: pointer;
}
.show-content:hover .eye-icon {
  color: var(--show-content-hover);
  fill: var(--show-content-hover);
}

/* icon */
.eye-icon {
  fill: var(--code-block-header-icon);
  width: 22px;
  height: 22px;
}
.copy-icon {
  stroke: var(--code-block-header-icon);
  width: 20px;
  height: 20px;
}
.copy-icon:hover .copy-icon {
  stroke: var(--show-content-hover);
  cursor: pointer;
}
.console-icon {
  position: absolute;
  right: 8px;
  fill: var(--code-block-header-icon);
  width: 25px;
  height: 25px;
}

/* body */
.code-block-body {
  padding-bottom: 7px;
  position: relative;
  font-family: monospace;
  font-size: small;
  padding-top: 5px;
  border-right: 1px solid rgb(145, 193, 203);
  border-left: 1px solid rgb(145, 193, 203);
  border-bottom: 1px solid rgb(145, 193, 203);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background-color: var(--code-block-body-bg);
  max-height: fit-content;
  max-height: 200px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 25px;
}

.code-line-block {
  display: flex;
  /* width: 100%; */
  padding: 4px 10px;
  /* overflow-x: auto; */
  transition: all 0.3s ease-in-out;
}

.code-line-block:hover {
  background-color: var(--code-line-block);
  transition: all 0.3s ease-in-out;
}

.code-line-block:focus {
  background-color: var(--code-line-block);
}

.code-line-number{
  user-select: none;
}

.code-line {
  padding-left: 5px;
}

.code-output {
  padding: 10px;
  padding-top: 5px;
  line-height: 1;
}

.code-line-number {
  width: 32px;
  text-align: center;
  color: #9aa3b2;
  flex-shrink: 0;
}

.red-circle-checkbox {
  display: none;
}

.more-code-btn {
  bottom: -10px;
  font-family: "iransans";
  font-size: smaller;
  position: absolute;
  background-color: var(--more-bg);
  text-align: center;
  color: var(--more-text);
  bottom: 0px;
  right: 0;
  left: 0;
  border-radius: 0 0 10px 10px;
  padding: 3px;
  cursor: pointer;
}

@media (max-width: 425px) {
  .console-icon {
    display: none;
  }
  .code-block-header-right {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .code-block-body {
    font-size: small;
  }
}

button {
  position: fixed;
}

/* wrapper for horizontal scroll - KEY FIX */
.code-scroll-wrapper {
  direction: ltr;
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
}

.code-scroll-wrapper code {
  display: block;
  min-width: max-content;
}

.code-scroll-wrapper::-webkit-scrollbar {
  height: 3px;
}