* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    font-family: "CodeProLC", sans-serif;
}

@font-face {
    font-family: "CodeProLC";
    src: url(../fonts/CodeProLC.otf) format("truetype");
}

body {
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
}

body {
    background-color: #222;
}

/**/

.screen{
    width: 100vw;
    height: 100vh;
}

/**/

.vk{
    background-image: url(../img/vk.png);
}

.github{
    background-image: url(../img/github.png);
}

.instagram{
    background-image: url(../img/instagram.png);
}

.twitter{
    background-image: url(../img/twitter.png);
}

.dev{
    background-image: url(../img/dev.png);
}

.social_button{
    background-size: 60%;
    width: 40px;
    height: 40px;
    background-position: center, center;
    background-repeat: no-repeat;
    border-bottom: solid 3px transparent;
    display: inline-block;
    cursor: pointer;
}

.social_button:hover{
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: solid 3px #fff;
}

.social_buttons_wrap{
    position: fixed;
    bottom: 0;
    right: 16px;
    height: 40px;
}

/**/

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main_img {
    position: absolute;
    width : 100%;
    height : 100%;
    top: 0;
    left : 0;
    background-position: center, center;
    background-size: cover, cover;
    background-image: url(../img/background.jpg), url(../img/background.min.jpg);
}

.box .glitch {
    color: #fff;
    content: "GLUSCHENKO.NET";
    font-family: "CodeProLC", sans-serif !important;
    font-weight: 600;
    font-size: 65px;
    position: relative;
    padding: 30px;
}

@media screen and (max-width: 600px) {
    .glitch { transform: scale(0.5); }
}

@media screen and (max-width: 300px) {
    .glitch { transform: scale(0.25); }
}

.box .glitch:before, .box .glitch:after {
    content: "GLUSCHENKO.NET";
    color: #fff;
    position: absolute;
    top: 0;
    overflow: hidden;
    padding: 30px;
}

.box .glitch:before {
    left: 2px;
    text-shadow: -2px 0 red;
    animation: glitch-before 2s linear 0s infinite alternate;
}
.box .glitch:after {
    left: -2px;
    text-shadow: -2px 0 blue;
    animation: glitch-after 2s linear 0s infinite alternate;
}

@keyframes glitch-before {
    0% {clip: rect(47px, 600px, 68px, 30px);}
    5% {clip: rect(121px, 600px, 111px, 30px);}
    10% {clip: rect(76px, 600px, 129px, 30px);}
    15% {clip: rect(23px, 600px, 71px, 30px);}
    20% {clip: rect(27px, 600px, 79px, 30px);}
    25% {clip: rect(72px, 600px, 109px, 30px);}
    30% {clip: rect(122px, 600px, 96px, 30px);}
    35% {clip: rect(4px, 600px, 48px, 30px);}
    40% {clip: rect(130px, 600px, 118px, 30px);}
    45% {clip: rect(129px, 600px, 56px, 30px);}
    50% {clip: rect(42px, 600px, 126px, 30px);}
    55% {clip: rect(145px, 600px, 7px, 30px);}
    60% {clip: rect(68px, 600px, 122px, 30px);}
    65% {clip: rect(93px, 600px, 32px, 30px);}
    70% {clip: rect(148px, 600px, 15px, 30px);}
    75% {clip: rect(49px, 600px, 12px, 30px);}
    80% {clip: rect(79px, 600px, 40px, 30px);}
    85% {clip: rect(63px, 600px, 80px, 30px);}
    90% {clip: rect(131px, 600px, 83px, 30px);}
    95% {clip: rect(127px, 600px, 8px, 30px);}
    100% {clip: rect(54px, 600px, 148px, 30px);}
}
@keyframes glitch-after {
    0% {clip: rect(136px, 600px, 122px, 30px);}
    5% {clip: rect(48px, 600px, 51px, 30px);}
    10% {clip: rect(4px, 600px, 128px, 30px);}
    15% {clip: rect(65px, 600px, 92px, 30px);}
    20% {clip: rect(89px, 600px, 66px, 30px);}
    25% {clip: rect(36px, 600px, 23px, 30px);}
    30% {clip: rect(25px, 600px, 13px, 30px);}
    35% {clip: rect(131px, 600px, 115px, 30px);}
    40% {clip: rect(8px, 600px, 74px, 30px);}
    45% {clip: rect(96px, 600px, 6px, 30px);}
    50% {clip: rect(9px, 600px, 52px, 30px);}
    55% {clip: rect(20px, 600px, 81px, 30px);}
    60% {clip: rect(116px, 600px, 11px, 30px);}
    65% {clip: rect(130px, 600px, 19px, 30px);}
    70% {clip: rect(15px, 600px, 93px, 30px);}
    75% {clip: rect(39px, 600px, 126px, 30px);}
    80% {clip: rect(40px, 600px, 51px, 30px);}
    85% {clip: rect(83px, 600px, 74px, 30px);}
    90% {clip: rect(7px, 600px, 103px, 30px);}
    95% {clip: rect(41px, 600px, 137px, 30px);}
    100% {clip: rect(12px, 600px, 144px, 30px);}
}

