.markdown pre code.language-output,
.markdown pre code.language-input {
  padding: 1em;
  background: #1e1e1e;
  overflow-x: auto;
  display: block;
  color: #dcdcdc;
  line-height: 1.5;
}

.input-container,
.output-container,
.cpp-container {
  position: relative;
  overflow: visible;
  margin-top: 1.5em;
}

.markdown .cpp-container::before,
.markdown .input-container::before,
.markdown .output-container::before {
  content: "Output";
  position: absolute;
  display: block;
  font-weight: bold;
  bottom: 100%;
  right: 0.5em;
  color: var(--text-col);
  opacity: 0.7;
  text-transform: uppercase;
}

.markdown .input-container::before {
  content: "Input";
}

.markdown .cpp-container::before {
  content: "C++";
}

.markdown .cpp-container.maccpp::before {
  content: "(MAC)C++";
}

.markdown .cpp-container.wincpp::before {
  content: "(WINDOWS)C++";
}

.markdown .cpp-container.lincpp::before {
  content: "(LINUX)C++";
}
.markdown .cpp-container.linmaccpp::before {
  content: "(LINUX/MAX)C++";
}

.markdown .output-container > code {
  position: relative;
  overflow: hidden;
}

.markdown .output-container > code::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0px;
  width: 5px;
  height: 100%;
  background: var(--text-col);
}

/*
*
* MARKDOWN STYLE START
*
*/
.markdown {
  /*! padding: 1rem; */
  margin: 0 auto;
  line-height: 1.5;
  width: 100%;
  min-width: 300px;
  max-width: 100%;
  padding-right: var(--toc-width);
  display: flex;
  flex-direction: column;
}

.markdown h3 {
  font-size: 1.4rem;
}

.markdown h5 {
  position: relative;
  margin: 0;
  font-size: 2rem;
  font-family: "Inria Sans", sans-serif;
  border-left: 2px solid var(--accent-col);
  border-right: 2px solid var(--accent-col);
  background: linear-gradient(
    90deg,
    #ef535044 0%,
    #ef535010 30%,
    #ef535010 70%,
    #ef535044 100%
  );
  font-weight: 400;
  padding: 0.5rem 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
}

.markdown,
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown p,
.markdown a,
.markdown textarea,
.markdown input,
.markdown li {
  font-family: "Oxygen", sans-serif;
}

.markdown table {
  border-collapse: collapse;
}
.markdown table thread {
  
  border-radius: 5px;
  background: red;
}

.markdown table td,
.markdown table th {
  border: 1px solid var(--overlay-strong-col);
  margin: 0;
  padding: 3px;
  text-align: left;
}
.markdown table th {
  background: var(--overlay-col);
}

.markdown h5::before,
.markdown h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-col) 0%,
    #ef535000 50%,
    var(--accent-col) 100%
  );
}

.markdown h5::after {
  top: 0;
  bottom: auto;
}

.markdown p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2rem;
}

.markdown h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

.markdown ol,
ul {
  padding: 0;
}

.markdown :not(li) blockquote {
  position: relative;
  padding: 0 1rem;
  margin: 0;
  background: var(--panel-col);
  border-radius: 7px;
  overflow: hidden;
}

.markdown :not(li) blockquote::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-col);
  border-radius: 4px;
}

.markdown li > blockquote {
  position: relative;
  list-style: none;
  background: var(--panel-col);
  padding: 1rem;
  border-radius: 1rem;
  margin-top: 3rem;
  overflow: visible;
}

.markdown li > blockquote:root {
  list-style: none;
}

.markdown li > blockquote::before {
  color: var(--accent-col);
  list-style: none;
  top: 0;
  left: 1rem;
  transform: translateY(-50%);
  content: "X";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--panel-col);
  border: 5px solid var(--bg-col);
  width: fit-content;
  padding: 0 1rem;
  min-width: 3rem;
  height: 3rem;
}

.markdown li:nth-of-type(1) > blockquote::before {
  content: "1";
}

.markdown li:nth-of-type(2) > blockquote::before {
  content: "2";
}

.markdown li:nth-of-type(3) > blockquote::before {
  content: "3";
}

.markdown li:nth-of-type(4) > blockquote::before {
  content: "4";
}

.markdown li:nth-of-type(5) > blockquote::before {
  content: "5";
}

.markdown li:nth-of-type(6) > blockquote::before {
  content: "6";
}

.markdown li:nth-of-type(7) > blockquote::before {
  content: "7";
}

.markdown li:nth-of-type(8) > blockquote::before {
  content: "8";
}

.markdown li:nth-of-type(9) > blockquote::before {
  content: "9";
}

.markdown li > blockquote[data-content]::before {
  content: attr(data-content);
}

.markdown li > blockquote p > em:first-of-type {
  color: var(--accent-col);
  font-style: normal;
  font-weight: 600;
}

.markdown li {
  list-style: none;
}

.block-list::before {
  content: "";
}

.markdown :not(pre) > code {
  background: #1e1e1e;
  color: var(--faded-text-col);
  border-radius: 5px;
  padding: 0 2px;
}

.markdown hr {
  background: var(--panel-outline);
  margin: 3rem 0;
}

.markdown .copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #fff0;
  background: var(--bg-col);
  border: var(--panel-outline) 1px solid;
  color: var(--text-col);
  border-radius: 5px;
  padding: 0.5rem;
  opacity: 0;
  overflow: hidden;
}

.markdown pre:hover .copy-button {
  opacity: 1;
}

.markdown .copy-button:hover::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-col);
}

.markdown a {
  color: var(--secondary-text-col);
  text-decoration: underline;
  background: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.markdown pre code {
  border-radius: 6px;
  scrollbar-width: thin;
}

.language-todo {
  display: none;
}

.markdown pre code.hljs {
  padding: 0.5rem;
  border: var(--panel-outline) 1px solid;
}

.markdown img {
  border-radius: 1rem;
  max-width: 100%;
  display: block;
  margin: auto;
}
