:root {
    --bg-color: #fff;
    --text-color: #6b6b6b;
    --light-grey: #757575;
    --black: #000;
    --grad1: #fff;
    --grad2: #b0b0b0;
    --tag: #f1f1f1;
    --button-color: #000;
    --button-background: #eaeaea;
    --sm: #f1f1f1;
    --title: #000;
    --color2: #61b2a0;
    --mark: #f2f2f2;
    --shadow: #545454
}

@media (prefers-color-scheme:dark) {
    :root {
        --bg-color: #000;
        --text-color: #fff;
        --light-grey: #dedede;
        --black: #fff;
        --grad1: #000;
        --grad2: #000;
        --tag: #121212;
        --button-color: #fff;
        --button-background: #121212;
        --sm: #212121;
        --title: #fff;
        --color2: #4e8a7d;
        --mark: #474747;
        --shadow: #171717
    }
}

@font-face {
    font-family: "Circular Std Book";
    src: url(../portfolio/std-book.ttf);
    font-display: swap;
}

@font-face {
    font-family: "Circular Std Bold";
    src: url(../portfolio/std.ttf);
    font-display: swap;
}

html {
    box-sizing: border-box;
    font-family: "Circular Std Book";
    max-height: 100vh;
    max-width: 100vw
}

*,
:after,
:before {
    box-sizing: inherit
}

body {
    margin: 0;
    background-color: var(--bg-color);
    transition: background .4s ease-in-out, color .2s ease;
    position: absolute;
    width: 100%;
    height: 100%
}

.title {
    color: var(--title) !important
}

.text-grey {
    color: var(--light-grey) !important
}

.color {
    color: var(--text-color) !important
}

#grad {
    background-image: linear-gradient(var(--grad1), var(--grad2))
}

.center {
    text-align: center !important
}

.rubik {
    font-family: Rubik, sans-serif
}

.padding {
    padding: 8px !important
}

.padding-32 {
    padding-top: 32px !important;
    padding-bottom: 32px !important
}

.padding-icon {
    padding: 0 18px !important
}

a:link {
    text-decoration: none
}

input[type=checkbox][id^=checkbox] {
    display: none
}

input[type=checkbox]+label {
    content: url(Images/Dark.svg);
    margin: 9px
}

input[type=checkbox]:checked+label {
    content: url(Images/Light.svg);
    margin: 9px
}

.btn {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--sm);
    margin: 3px;
    border-radius: 30%;
    box-shadow: 0 5px 15px -5px #00000040;
    color: var(--black);
    overflow: hidden;
    position: relative;
    outline: 0
}

.btn i {
    line-height: 50px;
    font-size: 26px;
    transition: .2s linear
}

.btn:hover i {
    transform: scale(1.3);
    color: var(--sm)
}

.btn::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--black);
    transform: rotate(45deg);
    left: -110%;
    top: 90%
}

.btn:hover::before {
    animation: aaa .7s 1;
    top: -10%;
    left: -10%
}

@keyframes aaa {
    0% {
        left: -110%;
        top: 90%
    }
    50% {
        left: 10%;
        top: -30%
    }
    100% {
        top: -10%;
        left: -10%
    }
}

.line-1 {
    position: relative;
    top: 50%;
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255, 255, 255, .75);
    font-size: 180%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%)
}

.anim-typewriter {
    animation: typewriter 4s steps(32) .3s normal both, blinkTextCursor 1s steps(32) infinite normal;
    font-family: "Circular Std Book"
}

@keyframes typewriter {
    from {
        width: 0
    }
    to {
        width: 14.2em
    }
}

@keyframes blinkTextCursor {
    from {
        border-right-color: #000
    }
    to {
        border-right-color: #fff
    }
    .padding-icon {
        padding: 0 18px !important
    }
}

.card {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12)
}

.right {
    float: right !important
}

.dark {
    position: absolute;
    right: -100px;
    top: -100px
}

.mode {
    top: 18px;
    left: 10px;
    position: fixed
}

.menu-icon {
    height: 30px;
    width: 30px;
    position: fixed;
    z-index: 2;
    right: 30px;
    top: 30px;
    cursor: pointer
}

.menu-icon__line {
    height: 2px;
    width: 30px;
    display: block;
    background-color: var(--black);
    border-color: #0ff;
    margin-bottom: 4px;
    -webkit-transition: background-color .5s ease, -webkit-transform .2s ease;
    transition: background-color .5s ease, -webkit-transform .2s ease;
    transition: transform .2s ease, background-color .5s ease;
    transition: transform .2s ease, background-color .5s ease, -webkit-transform .2s ease
}

.menu-icon__line-left {
    width: 15px
}

.menu-icon__line-right {
    width: 15px;
    float: right
}

.nav {
    position: fixed;
    z-index: 1
}

