* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

#root {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column
}

body {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-family: Onest,sans-serif;
    background: #0a0a0a;
    color: #eaeaea
}

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url(/assets/noise.png) repeat;
    opacity: .25;
    pointer-events: none;
    z-index: 999
}

header {
    font-size: 17px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #121212;
    width: 760px;
    border-radius: 50px;
    padding: 12px;
    min-height: 65px;
    border: 1px solid #232323;
    overflow: hidden;
    position: relative
}

.header-nav {
    position: relative;
    display: flex;
    align-items: center
}

.burger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer
}

.header-nav .nav-link {
    position: relative;
    display: inline-block;
    color: #fff;
    background: transparent;
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
    z-index: 1;
    transition: color .3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none
}

.nav-link span {
    color: #969696
}

.header-nav .nav-link:hover {
    color: #d1d1d1
}

.active-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #282828;
    border-radius: inherit;
    z-index: -2
}

.active-glow {
    position: absolute;
    top: -5px;
    left: calc(50% - 40px);
    width: 70px;
    height: calc(100% + 10px);
    border-radius: inherit;
    background: #dedede41;
    filter: blur(15px);
    z-index: -1
}

.switchers {
    display: flex;
    flex-direction: row;
    margin-right: 5px
}

.switchers button {
    margin-right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    width: 45px;
    height: 45px;
    transition: .2s
}

.switchers button:hover {
    background: #7676764c
}

main {
    margin-top: 100px;
    display: flex;
    align-items: start;
    width: 760px;
    padding: 0 10px
}

h1 {
    font-weight: 500
}

.about {
    line-height: 28px;
    margin-top: 35px;
    color: #d0d0d0;
    font-size: 18px;
    font-weight: 400
}

.user {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    margin-bottom: 10px
}

.avatar {
    border-radius: 10px;
    margin-right: 20px;
    width: 28%;
    height: 100%
}

.contact {
    display: flex;
    flex-direction: column;
    width: 50%;
    min-height: 100%
}

.github {
    padding: 20px;
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 18px
}

.github:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,#10101094,#101010);
    pointer-events: none;
    z-index: -1
}

.github i {
    margin-right: 10px
}

.github-stats {
    padding-bottom: 20px;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between
}

.stat {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    flex-direction: column
}

.label {
    font-size: 14px;
    color: #979797
}

.telegram {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 10px;
    background: #52a1e9;
    height: 80px
}

.telegram i {
    margin-right: 6px
}

.widgets {
    width: 22%;
    border-radius: 10px;
    margin-left: 20px
}

.time-zone {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
    height: 30%;
    background: #141414
}

.zone {
    font-size: 16px;
    color: #979797
}

.location {
    border-radius: 10px;
    margin-top: 20px;
    background: #141414;
    height: calc(70% - 18px);
    width: 100%;
    background-image: url(/assets/favicon.gif);
    background-size: cover
}

footer {
    margin-top: auto;
    border-top: 1px solid #292929;
    width: 760px;
    padding: 20px 0 20px 30px;
    color: #8a8a8a;
    font-weight: 400
}

.projects {
    display: flex;
    flex-direction: column;
    width: 100%
}

.projects-desc {
    line-height: 28px;
    margin-top: 35px;
    margin-bottom: 35px;
    color: #d0d0d0;
    font-size: 18px;
    font-weight: 400
}

.project-card {
    margin: 10px 0;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    background: #1b1b1b
}

.project-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: 6px
}

.pdate,.prole {
    color: #8a8a8a
}

.description {
    margin-top: 20px
}

.subtitle {
    text-decoration: none;
    color: #a8a8a8;
    font-weight: 400;
    font-size: 18px
}

.subtitle:before {
    content: "/";
    color: #414141;
    margin-right: 8px
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 30px
}

.skill-card {
    display: flex;
    background: #1b1b1b;
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    height: 160px
}

.skill-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px
}

.skill-icon h3 {
    margin-left: 10px
}

.skill-description {
    margin-top: 6px;
    color: #bdbdbd
}

@media (max-width: 768px) {
    header {
        display:flex;
        align-items: center;
        justify-content: space-between;
        width: 90%;
        overflow: visible
    }

    .header-nav {
        display: none
    }

    .burger-btn {
        margin-left: 10px;
        display: flex;
        flex-direction: row
    }

    .mobile-menu {
        width: 80%;
        background: #121212;
        border-top: 1px solid #232323;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        overflow: hidden;
        margin-top: 222px
    }

    .mobile-nav-link {
        display: block;
        padding: 15px 20px;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid #232323;
        transition: background .3s ease
    }

    .mobile-nav-link:hover {
        background: #282828
    }

    .mobile-menu .mobile-nav-link:last-child {
        border-bottom: none
    }

    main {
        width: 90%
    }

    .user {
        flex-direction: column;
        align-items: center
    }

    .avatar {
        width: 90%;
        margin: 0
    }

    .contact {
        margin-top: 20px;
        width: 90%
    }

    .github-stats {
        padding: 40px 0 0
    }

    .widgets {
        margin-top: 20px;
        margin-left: 0;
        width: 90%
    }

    footer {
        width: 90%
    }

    .project-card div {
        font-size: 13px;
        flex-direction: column;
        align-items: start
    }

    .subtitle {
        font-size: 12px
    }

    .skills-container {
        grid-template-columns: repeat(1,minmax(0,1fr))
    }
}

body.lightTheme {
    background: #f0f0f0;
    color: #222
}

body.lightTheme header {
    background: #fff;
    border: 1px solid #ccc
}

body.lightTheme .header-nav .nav-link {
    color: #454545
}

body.lightTheme .header-nav .nav-link span {
    color: #868686
}

body.lightTheme .header-nav .nav-link:hover {
    color: #000
}

body.lightTheme .active-indicator {
    background: #e6e6e6
}

body.lightTheme .active-glow {
    background: #25252541
}

body.lightTheme .switchers button {
    color: #222;
    background: transparent
}

body.lightTheme .switchers button:hover {
    background: #e0e0e0
}

body.lightTheme .burger-btn {
    color: #222
}

body.lightTheme .mobile-menu {
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px
}

body.lightTheme .mobile-nav-link {
    color: #454545;
    border-bottom: 1px solid #ccc;
    padding: 15px 20px;
    text-decoration: none
}

body.lightTheme .mobile-nav-link:hover {
    background: #e6e6e6
}

body.lightTheme .mobile-menu .mobile-nav-link:last-child {
    border-bottom: none
}

body.lightTheme .about {
    color: #1f1f1f
}

body.lightTheme .github {
    font-weight: 600;
    color: #000
}

body.lightTheme .label {
    color: #2a2a2a
}

body.lightTheme .github:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,#f1f1f194,#e9e9e9);
    pointer-events: none;
    z-index: -1
}

body.lightTheme .time-zone {
    background: #e4e4e4
}

body.lightTheme .zone {
    color: #383838
}

body.lightTheme .location {
    background-color: #e4e4e4
}

body.lightTheme footer {
    border-color: #ccc;
    color: #404040
}

body.lightTheme .projects-desc {
    color: #2f2f2f
}

body.lightTheme .project-card {
    background: #e4e4e4
}

body.lightTheme .pdate,body.lightTheme .prole,body.lightTheme .subtitle {
    color: #525252
}

body.lightTheme .subtitle:before {
    color: #a9a9a9
}

body.lightTheme .skill-card {
    background: #fff!important;
    color: #222!important;
    border: 1px solid #ccc
}

body.lightTheme .skill-card .skill-icon h3 {
    color: #222!important
}

body.lightTheme .skill-card .skill-description {
    color: #454545!important
}
