::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    min-height: 0px;
    background-clip: content-box;
    box-shadow: 0 0 0 5px rgba(100, 100, 100, 0.5) inset;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 0px solid transparent;
}

/* Layout for search container */
.search {
    position: relative;
    text-align: center;
}

.js .search {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.js .search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.3);
}

.search__inner {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
    background: #f0f0f0;
}

.search__inner--up {
    color: #dce6e6;
    background: #2d3535;
}

.search__inner--down {
    top: 50%;
    color: #dce6e6;
    background: #22d2d2;
}

.btn--search-close {
    font-size: 2em;
    position: absolute;
    z-index: 100;
    top: 1.25em;
    right: 1.25em;
    display: none;
}

.js .btn--search-close {
    display: block;
}

.search__form {
    width: 75%;
    max-width: 900px;
    margin: 0 auto;
}

.search__input {
    font-family: inherit;
    font-size: 7vw;
    line-height: 1;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    padding: 0 0 0.1em 0;
    color: inherit;
    border-bottom: 4px solid;
}

.search__input::-webkit-input-placeholder {
    opacity: 0.1;
    /* WebKit, Blink, Edge */
    color: #fff;
}

.search__input::-moz-placeholder {
    opacity: 0.1;
    /* Mozilla Firefox 19+ */
    color: #fff;
}

.search__input:-ms-input-placeholder {
    opacity: 0.1;
    /* Internet Explorer 10-11 */
    color: #fff;
}

.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.search__input::-ms-clear {
    display: none;
}

.search__info {
    font-size: 90%;
    font-weight: bold;
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0.85em 0;
    text-align: right;
}

.search__related {
    display: flex;
    width: 75%;
    height: 70%;
    max-width: 80%;
}

.search__suggestion {
    padding: 0 1em 0 0;
    text-align: left;
}

.search__suggestion:last-child {
    padding: 0 0 0 7em;
}

.search__suggestion h3 {
    font-size: 1.35em;
    margin: 0;
}

.search__suggestion h3::before {
    content: '\21FE';
    display: inline-block;
    padding: 0 0.5em 0 0;
}

.search__suggestion p {
    font-size: 1.15em;
    line-height: 1.4;
    margin: 0.75em 0 0 0;
}

/************************/
/* Transitions 			*/
/************************/

.js .main-wrap {
    transition: transform 0.6s, opacity 0.6s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.js .main-wrap--hide {
    opacity: 0;
    transform: scale3d(0.8, 0.8, 1);
}

.js .search {
    pointer-events: none;
}

.js .search--open {
    pointer-events: auto;
}

.js .search::before {
    opacity: 0;
    transition: opacity 0.6s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.js .search--open::before {
    opacity: 1;
}

/* Search button */
.btn--search {
    transition: opacity 0s;
}

.main-wrap--hide .btn--search {
    opacity: 0;
    transition-delay: 0s;
}

/* Close button */
.btn--search-close {
    opacity: 0;
    transform: scale3d(0.8, 0.8, 1);
    transition: opacity 0.6s, transform 0.6s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.search--open .btn--search-close {
    color: #fff;
    opacity: 1;
    transform: scale3d(1, 1, 1);
}

/* Halfs */
.js .search__inner {
    transition: transform 0.6s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.js .search__inner--up {
    transform: translate3d(0, -100%, 0);
}

.js .search__inner--down {
    transform: translate3d(0, 100%, 0);
}

.js .search--open .search__inner {
    transform: translate3d(0, 0, 0);
}

.js .search__suggestion {
    transform: translate3d(0, 150px, 0);
    transition: transform 1s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.js .search--open .search__suggestion {
    transform: translate3d(0, 0, 0);
    transition-delay: 0.05s;
}

.js .search--open .search__suggestion:last-child {
    transition-delay: 0.1s;
}

@media screen and (max-width: 40em) {
    .btn--search-close {
        font-size: 1.25em;
    }

    .search__suggestion h1 {
        padding-top: 20px;
        margin-bottom: 0px !important;
    }

    .search__suggestion .cl {
        margin-top: 8px;
    }

    .search__suggestion {
        width: 100%;
    }

    .search__suggestion:last-child {
        /* display: none; */
    }

    .search__related {
        display: flex;
        width: 100%;
        height: 100%;
    }

    .search__suggestion:last-child {
        padding: 0px;
    }

    .search__suggestion .cl a {
        margin: 0 0 5px 0;
    }
}

/* Buttons */
.btn {
    margin: 0;
    padding: 0;
    cursor: pointer;
    border: none;
    background: none;
}

.btn:focus {
    outline: none;
}

.btn--search {
    font-size: 1.5em;
}

.btn--hidden {
    pointer-events: none;
    opacity: 0;
}


/* Reset Search Input */

.search__input {
    border: 0;
    background: transparent;
    border-radius: 0;
    -webkit-appearance: none;
}

.search__input:focus {
    outline: none;
}


/* Links */
.hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
}


/* Icons */

.icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
    margin: 0 auto;
    fill: currentColor;
}


/* Header */

.codrops-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 2.5em 2.75em 2.5em 1.5em;
    text-align: left;
}

.codrops-header__title {
    font-size: 1em;
    margin: 0;
    padding: 0 0.75em;
}

.codrops-header__side,
.search-wrap {
    margin: 0 0 0 auto;
}


/* Bottom nav */

.bottom-nav {
    position: relative;
    width: 100%;
    margin: auto 0 0 0;
    padding: 2.5em 2.75em 2.5em 2em;
}


/* Demo links */

.codrops-demos {
    font-weight: bold;
    padding: 1.25em 0;
    text-align: right;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.codrops-demos span {
    display: inline-block;
    margin: 0 1em 0 0;
    vertical-align: bottom;
}

.codrops-demos a {
    position: relative;
    display: inline-block;
    margin: 0 0.1em;
    padding: 0 0.4em;
}

.codrops-demos a.current-demo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.25em;
    height: 2.25em;
    margin: -1.125em 0 0 -1.125em;
    border: 2px solid;
    border-radius: 50%;
}


/* Top Navigation Style */

.codrops-links {
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.codrops-links::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    width: 2px;
    height: 70%;
    opacity: 0.1;
    background: currentColor;
    transform: rotate3d(0, 0, 1, 22.5deg);
}

.codrops-icon {
    display: inline-block;
    margin: 0.5em;
    padding: 0.5em;
}


/* Deco lines */

.decolines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.decoline {
    position: absolute;
    width: 1px;
    height: 100%;
    background: #ddd;
}

.decoline:first-child {
    right: 88em;
}

.decoline:nth-child(2) {
    right: 68em;
}

.decoline:nth-child(3) {
    right: 48em;
}

.decoline:nth-child(4) {
    right: 28em;
}

.decoline:nth-child(5) {
    right: 8em;
}

@media screen and (max-width: 40em) {
    .codrops-header {
        display: block;
        padding: 4em 1em 0;
        text-align: center;
    }

    .codrops-header__side {
        margin: 0 auto;
    }

    .codrops-links {
        font-size: 0.85em;
        margin: 0 auto;
    }

    .search-wrap {
        font-size: 0.85em;
        position: absolute;
        top: 2.15em;
        right: 2em;
    }

    .bottom-nav {
        padding: 0.5em;
    }

    .codrops-demos {
        text-align: center;
    }

    .codrops-demos a {
        margin-bottom: 1em;
    }

    .codrops-demos span {
        display: block;
        margin: 0 auto 1em;
        text-align: center;
    }
}