@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700,400italic|Roboto+Mono:400");

:root {
    --color-base: #673ab7;
    --color-base-light: #673ab7dd;
    --color-text: white;

    --font-size-xxs: 8px;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-xxl: 28px;

    --shadow-bottom: 0px 1px 11px 9px rgba(0, 0, 0, 0.3);
}


* {
    box-sizing: border-box;
    font-family: Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: black;
    font-weight: 500;
}

h1 > a, h1 > a:hover,
h2 > a, h2 > a:hover,
h3 > a, h3 > a:hover {
    color: black;
    text-decoration: none;
}

h1 > a:before {
    width: 25px;
    margin-left: -42px;
}

h2 > a:before {
    width: 25px;
    margin-left: -32px;
}

h3 > a:before {
    width: 25px;
    margin-left: -25px;
}

main {
    position: fixed;
    width: calc(100% - 320px);
    left: 320px;
    top: 70px;
    padding: 50px 80px;
    overflow-y: scroll;
    height: calc(100vh - 70px);
    padding-right: 80px
}

main > p, .normal-text p {
    color: #0e1e25de;
    font-size: var(--font-size-lg);
    line-height: 1.67;
}

.scrollspy + main {
    padding-right: 350px;
}

.responsive {
    width: 100%;
    max-width: 560px;
    height: auto;
  }

.youtube-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 560px;
    max-height: 315px;
  }

aside {
    width: 350px;
    min-width: 300px;
    background-color: var(--color-base);
    color: var(--color-text);
    height: 100vh;
    overflow: scroll;
    padding: 30px;
    position: fixed;
}

aside.pattern-1 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/1.jpg');
}

aside.pattern-2 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/2.jpg');
}

aside.pattern-3 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/3.jpg');
}

aside.pattern-4 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/4.svg');
}

aside.pattern-5 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/5.svg');
}

aside.pattern-6 {
    background-image: linear-gradient(var(--color-base) 50%, var(--color-base-light)), url('../img/patterns/6.svg');
}

aside.pattern-7 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/7.svg');
}

aside.pattern-8 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/8.svg');
}

aside.pattern-9 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/9.svg');
}

aside.pattern-10 {
    background-image: linear-gradient(var(--color-base), var(--color-base-light)), url('../img/patterns/10.svg');
}

