html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(48, 48, 51, 0.2);
    border-radius: 10px;
}

* {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: oldlace;
    display: grid;
    /*
    grid-template-rows: 100vh 100vh;
    grid-template-columns: minmax(15em, 18em) minmax(80%, 100%);
    */
    grid-template-columns: 16vw 84vw;
    grid-template-rows: 55px 94vh;
    overflow: hidden;
}

.main-page {
    grid-template-columns: 16vw 84vw;
}

a {
    color: darkcyan;
    transition: all 0.1s;
    text-decoration: none;
}

a:hover {
    color: rgb(0, 184, 184);
}

a:visited {
    color: rgb(37, 89, 142);
}


/* Pattern right section list items */

.item-details:nth-child(1) ul li:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.1);
}

.item-details:nth-child(1) ul li:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

.no-list-style {
    list-style: none;
}

#global-navigation {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 2;
    position: sticky;
    top: 0em;
    background-color: #292929;
    padding: 15px;
    z-index: 100;
    bottom: 0px;
}

#global-navigation li {
    display: inline;
}

#global-navigation a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px;
    padding-bottom: 16px;
    transition: all 0.1s;
}

#global-navigation a:hover,
.active-tab {
    color: #ffc107;
    /*border-bottom: 3px solid #ff9800;*/
    box-shadow: inset 0 -3px 0 #ff9800;
}

#side-nav {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 1;
    grid-column-end: 1;
    position: sticky;
    top: 60px;
    height: max-content;
}

#nav-title {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 1;
    grid-column-end: 1;
    position: fixed;
    border-left: solid 3px #ff9800;
    text-decoration: none;
    background-color: #353535;
    font-size: 26px;
    font-weight: bold;
    color: #ff9800;
    height: 35px;
    padding: 10px;
    padding-left: 25px;
    z-index: 50;
    transition: color 0.2s;
    width: 100%;
}

#nav-title {
    font-size: clamp(1.25em, 1.35vw, 2em);
}

#nav-title:hover {
    color: rgba(255, 152, 0, 0.9);
}

#nav-contents {
    height: calc(100vh - 60px);
    /* Fix the TOP css of #side-nav */
    width: 100%;
    overflow: scroll;
    overflow-x: hidden;
    position: sticky;
}

#nav-contents > a {
    display: block;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: #2f3e46;
    margin: 6px 10px;
    word-wrap: break-word;
    padding: 5px 15px;
    transition: background-color 0.1s, font 0.1s;
    word-break: break-word;
}

#side-nav a:focus {
    font-weight: bold;
}

#nav-contents a:hover,
.active-item {
    color: black;
    background-color: rgba(0, 0, 0, 0.08);
    border-left: solid 3px #ff9800;
}

#content {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 2;
    margin-left: 30px;
    position: relative;
    top: 110px;
    height: calc(100vh - 110px);
    /* Fixed the TOP CSS 110px due to body having overflow hidden and top = 110px so the last 110px is hidden, this will fix it */
    padding: 0.22em;
    padding-right: 30px;
    overflow-x: hidden;
    overflow-y: scroll;
}

#content.no-left-panel {
    grid-column-start: 1;
    grid-column-end: none;
    padding: 0 8vw;
    margin-left: unset;
}

#content-no-docs {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 2;
    margin-left: 30px;
    position: relative;
    top: 55px;
    height: calc(100vh - 55px);
    /* Fixed the TOP CSS 55px due to body having overflow hidden and top = 55px so the last 55px is hidden, this will fix it */
    padding: 0.22em;
    padding-right: 30px;
    overflow-x: hidden;
    overflow-y: scroll;
}

#content-no-docs.no-left-panel {
    grid-column-start: 1;
    grid-column-end: none;
    padding: 0 8vw;
    margin-left: unset;
}

#side-nav.no-left-panel {
    display: none;
}

