@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700');

:root {
  box-sizing: border-box;
  font-size: 62.5%;

  /* Font sizes */
  --font-size-card-title: 2.2rem;
  --font-size-article-title: 1.4rem;
  --font-size-article-content: 1.6rem;
  --font-size-article-code: 1.6rem;
  --font-size-title-descriptor: 1.4rem;
  --font-size-highlight: 1.4rem;

  /* Colors */
  --has-content-color: rgb(245, 245, 245);
  --highlight-color-1: rgb(255, 255, 0);
  --highlight-color-2: rgb(255, 0, 245);

  /* Measurements */
  --container-side-1: 40%;
  --container-side-2: calc(100% - var(--container-side-1));
}

*,
:after,
:before {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  font-size: 5rem;
  letter-spacing: 3px;
}

h2 {
  font-size: 1.9rem;
}

body {
  color: rgb(245, 245, 245);
  background-color: #1e1e1e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 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-size: 1.6rem;
  padding: 0 15px;
}

.header {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.header__title {
  font-size: 4rem;
  line-height: 35px;
}

.header__link:link,
.header__link:visited {
  color: inherit;
  text-decoration: none;
  font-style: italic;
}

#search-topic {
  display: block;
  position: sticky;
  top: 20px;
  font-size: 2rem;
  padding: 5px 8px;
  border-radius: 5px;
  border: none;
  box-shadow: 0px 1px 3px rgb(0, 0, 0);
  margin: 0 auto 30px auto;
  z-index: 9999;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(375px, 1fr));
  gap: 30px;
}

.card {
  flex: 0 1 max-width;
  height: fit-content;
  background: rgba(25, 25, 25, 0.7);
  border: 2px solid #50505040;
  border-radius: 15px;
  box-shadow: 2px 2px 5px #171717b3;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card__icon {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2.2rem;
}

.card__title {
  font-size: var(--font-size-card-title);
  text-align: center;
  margin: 1rem 3rem 1.8rem 3rem;
  position: relative;
}

.card__title--1 {
  font-size: 1.1rem;
}

.card__title--2 {
  font-size: 1.8rem;
}

.card__title-description {
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  filter: brightness(0.8);
}

.card__articles {
  margin: 0.5rem 0;
  list-style: none;
}

.card__article {
  max-width: fit-content;
}

.card__article:not(:last-child) {
  margin-bottom: 14px;
}

.content__icon {
  margin-right: 5px;
  color: rgb(102, 102, 102);
}

.content__icon--header {
  font-size: 2rem;
  margin: 0 3px;
}

.card__article-wrapper {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  /* margin: 0 auto; */
  /* text-align: center; */
}

.paragraph__article-anchor:link,
.paragraph__article-anchor:visited {
  color: var(--has-content-color);
  letter-spacing: 0.2px;
  word-spacing: 1px;
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 400;
  text-decoration: none;
  display: block;
  width: fit-content;
  margin: auto;
  border-bottom: 1px solid white;
  margin-bottom: 80px;
}

.card__article-title {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 5px;
  letter-spacing: 0.2px;
  word-spacing: 1px;
  line-height: 20px;
  font-size: var(--font-size-article-title);
  font-weight: 400;
  width: fit-content;
  cursor: pointer;
}

.has-no-content {
  opacity: 0.5;
}

.card__descriptors {
  margin: 0;
  margin-left: 35px;
}

.card__descriptors > :first-child {
  margin-top: 0;
}

.card__descriptor {
  margin-top: 3px;
}

.card__descriptor-anchor:link,
.card__descriptor-anchor:visited {
  color: var(--has-content-color);
  text-decoration: none;
  font-size: var(--font-size-title-descriptor);
}

.card__descriptor-title {
  font-size: var(--font-size-title-descriptor);
}

.copyright {
  max-width: fit-content;
  text-align: center;
  padding: 0 1rem;
  margin: 2rem auto;
}

.copyright__github:link,
.copyright__github:visited {
  color: rgb(255, 69, 69);
  text-decoration: none;
}

.copyright__github:hover {
  color: rgb(255, 125, 125);
}

.highlight__text--1,
.highlight__text--2,
.highlight__code--1,
.highlight__code--2 {
  padding: 1px 2px;
  font-weight: bold;
  font-size: var(--font-size-highlight);
}