aside .logo {
    margin-bottom: 20px;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

aside .logo .title {
    color: var(--color-text);
    font-size: var(--font-size-xxl);
    opacity: 0.8;
}

aside .logo img {
    width: 80px;
}

aside .uk-nav a > img {
    width: 16px;
    max-height: 16px;
    margin-top: -2px;
    margin-right: 5px;
}

aside .uk-nav > li > a {
    margin-top: -8px;
}

aside .uk-nav a {
    color: var(--color-text) !important;
    opacity: 0.7;
    font-size: var(--font-size-md);
}

aside .uk-nav .uk-nav-sub a {
    opacity: 0.4;
    margin-top: -15px;
}

aside .uk-nav .uk-nav-sub ul {
    margin-top: -5px;
}

aside .uk-nav .uk-nav-sub .uk-parent {
    margin-bottom: -5px;
}


aside .uk-nav .uk-nav-sub a {
    border-left: 2px solid;
    margin-left: -15px;
    font-size: var(--font-size-sm);
    font-weight: 300;
    padding: 8px 0 8px 25px;
}

aside .uk-nav .uk-nav-sub ul li a {
    border-left: 2px solid;
    margin-left: -30px;
    font-size: var(--font-size-sm);
    font-weight: 300;
    padding: 8px 0 8px 50px;
}

aside .uk-nav .uk-nav-sub .uk-nav-sub ul li a {
    margin-left: -45px;
    padding: 8px 0 8px 75px;
}

aside .uk-nav .uk-nav-sub .uk-nav-sub .uk-nav-sub ul li a {
    margin-left: -60px;
    padding: 8px 0 8px 100px;
}

aside .uk-nav .uk-nav-sub .uk-nav-sub .uk-nav-sub .uk-nav-sub ul li a {
    margin-left: -75px;
    padding: 8px 0 8px 125px;
}

aside .uk-nav .uk-nav-sub .uk-active a {
    border-left: 2px solid var(--color-text);
}

aside .uk-nav .uk-parent > a::after {
    background-image: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M12.7270006,3.68663679 C13.1062197,3.28512543 13.0881482,2.6522184 12.6866368,2.27299937 C12.2851254,1.89378034 11.6522184,1.91185185 11.2729994,2.31336321 L2.77268886,11.3133632 C2.40871099,11.6987375 2.4086868,12.3011749 2.77263373,12.6865784 L11.2729442,21.6880264 C11.652131,22.0895682 12.2850366,22.1076905 12.6865784,21.7285038 C13.0881202,21.349317 13.1062426,20.7164114 12.7270558,20.3148696 L4.87515196,12.0000552 L12.7270006,3.68663679 Z"/></svg>');
    width: 14px;
    height: 14px;
    float: right;
    margin-top: 8px;
}

aside .uk-nav .uk-parent.uk-open > a::after {
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 25.93 25.93" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M25.397,4.554h-2.042l-9.974,12.644c-0.101,0.124-0.256,0.197-0.416,0.197c-0.164,0-0.315-0.073-0.419-0.197L2.575,4.554        H0.532c-0.206,0-0.392,0.115-0.479,0.299c-0.09,0.184-0.064,0.403,0.06,0.561l12.435,15.762c0.104,0.125,0.255,0.2,0.419,0.2        c0.16,0,0.315-0.075,0.416-0.2L25.816,5.413c0.128-0.157,0.148-0.377,0.058-0.561C25.789,4.669,25.601,4.554,25.397,4.554z"/></svg>');
    width: 12px;
    height: 12px;
    float: right;
    margin-right: 3px;
    margin-top: 8px;
}

aside .uk-nav .uk-nav-sub .uk-parent > a::after {
    content: '';
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 25.93 25.93" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M25.397,4.554h-2.042l-9.974,12.644c-0.101,0.124-0.256,0.197-0.416,0.197c-0.164,0-0.315-0.073-0.419-0.197L2.575,4.554        H0.532c-0.206,0-0.392,0.115-0.479,0.299c-0.09,0.184-0.064,0.403,0.06,0.561l12.435,15.762c0.104,0.125,0.255,0.2,0.419,0.2        c0.16,0,0.315-0.075,0.416-0.2L25.816,5.413c0.128-0.157,0.148-0.377,0.058-0.561C25.789,4.669,25.601,4.554,25.397,4.554z"/></svg>');
    width: 12px;
    height: 12px;
    float: right;
    margin-right: 3px;
    margin-top: 8px;
}

aside .uk-nav .uk-active > a, aside .uk-nav .uk-open > a {
    color: var(--color-text) !important;
    opacity: 1;
}


aside .uk-nav .uk-open > a.uk-active, aside .uk-nav a:hover, aside .uk-nav a:active, aside .uk-nav a:focus {
    opacity: 1;
    color: var(--color-text) !important;
}

aside hr {
    border-top: 1px solid var(--color-text);
    opacity: 0.6;
}

aside .color-box {
    width: 28px;
    height: 12px;
    display: inline-block;
    margin-left: 5px;
}

.scrollspy {
    width: 250px;
    position: fixed;
    right: 40px;
    top: 130px;
    max-height: calc(100vh - 150px);
    overflow: scroll;
    z-index: 1002;
}

.scrollspy .uk-nav > .spy-item > a {
    border-left: 1px dotted;
    padding-left: 30px;
    line-height: 18px;
    margin: 1px 0;
}

.scrollspy .uk-nav > .spy-item.uk-active > a {
    border-left: 2px solid;
}

.scrollspy .uk-nav-divider {
    margin: 15px 0;
}

.menu-btn-scrollspy {
    position: fixed;
    right: -62px;
    top: 320px;
    padding: 10px;
    background: var(--color-base);
    color: var(--color-text);
    border-radius: 6px;
    transform: rotate(-90deg);
    line-height: 12px;
    padding-bottom: 15px;
    display: none;
    cursor: pointer;
    z-index: 1002;
}

header {
    display: flex;
    position: fixed;
    width: calc(100% - 320px);
    left: 320px;
    justify-content: space-between;
    height: 70px;
    align-items: center;
    padding: 0 30px;
    z-index: 1005;
    background: white;
    border-bottom: 1px solid #e2dede;
}

header .links {
    flex-grow: 1;
}

header .links a {
    margin-right: 40px;
    color: #999999;
}

header .search {
    margin-top: 40px;
    margin-bottom: 40px;
}

header.uk-light .search-result {
    background-color: #222323 !important;
    border-color: #404040;
}

header.uk-light .search-result a {
    background-color: #101010 !important;
}

header .search .uk-search-default {
    width: 100%;
}

.search-result {
    display: none;
    position: fixed;
    top: 60px;
    right: 30px;
    border: 1px solid var(--color-text);
    padding: 10px;
    max-height: 400px;
    overflow-y: scroll;
    z-index: 10000;
    background: white;
    border: 1px solid    #e2dede;
    width: 400px;
}

.search-result div {
    display: flex;
    flex-direction: column;
}

.search-result a {
    padding: 4px 8px;
    background: #f8f8f8;
    width: 100%;
    color: #333;
    margin: 5px 0;
}

.search-result a:hover {
    text-decoration: none;
}

.search-result strong {
    font-weight: 600;
}

pre {
    padding: 4px;
}

.uk-light pre {
    border-color: #333;
    background-color: #1f1f1f;
}

.uk-light .uk-alert-primary {
    background: #091929;
    color: #0c4277;
}

.credit {
    position: fixed;
    bottom: 0;
    background: var(--color-text);
    opacity: 0.2;
    width: 320px;
    left: 0;
    padding: 0 5px;
    text-align: center;
}

.credit:hover {
    opacity: 0.4;
}


.credit a {
    padding: 0;
    margin: 0;
    font-size: var(--font-size-xs);
}

.path {
    margin-bottom: 60px;
}

.path .path-url .root {
    margin-left: 10px;
}

.path .path-url .link {
    color: #10b3d6;
}

.path .keyword {
    color: #7ec699;
}

.path .gray {
    color: #847d7d;
}

.path .red {
    color: #f44336;
}

.path table {
    border: 1px solid #dbe1e4;
    margin-top: 10px;
    margin-bottom: 20px;
}

.path table tr td:first-of-type {
    width: 150px;
}

.path table tr td:first-of-type span {
    font-size: 14px;
}

.path .path-url a {
    float: right;
    text-decoration: none;
    color: var(--color-base);
}

.path div > p {
    margin-bottom: 0;
    
}

.btn-left-menu {
    display: none;
    margin-right: 40px;
}

.btn-right-menu {
    display: none;
    margin-left: 40px;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

.buttons a:hover {
    text-decoration: none;
}

.buttons .button {
    display: flex;
    justify-content: space-between;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    width: calc(50% - 15px);
    align-items: center;
    cursor: pointer;
}

.buttons .button-left p, .buttons .button-left h3 {
    text-align: right;
}

.buttons .button div h3 {
    font-size: 16px;
    padding: 0;
    margin: 0;
}

.buttons .button div p {
    padding: 0;
    margin: 0;
    color: #999;
}

.buttons .button-left img {
    padding-right: 10px;
}

.buttons .button-right img {
    padding-left: 10px;
}

.uk-alert {
    padding: 10px 8px 10px 40px;
}

.uk-alert .uk-icon {
    position: absolute;
    top: 14px;
    left: 10px;
}

.uk-alert p {
    font-size: 16px;
    margin-top: 0;
}

.uk-alert p:empty {
    display: none;
}

header.uk-light {
    border-bottom: 1px solid #969696;
}

main.uk-light > p {
    color: rgba(255,255,255,0.8);
}

.scrollspy.uk-light {
    background-color: #222323;
}

aside.dark {
    background-color: #141518;
}

.uk-notification > div {
    background-color: #efefef;
}

@media all and (max-width: 1350px) and (min-width: 1050px) {
    main {
        left: 300px;
        padding: 40px 80px;
        width: calc(100% - 300px);
    }

    .scrollspy + main {
        padding-right: 300px;
    }

    .scrollspy {
        width: 240px;
        right: 20px;
        top: 120px;
    }

    aside {
        width: 300px;
    }

    header {
        width: calc(100% - 300px);
        left: 300px;
    }
}

@media all and (max-width: 1050px) {
    .btn-left-menu {
        display: inline-block;
    }

    main {
        left: 0;
        padding: 30px 40px;
        width: 100%;
    }

    .scrollspy + main {
        padding-right: 290px;
    }

    .scrollspy {
        width: 240px;
        right: 10px;
        top: 120px;
    }

    aside {
        left: -320px;
    }

    header {
        width: 100%;
        left: 0;
    }

    .scrollspy .uk-nav > .spy-item > a {
        padding-left: 20px;
    }
}

@media all and (max-width: 800px) {
    .links {
        display: none;
    }

    .search {
        flex-grow: 1;
    }

    .btn-right-menu {
        display: inline-block;
    }

    .search-result {
        right: auto !important;
    }
}

@media all and (max-width: 680px) {
    .scrollspy {
        background: white;
        padding: 20px;
        box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
        width: 260px;
        right: -260px;
    }

    main {
        padding-right: 40px;
    }

    .scrollspy + main {
        padding-right: 40px;
    }

    .menu-btn-scrollspy {
        display: block;
    }

    .search-result {
        width: calc(100% - 180px) !important;
        left: 90px;
    }
}

@media all and (max-width: 450px) {
    main {
        padding: 10px 20px;
    }

    .scrollspy + main {
        padding: 10px 20px;
    }

    .menu-btn-scrollspy {
        right: -65px;
        padding: 7px 10px;
        line-height: 12px;
    }

    .search-result {
        width: calc(100% - 20px) !important;
        left: 10px;
    }
}

@media all and (min-width: 1051px) {
    h1 > a:before,
    h2 > a:before,
    h3 > a:before {
        content: "#";
        position: absolute;
        color: #999;
    }

    main .buttons h3 > a:before {
        content: "";
    }
}