/**/

*, *:after, *:before {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #fff;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Popup panel */

.popup_buttons_container{
    position: absolute;
    bottom: 15%;
    left: 50%;
    display: inline-block;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

@media screen and (max-width: 600px){
    .popup_buttons_container{
        zoom: .8;
    }
}

@media screen and (max-width: 300px){
    .popup_buttons_container{
        zoom: .6;
    }
}

.popup_button{
    cursor: pointer;
    display: inline-block;
    line-height: 40px;
    padding: 0 30px;
    margin: 0 10px;
    background-color: #aaae;
    background-repeat: no-repeat;
    font-size: 15px;
    font-family: sans-serif;
    color: white;
    border-radius: 50px;
    box-shadow: 2px 2px 8px 2px #3338;

    transform: translate(0, 0);
    transition-property: background-color, transform, box-shadow;
    transition-duration: .5s;
}

.popup_button:hover{
    transform: translate(0, -5px);
    box-shadow: 2px 10px 12px 2px #3338;
}

.popup_button.code { background-image: url(../img/code.png); background-size: 20px; background-position: 7px 15px; }
.popup_button.code:hover { background-color: #e84c3d; }
.popup_button.design { background-image: url(../img/design.png); background-size: 74px; background-position: 60px 0; }
.popup_button.design:hover{ background-color: #3598db; }
.popup_button.gallery { background-image: url(../img/gallery.svg); background-size: 43px; background-position: 89px -11px; }
.popup_button.gallery:hover{ background-color: #2dcc70;}

/**/

.popup_container{
    overflow: hidden;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 90%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 4px 8px 16px #0003;

    animation: popup .3s;
}

@keyframes popup {
    0%{ transform: translateX(-50%) translateY(100%); }
    100%{ transform: translateX(-50%); }
}

@media screen and (max-width: 600px) {
    .popup_container{
        width: 100%;
    }
}

.popup_panel{
    height: 100%;
    background-color: #555;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-sizing: border-box;
    padding-top: 25px;

    animation: popup_panel .3s;
}

.popup_panel:before{
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 3;
}

.popup_head{
    background-color: #5A5A5A;
    z-index: 2;
    position: absolute;
    top: 0;
    width: 100%;
    padding-top: 30px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.popup_overlay{
    z-index: -1;
    position: absolute;
    top: 71px;
    width: 100%;
    height: 100%;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)))
{
    .popup_panel{
        background-color: #555C;
    }

    .popup_head{
        background-color: #5A5A5A99;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .popup_overlay{
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Misc */

.header{
    color: white;
    font-size: 15px;
    padding: 16px;
}

.chart_box{
    background-color: white;
    border-radius: 10px;
    border: solid 1px #eee;
    box-sizing: border-box;
    padding: 0 8px;
    margin: 9px;
    overflow: hidden;
}

/* Activity line */

.activity{
    padding: 16px;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    -webkit-mask-image: -webkit-gradient(linear, left bottom, right bottom, from(rgba(0,0,0,0)), color-stop(10%, rgba(0,0,0,1)));
}

.activity .column{
    display: inline-block;
    margin: 1px;
    vertical-align: top;
}

.activity .item{
    background: #AAA;
    width: 14px;
    height: 14px;
    line-height: 14px;
    border-radius: 2px;
    text-align: center;
    /*border: solid #AAA 1px;*/
    box-sizing: border-box;
    font-size: 8px;
    margin: 2px 0;
    position: relative;
}

.activity .item:hover{
    box-shadow: 0 0 0 1px #FFF;
}

.activity .item.month:after{
    content: attr(data-text);
    display: block;
    position: absolute;
    font-size: 10px;
    top: -18px;
    left: 0;
    color: #DDD;
}

/* Graphs */

.activity_graph{
    height: 150px;
    padding: 0 16px;
    display: flex;
}

.activity_graph_item_parent{
    flex-grow: 1;
}

.activity_graph_item_parent:hover{
    background-color: #FFF1;
}

.activity_graph_item{
    border-radius: 2px;
    background-color: #3E3;
    padding-top: 1px;
    margin-right: 1px;
    box-sizing: border-box;
    width: calc(100% - 1px);

    animation: activity_anim .6s;
}

@keyframes activity_anim {
    0%{ opacity: 0; }
    100%{ opacity: 1; }
}

/* Tooltip */

/*.tooltip{
    position: relative;
}

.tooltip::before {
    font-family: sans-serif;
    font-size: 12px;
    line-height: initial;
    padding: 5px;
    border-radius: 4px;
    color: #fff;
    display: block;
    position: absolute;
    text-align: left;
    background-color: #000A;
    z-index: 10;
    pointer-events: none;

    content: attr(data-tooltip);

    top: -30px;
    transform: translateX(calc(-100% + 30px));

    white-space: nowrap;
    visibility: hidden;

    animation: tooltip_anim .3s;
}

.tooltip:hover::before {
    visibility: visible;
}

@keyframes tooltip_anim {
    0%{ opacity: 0; }
    100%{ opacity: 1; }
}*/



/* Projects List */

.projects_list {
    padding-top: 4px;
    padding-bottom: 4px;
}

.projects_list .item {
    display: flex;
    align-content: flex-start;
    vertical-align: top;
    padding: 10px 14px;
    border-bottom: solid 1px #FFF3;
}

.projects_list .icon {
    color: rgba(0, 0, 0, 0.15);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 33%;
    font-family: sans-serif;
    font-size: 30px;
    text-align: center;
    box-shadow: 1px 1px 2px #0003;
    background-size: cover;
    background-position: center center;

    margin-right: 15px;
}

@media screen and (max-width: 500px){
    .projects_list .item{
        zoom: 0.7;
    }
}

@media screen and (max-width: 300px){
    .projects_list .item{
        zoom: 0.6;
    }
}

.projects_list .title {
    color: white;
    text-shadow: 1px 1px 2px #0006;
    font-family: sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
}

.projects_list .title:after {
    content: attr(data-value);
    border: solid 1px #FFFFFF;
    box-shadow: 1px 1px 2px #0003;
    border-radius: 8px;
    margin-left: 8px;
    padding: 2px 4px;
    font-size: 12px;
    white-space: nowrap;
}

.projects_list .lang_thumb {
    display: inline-block;
    line-height: 18px;
    font-size: 11px;
    background-color: #333;
    text-shadow: 1px 1px 2px #0006;
    color: #fff;
    margin: 2px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 10px;
    box-shadow: 1px 1px 2px #0003;
    font-family: sans-serif;
    cursor: default;
}
.projects_list .lang_thumb:hover {
    box-shadow: 0 0 0 3px #eee;
}

.projects_list .lang_thumb:after {
    content: attr(data-value);
    border-left: solid 1px #FFF5;
    font-size: 9px;
    display: inline-block;
    margin-left: 4px;
    padding-left: 4px;
    white-space: nowrap;
}

.projects_list .description {
    color: white;
    text-shadow: 1px 1px 2px #0006;
    font-family: sans-serif;
    font-style: italic;
    font-size: 12px;
    margin-top: 10px;
}

.projects_list .link {
    color: #FFF;
    text-decoration: none;
    display: inline-block;
    font-family: sans-serif;
    text-shadow: 1px 1px 1px #0006;
    padding: 2px 4px;
    margin: 2px;
    font-size: 13px;
    border-radius: 7px;
}

.projects_list .link:hover {
    background-color: #ff9a00;
}

.projects_list .link:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: text-top;
    background-image: url(../img/link.svg);
    background-size: 100%;
    background-position: center center;
    margin-right: 5px;
}

.projects_list .pie {
    border-radius: 100%;
    box-shadow:
            0 0 0 2px #FFFA,
            0 0 0 7px #FFFA inset,
            1px 1px 2px 2px #0003;

    text-shadow: 1px 1px 2px #0006;
    background-color: #0002;
    font-family: sans-serif;
    font-size: 20px;
}

/* Tabs */
.tabContainer{
    text-align: center;
    border-bottom: solid 1px rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 5px #0001;
}

.tab{
    cursor: pointer;
    user-select: none;
    text-align: center;
    display: inline-block;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 5px;
    margin-right: 5px;
    line-height: 40px;
    border-radius: 5px 5px 0 0;
    font-size: 15px;
    font-family: sans-serif;
    color: white;
    position: relative;

    transition-property: background-color;
    transition-duration: .2s;
}

.tabSelected:after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px 4px 0 0;

    animation: tab_selection_anim .25s;
}

.tabPage{
    animation: tab_page_anim .33s;

    position: absolute;
    top: 0;
    padding-top: 71px;

    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
}

@keyframes tab_page_anim {
    0% { opacity: 0; }
    100%{ opacity: 100%; }
}

@keyframes tab_selection_anim {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Rounded tab */

.activityTabs{
    padding: 16px;
    text-align: center;
}

.activityTab{
    cursor: pointer;
    user-select: none;
    text-align: center;
    display: inline-block;
    padding: 0 10px;
    margin: 3px 6px;
    line-height: 24px;
    border-radius: 8px;
    font-size: 12px;
    font-family: sans-serif;
    color: white;
    position: relative;
    background-color: #FFF2;

    transition-property: background-color;
    transition-duration: .2s;
}

.activityTabSelected{
    background-color: #FFF6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-corner{
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
}

/* SELECTION */

::selection {
    color: #000;
    background: rgba(255, 225, 0, 0.9);
}

::-moz-selection {
    color: #000;
    background: rgba(255, 225, 0, 0.9);
}

/* Fonts */
* {
    font-family: "Arial" !important;
}

@font-face {
    font-family: "Arial";
    src: url(../fonts/CorsicaLX-Regular.otf) format("truetype");
}