.nav:after,
.nav:before {
    content: "";
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(234, 234, 234, .2);
    z-index: -1;
    -webkit-transition: -webkit-transform cubic-bezier(.77, 0, .175, 1) .8s;
    transition: -webkit-transform cubic-bezier(.77, 0, .175, 1) .8s;
    transition: transform cubic-bezier(.77, 0, .175, 1) .8s;
    transition: transform cubic-bezier(.77, 0, .175, 1) .8s, -webkit-transform cubic-bezier(.77, 0, .175, 1) .8s;
    -webkit-transform: translateX(0) translateY(-100%);
    transform: translateX(0) translateY(-100%)
}

.nav:after {
    background: var(--bg-color);
    -webkit-transition-delay: 0s;
    transition-delay: 0s
}

.nav:before {
    -webkit-transition-delay: .1s;
    transition-delay: .1s
}

.nav__content {
    z-index: 1000;
    position: fixed;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    width: 100%;
    text-align: center;
    font-size: calc(2vw + 10px);
    font-weight: 200;
    cursor: pointer;
    visibility: hidden
}

.nav__list-item {
    padding-top: 15px;
    position: relative;
    display: inline-block;
    -webkit-transition-delay: .8s;
    transition-delay: .8s;
    opacity: 0;
    -webkit-transform: translate(0, 100%);
    transform: translate(0, 100%);
    -webkit-transition: opacity .2s ease, -webkit-transform .3s ease;
    transition: opacity .2s ease, -webkit-transform .3s ease;
    transition: opacity .2s ease, transform .3s ease;
    transition: opacity .2s ease, transform .3s ease, -webkit-transform .3s ease;
    margin-right: 25px;
    color: var(--text-color)
}

.nav__list-item:before {
    content: "";
    position: absolute;
    background: var(--text-color);
    width: 20px;
    height: 1px;
    top: 100%;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    z-index: -1;
    color: var(--text-color)
}

.nav__list-item:hover:before {
    width: 100%;
    color: var(--text-color)
}

body.nav-active .menu-icon__line {
    background-color: var(--black);
    -webkit-transform: translateX(0) rotate(-45deg);
    transform: translateX(0) rotate(-45deg)
}

body.nav-active .menu-icon__line-left {
    -webkit-transform: translateX(1px) rotate(45deg);
    transform: translateX(1px) rotate(45deg)
}

body.nav-active .menu-icon__line-right {
    -webkit-transform: translateX(-2px) rotate(45deg);
    transform: translateX(-2px) rotate(45deg)
}

body.nav-active .nav {
    visibility: visible
}

body.nav-active .nav:after,
body.nav-active .nav:before {
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0)
}

body.nav-active .nav:after {
    -webkit-transition-delay: .1s;
    transition-delay: .1s
}

body.nav-active .nav:before {
    -webkit-transition-delay: 0s;
    transition-delay: 0s
}

body.nav-active .nav__list-item {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    -webkit-transition: opacity .3s ease, color .3s ease, -webkit-transform .3s ease;
    transition: opacity .3s ease, color .3s ease, -webkit-transform .3s ease;
    transition: opacity .3s ease, transform .3s ease, color .3s ease;
    transition: opacity .3s ease, transform .3s ease, color .3s ease, -webkit-transform .3s ease;
    visibility: visible
}

body.nav-active .nav__list-item:nth-child(0) {
    -webkit-transition-delay: .5s;
    transition-delay: .5s
}

body.nav-active .nav__list-item:nth-child(1) {
    -webkit-transition-delay: .6s;
    transition-delay: .6s
}

body.nav-active .nav__list-item:nth-child(2) {
    -webkit-transition-delay: .7s;
    transition-delay: .7s
}

body.nav-active .nav__list-item:nth-child(3) {
    -webkit-transition-delay: .8s;
    transition-delay: .8s
}

body.nav-active .nav__list-item:nth-child(4) {
    -webkit-transition-delay: .9s;
    transition-delay: .9s
}

a {
    -moz-transition: color .2s ease-in-out, border-bottom-color .2s ease-in-out;
    -webkit-transition: color .2s ease-in-out, border-bottom-color .2s ease-in-out;
    -ms-transition: color .2s ease-in-out, border-bottom-color .2s ease-in-out;
    transition: color .2s ease-in-out, border-bottom-color .2s ease-in-out;
    color: inherit;
    text-decoration: none
}

a:hover {
    border-bottom-color: transparent;
    color: var(--text-color)
}

a:active {
    color: var(--text-color)
}

.left {
    left: 30px;
    top: 30px
}

#to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    color: var(--text-color);
    padding: 8px 8px 10px;
    font-size: 12px;
    font-weight: 300;
    background: rgba(0, 0, 0, .2);
    border-radius: 5px;
    text-transform: lowercase;
    text-decoration: none;
    line-height: 12px;
    cursor: pointer;
    background-color: var(--mark)
}

@media (max-width:768px) {
    #to-top {
        bottom: 30px;
        right: 10px
    }
}