/* VARIABLES */
/* -------------------------------------------------------------------------------- */

:root {
  --main-heding-color: #06283d;
  --text-color: #777;
  --body-font: "Overpass", sans-serif;
  --main-heading-font: "Lora", serif;
  --code-font: "Courier Prime", monospace;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);

  --id-color: #d61c4e;
  --int-color: #feb139;
  --key-color: #6e85b7;
  --comment-color: #8d8daa;
  --string-color: #77d970;
}

/* DEFAULT CONFIGURATION */
/* --------------------------------------------------------------------------------- */

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  height: 100vh;
  padding: 2rem 2rem 1.5rem;
  color: var(--text-color);
  line-height: 1.5;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.01rem;
  word-spacing: 0.08rem;
  font-family: var(--body-font);
}

/* UTILITIES */
/* ----------------------------------------------------------------------------------------- */

.margin-bottom-small {
  margin-bottom: 2rem;
}

/* HEADER ---> LOGO ---> NAVIGATION */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 123rem;
  margin: 0 auto;
}

/* .logo-box {
  padding: 0 2rem;
} */

.logo {
  font-family: var(--main-heading-font);
  color: var(--main-heding-color);
}

.logo-link {
  text-decoration: none;
  display: inline-block;
}

.container {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
}

.container__list {
  padding: 0 1rem;
}

.container__list:last-child {
  padding-right: 0;
}

.container__link:link,
.container__link:visited {
  display: inline-block;
  text-decoration: none;
  padding: 1rem 1rem;
  color: #777;
  font-weight: 400;
  position: relative;
}

.container__link::after {
  content: " ";
  height: 0.2rem;
  width: 0;
  background-color: #1363df;
  transition: all 0.2s;
  position: absolute;
  bottom: 0;
  left: 0;
}

.container__link:hover::after {
  width: 100%;
}

.container__link:hover {
  color: #06283d;
}

/* MAIN */
/* ------------------------------------------------------------------------------------------- */

.main {
  height: 79vh;
  max-width: 124rem;
  margin: 2rem auto 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box {
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  height: 100%;
}

/* SIDE BAR */
/* ------------------------------------------------------------------------------------------- */
.sidebar {
  width: 20%;
  list-style: none;
  overflow-y: scroll;
  padding: 2.4rem 0;
}

/* .sidebar__list {
    position:relative;
}

.sidebar__list::after {
    content: " ";
    height: 100%;
    width: .4rem;
    position: absolute;
    background-color: #06283d;
    top: 0;
    left: 0;
} */

.sidebar__link:link,
.sidebar__link:visited {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  width: 100%;
  text-decoration: none;
  color: #06283d;
  transition: all 0.2s;
}

.sidebar__link:hover {
  background-color: #dff6ff;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #ccc;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* MAIN BODY */
/* ------------------------------------------------------------------------------------------ */

.main-block {
  width: 78.1%;
  height: 100%;
  padding: 2.5rem 3rem;
  overflow-y: scroll;
}

/* FONTS */
/* ------------------------------------------------------------------------------------------ */

.heading {
  font-family: var(--main-heading-font);
  color: var(--main-heding-color);
}

.heading--primary {
  font-size: 3.4rem;
}

.heading--secondary {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.para {
  margin-bottom: 1.3rem;
}

/* CONTAINERS */
/* ------------------------------------------------------------------------------------------ */

.order-list {
  padding: 1rem 4rem;
  margin: 1rem 0;
}

/* SECTIONS */
/* ------------------------------------------------------------------------------------------ */

.section {
  display: none;
}
/* CODE BOX */
/* -------------------------------------------------------------------------------------------- */
.code-block {
  position: relative;
}

.pre {
  background-color: #06283d;
  /* background-color: #282c34; */
  padding: 2rem;
  border-radius: 0.5rem;
  counter-reset: line;
  margin: 2.2rem 0 2.4rem;
}

.code {
  counter-increment: line;
  position: relative;
  /* display: inline-block; */
  /* width: 100%; */
  margin: 0;
  /* padding: 2rem; */
  margin-left: 2rem;
  padding-left: 2rem;
  /* border-left: 2px solid #fff; */
  font-family: var(--code-font);
  font-size: 1.7rem;
  color: #bbb;
}

.code::before {
  content: counter(line);
  padding-left: 10rem;
  text-align: left;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.code:before {
  -webkit-user-select: none;
}

/* BUTTONS */
/* ----------------------------------------------------------------------------------------------- */
.btn-copy {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.2rem 1rem;
  border-radius: 0.5rem;
  outline: none;
  border: 1px solid #f1f1f1;
  border-top: none;
  border-left: none;
  font-family: var(--body-font);
  background-color: #06283d;
  color: #f1f1f1;
  cursor: pointer;
  transition: all 0.1s;
}

.btn-copy:active {
  transform: translateY(0.2rem);
}

.topic--active {
  /* font-weight: 600; */
  background-color: #dff6ff;
  /* color: #1363df !important; */
  position: relative;
}

.topic--active::after {
  content: " ";
  height: 100%;
  width: 0.3rem;
  position: absolute;
  background-color: #1363df;
  top: 0;
  left: 0;
}

.show {
  display: block;
}

.grid {
  margin: 3rem auto;
  display: grid;
  grid-template-columns: repeat(3, 10rem);
  grid-template-rows: repeat(3, 10rem);
}

.grid__child {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--main-heding-color);
  /* border-radius: 0.4rem; */
  border: 2px solid var(--main-heding-color);
}

.table-label--1 {
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 0.5rem;
}

.table-label--2 {
  border-right: none;
  border-bottom: none;
  background-color: #dff6ff;
}
.table-label--3 {
  /* border-left: none; */
  border-bottom: none;
  border-top-right-radius: 0.5rem;
  background-color: #dff6ff;
}
.table-label--4 {
  border-right: none;
  border-bottom: none;
  background-color: #dff6ff;
}
.table-label--5 {
  border-bottom: none;
  border-right: none;
}

.table-label--6 {
  border-bottom: none;
}

.table-label--7 {
  border-right: none;
  border-bottom-left-radius: 0.5rem;
  background-color: #dff6ff;
}
.table-label--8 {
  border-right: none;
}
.table-label--9 {
  border-bottom-right-radius: 0.5rem;
}

.table {
  width: 90%;
  margin: 4rem auto;
  display: grid;
  grid-template-rows: repeat(9, 1fr);
  grid-template-columns: 1fr 1fr;
  /* margin: 4rem; */
}

.table__child {
  padding: 0.5rem 4rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 2px solid #ccc;
  border-right: 2px solid #ccc;
}

.table__child--1 {
  font-weight: 600;
  font-size: 2rem;
  color: var(--main-heding-color);
  border-top: 2px solid #ccc;
  border-top-left-radius: 0.5rem;
}

.table__child--2 {
  font-weight: 600;
  font-size: 2rem;
  color: var(--main-heding-color);
  border-top: 2px solid #ccc;
  border-top-right-radius: 0.5rem;
}

.table__child--15 {
  border-bottom-left-radius: 0.5rem;
}

.table__child--16 {
  border-bottom-right-radius: 0.5rem;
}

.table__child--1,
.table__child--3,
.table__child--5,
.table__child--7,
.table__child--9,
.table__child--11,
.table__child--13,
.table__child--15 {
  border-left: 2px solid #ccc;
}