.highlight__text--1 {
  background-color: var(--highlight-color-1);
  color: black;
}

.highlight__text--2 {
  background-color: var(--highlight-color-2);
  color: var(--has-content-color);
}

.highlight__code--1 code {
  background-color: var(--highlight-color-1);
  color: black;
}

.highlight__code--2 code {
  background-color: var(--highlight-color-2);
  color: var(--has-content-color);
}

code {
  font-size: var(--font-size-article-code);
  background-color: #303233;
  padding: 1px 2px;
  border: 2px solid #666;
  border-radius: 5px;
  color: #e6e6e6;
}

/* --------------------- Tooltip functionality --------------------- */

/* Tooltip container */
.tooltip {
  max-width: 80vw;
  height: 100vh;
  background-color: rgb(43, 43, 43);
  color: #fff;
  border: 1px solid rgb(107, 107, 107);
  border-radius: 6px;
  border: none;
  padding: 10px 25px 60px 25px;
  font-size: var(--font-size-article-content);
  font-style: normal;
  overflow-y: auto;
  /* column-count: auto;
  column-width: 25rem; */

  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transform: translateX(-100%);

  transition: transform 0.3s ease-in-out;
}

.show {
  transform: translateX(0%);
}

.tooltip h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.7rem;
}

.tooltip h2 code {
  font-size: inherit;
}

.fa-xmark {
  color: inherit;
}

.card__title .tooltip {
  left: -30%;
  min-width: 50rem;
  text-align: left;
}

.tooltip_paragraph {
  text-indent: 20px;
  line-height: 1.5;
}

.tooltip_paragraph:not(:last-child) {
  margin-bottom: 25px;
}

.tooltip_paragraph h3 {
  width: fit-content;
  background-color: white;
  color: black;
  padding: 0 3px;
  border-radius: 5px;
  margin: 0 0 3px 20px;
  text-indent: 0px;
  font-size: 1.7rem;
}

.tooltip_paragraph p,
.tooltip_paragraph ul {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.5;
}

.tooltip_paragraph li {
  text-indent: 40px;
}

.tooltip_paragraph p a {
  text-decoration: none;
  color: rgb(0, 255, 248);
}

.tooltip_paragraph div img {
  /* width: 100%; */
  max-width: 700px;
}

ul {
  list-style: none;
}

/* Tooltip box style marked word */
i,
i code {
  color: rgb(255, 145, 145);
  font-style: normal;
}

b,
b code {
  font-size: 1.6rem;
  color: rgb(255, 255, 0);
}

/* Classes added by tooltip words lenght */
.less__words--800 {
  column-count: 1;
}

.many__words--4500 {
  column-count: auto;
  min-width: 70vw;
}

.container2 {
  position: relative;
}

.fa-xmark {
  display: block;
  width: fit-content;
  margin: 0 1rem 1rem auto;
  font-size: 4rem;
  cursor: pointer;
}

/* Styling code blocks */
pre {
  display: block;
  font-family: monospace;
  white-space: pre-wrap;
  margin: 0 0 10px 0;
  overflow-x: auto;
  background-color: rgb(31, 31, 31);
  padding: 0 12px;
  /* width: fit-content; */
  /* max-width: 95%; */
}

pre::-webkit-scrollbar {
  /* width: 8px; */
  height: 6px;
}

pre::-webkit-scrollbar-thumb {
  border-radius: 5px;
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255);
  background: rgb(26, 26, 26);
}

.tooltip_paragraph > pre {
  margin-left: 20px;
  white-space: pre-wrap;
}

li > pre {
  margin-left: 40px;
}

pre code {
  -webkit-locale: 'json';
  font-family: monospace;
  white-space: pre-wrap;

  font-size: 1.5rem;
  background: none;
  padding: 0;
  border: none;
  color: white;
}

table {
  margin-bottom: 10px;
}

table,
th,
td {
  border: 1px solid rgb(255, 255, 255);
  border-collapse: collapse;
}

th,
td {
  padding: 8px 10px;
}

@media only screen and (max-width: 1300px) {
  .tooltip {
    max-width: 100%;
    padding: 10px 25px 150px 25px;
  }
}

@media only screen and (max-width: 500px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media only screen and (max-width: 370px) {
  .header__title {
    font-size: 3.2rem;
  }
}
