﻿.loader {
    border: 2px solid #FFF;
    width: 20px;
    height: 20px;
    background: #3a94b2;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 2s linear infinite;
    opacity: 1;
}

    .loader::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 50%;
        top: 50%;
        border: 7px solid;
        border-color: transparent #FFF;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.btn .loader {
    position: absolute;
    line-height: 0;
    margin-left: -2px;
}

}

*, :after, :before {
    box-sizing: border-box
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

    ::-webkit-scrollbar:hover {
        width: 18px;
        background: #0004
    }

::-webkit-scrollbar-track:hover {
    background: #0001
}

::-webkit-scrollbar-track {
    background: #263038
}

::-webkit-scrollbar-thumb {
    background: #ff3d00
}

    ::-webkit-scrollbar-thumb:hover {
        background: #fff
    }

body {
    margin: 0;
    background: #263038;
    font-family: Arial,Helvetica,sans-serif
}

    body > img {
        display: none
    }

    body.pop {
        overflow: hidden
    }

header {
    background: #0d161b;
    padding: 10px 20px;
    min-height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10
}

    header nav {
        display: flex;
        align-items: center;
        justify-content: center
    }

        header nav .nav-btn {
            display: inline-block;
            width: 32px;
            height: 32px;
            background-color: #fff;
            background-repeat: no-repeat;
            background-size: 110% auto;
            background-position: center;
            border-radius: 50%
        }

            header nav .nav-btn.git {
                background-image: url(../images/git.png)
            }

            header nav .nav-btn.codepen {
                background-image: url(../images/codepen.png)
            }

            header nav .nav-btn + .nav-btn {
                margin-left: 10px
            }

.brand {
    color: #fff;
    font-size: 32px;
    display: inline-block;
    position: relative
}

    .brand::after {
        content: '';
        position: absolute;
        left: 20px;
        bottom: 7px;
        border: 3px solid #fff;
        border-bottom-color: #ff3d00;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        animation: brandRotation .6s linear infinite
    }

@keyframes brandRotation {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

#main {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between
}

    #main .section {
        min-width: 200px;
        width: 33.33%;
        height: 360px;
        padding: 10px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ccc;
        cursor: pointer;
        transition: .2s linear
    }

        #main .section:nth-child(2n+1) {
            background: rgba(0,0,0,.1)
        }

        #main .section:hover {
            background: rgba(0,0,0,.3)
        }

@media (max-width: 768px) {
    #main .section {
        width: 50%
    }
}

@media (max-width: 480px) {
    #main .section {
        width: 100%
    }
}

footer {
    background: #0d161b;
    padding: 15px;
    text-align: center;
    color: #ccc;
    width: 100%;
    font-size: 12px
}

    footer a {
        font-size: 16px;
        color: #fff;
        transition: .2s ease;
        text-decoration: none;
        display: inline-block;
        position: relative
    }

        footer a:active, footer a:hover {
            color: #fff;
            transform: scale(1.15)
        }

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto
}

    .overlay.in {
        visibility: visible;
        opacity: 1
    }

.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    line-height: 20px;
    height: 20px;
    width: 20px;
    font-size: 26px;
    font-weight: 400;
    padding: 0;
    background: #eee;
    border: none;
    outline: 0;
    cursor: pointer
}

.popup {
    position: relative;
    transform: translateY(-20px);
    background: #fff;
    padding: 20px 15px;
    max-width: 600px;
    min-height: 400px;
    margin: 20px auto;
    width: 100%;
    transition: .2s ease-in
}

.in .popup {
    transform: translateY(10px)
}

.showcase {
    background: #263038;
    margin-bottom: 15px
}

    .showcase .section {
        width: 100%;
        height: 300px;
        padding: 10px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center
    }

.code-area .code-header {
    padding: 5px 10px;
    background: #222;
    color: #fff;
    font-size: 14px;
    position: relative
}

.code-area + .code-area {
    margin-top: 10px
}

.copy {
    outline: 0;
    border: none;
    background: #000;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    padding: 3px 8px;
    cursor: pointer;
    user-select: none
}

    .copy::before {
        content: '';
        display: inline-block;
        width: 10px;
        height: 12px;
        border: 1px solid #fff;
        box-shadow: 2px -2px #000,3px -3px;
        margin-right: 8px;
        position: relative;
        top: 3px
    }

code {
    background: #000;
    padding: 5px 10px;
    display: block;
    white-space: pre;
    color: #03a9f4;
    min-height: 30px;
    font-size: 14px;
    line-height: 18px
}

#markup {
    color: #f4a003
}

#css {
    max-height: 200px;
    overflow: auto
}

div[data-id=prog-crak-erh] {
    justify-content: flex-start !important
}