div p {
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.item-title {
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 10px;
    padding-top: 0.5em;
    padding-left: 0;
    color: #261908;
}

.item-title > a {
    text-decoration: none;
    font-size: 100%;
}

.item-content {
    padding-bottom: 40px;
    margin-bottom: 20px;
    max-width: 80vw;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.item-table-label {
    background-color: #deb887;
    text-align: center;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    width: 8em;
    padding: 0.3em;
}

.item-content .item-details:nth-child(odd) td:nth-child(2) {
    background-color: rgba(0, 0, 0, 0.1);
}

.item-content .item-details:nth-child(even) td:nth-child(2) {
    background-color: rgba(0, 0, 0, 0.08);
}


/* OVERRIDE */

.item-content .item-details:nth-child(1) td:nth-child(1) {
    background-color: rgba(185, 183, 180, .6);
}

.item-content .item-details:nth-child(1) td:nth-child(2) {
    background-color: unset;
}


/* OVERRIDE */

.item-content .item-details:nth-child(odd) .item-table-label {
    background-color: rgba(185, 183, 180, .6);
}

.item-content .item-details:nth-child(even) .item-table-label {
    background-color: rgba(181, 180, 178, 0.45);
}

.item-details {
    border-collapse: collapse;
    width: 80vw;
    max-width: 80vw;
}

.item-content tr:nth-child(1n + 2) td:nth-child(2) {
    /* 1n+2 will choose all elements excpet the first */
    padding: 8px;
    font-weight: 500;
    color: rgba(0,0,0,.65);
}

.noleftpad {
    padding-left: 0em !important;
}

td ul {
    padding: 0em;
    list-style-type: none;
}

.item-description {
    padding: 15px;
    background-color: rgba(217, 211, 204, 0.4);
}

.item-description > p {
    margin-top: 0.7em;
}

.skript-code-block {
    padding: 6px;
    font-family: "Source Code Pro", monospace;
}

.item-examples p {
    background-color: rgb(255, 152, 0);
    border-left: 3px solid rgba(255, 152, 0, 0.5);
    padding: 5px;
    color: rgba(0, 0, 0, 0.8);
    width: max-content;
    margin-top: 25px;
}

.item-examples .skript-code-block {
    background-color: rgba(0, 0, 0, 0.08);
    visibility: visible;
    font-family: "Source Code Pro", monospace;
    font-weight: 400;
}

.skript-code-block > a {
    text-decoration: none;
}

.item-examples > .skript-code-block {
    border-left: solid 3px #ff9800;
    padding: 30px;
    font-size: 0.9em;
}

.box-title {
    background-color: #ff9800;
    width: max-content;
    padding: 5px;
    padding-right: 7px;
    margin-top: 20px;
    color: rgba(0, 0, 0, 0.8);
}

.box {
    border-left: 3px solid #ff9800;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 10px;
}

.box-title-red {
    background-color: #ff4e4e;
    width: max-content;
    padding: 5px;
    padding-right: 7px;
    margin-top: 20px;
    color: white;
    font-weight: bold;
}

.box-red {
    border-left: 3px solid #ff4e4e;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 20% minmax(80%, 100%);
    }

    #nav-contents {
        margin-top: 100px;
    }

    #content {
        padding-top: 0px !important;
        margin-top: 50px;
        margin-left: 10px;
        /* !important to override home */
    }

    #global-navigation {
        height: calc(4.1em + 2px);
        /* +2px due to 18px padding botton not 16px */
        display: flex;
        flex-wrap: wrap;
    }

    #global-navigation > li {
        padding-bottom: 18px;
    }

    #global-navigation > a {
        padding: 10px;
        padding-top: 0.1em;
        padding-bottom: 0.1em;
    }

    #nav-contents > a {
        font-size: 12px;
    }

    .item-description {
        font-size: 14px;
    }
    .item-table-label {
        width: 5em;
    }

    #search-bar {
        top: calc(4.1em + 24px) !important;
    }
}

@media (max-width: 1024px) {
    body {
        grid-template-columns: 20% minmax(80%, 100%);
    }

    #global-navigation > a {
        padding: 10px;
        padding-top: 0.1em;
        padding-bottom: 0.1em;
    }
}

@media (max-width: 1200px) {
    body {
        grid-template-columns: 20% minmax(80%, 100%);
    }

    #global-navigation li {
        white-space: nowrap;
    }

    #global-navigation {
        display: flex;
    }

    #global-navigation {
        grid-column-start: 1;
        grid-column-end: none;
    }

    #global-navigation > a {
        padding: 10px;
        padding-top: 0.1em;
        padding-bottom: 0.1em;
    }

    #nav-title {
        display: none;
    }

    #search-bar {
        left: 20% !important;
    }
}

.title {
    margin-top: 32px;
}

.subtitle {
    padding-left: 20px !important;
}

.left-margin {
    margin-left: 20px !important;
}

.colors-table {
    width: 75%;
    margin: 32px auto;
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    /*border-radius: 5px;*/
}

.colors-table th,
.colors-table td {
    padding: 12px 15px;
}

.colors-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.colors-table tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.colors-table tbody tr:last-of-type {
    border-bottom: 2px solid #ff9800;
}

ol.custom-list {
    margin-left: 16px;
    list-style: none;
    counter-reset: my-awesome-counter;
}

ol.custom-list li {
    counter-increment: my-awesome-counter;
}

ol.custom-list li::before {
    content: counter(my-awesome-counter) ". ";
    font-weight: bold;
}

code {
    font-family: "Source Code Pro", monospace;
}

pre {
    font-family: "Source Code Pro", monospace;
}

#notification-box {
  background-color: rgb(36, 36, 36);
  border-radius: 15px;
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, .2);
  text-align: center;
  color: rgb(40, 236, 40);
  font-weight: bold;
  transition: all .2s;
  /*transition-delay: .3s;*/
  opacity: 0;
  position: fixed;
  left: 50%;
  top: 92%;
  padding: 10px;
  transform: translate(-50%, -50%);
}

.activate-notification {
  opacity: 1 !important;
  transform: translateY(-20px);
}

.grid-container {
  width: 100%;
  display: inline-grid;
  grid-template-columns: calc(33% - 1.7%) calc(33% - 1.7%) calc(33% - 1.7%);
  grid-column-gap: 3%;
  overflow: hidden;
}

.link {
  display: inline-block;
}

.padding {
    padding: 32px 0;
}

.bottom-padding {
    padding-bottom: 32px;
}

.bottom-padding {
    padding-bottom: 32px;
}

.top-padding {
    padding-top: 32px;
}

.top-padding-2 {
    padding-top: 64px;
}

#search-bar {
    padding: 12px;
    border: none;
    font-size: 18px;
    position: fixed;
    background: white;
    width: calc(100% - 5px); /* -5px for the scrollbar */
    left: 16vw;
    top: 55px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, .05);
}

#search-bar:focus {
    outline: none;
}

.pre {
    white-space: pre;
}

.pre-wrap {
    white-space: pre-wrap;
}