
:root
{
    --color-white: white;
    --color-light-white: #cecece;
    --color-black: black;
    --color-light-black: #1e1e1e;
    --color-gray: gray;
    --color-contrast: #ffe000;

    --transition-user-interaction: all 0.2s linear;
}

@font-face {
    font-family: 'Nunito';
    src: url('/fonts/Nunito/Nunito-VariableFont_wght.ttf');
}

html, body, .main {
    height: 100%;
}

body {
    margin: 0;
    font-family: Nunito, serif;
    background-color: var(--color-black);
    color: var(--color-light-white);
    min-width: 480px;
}

.button {
    cursor: pointer;
}

.main {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: auto;
}

.main .left-side {
    display: block;
    position: fixed;
    width: 300px;
    height: 100%;
    background-color: var(--color-light-black);

    z-index: 50;
    /*overflow-y: auto;*/

    transition: var(--transition-user-interaction);
}

*::-webkit-scrollbar {
    width: 10px;
    background-color: #f9f9fd;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--color-gray);
}

*::-webkit-scrollbar-track {
    background-color: var(--color-light-black);
}

.main .left-side .menu-button {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 0;
    transform: translateX(100%);
    -ms-transform: translateX(100%);
    background-color: var(--color-light-black);
}

.main .left-side .menu-button > img {
    transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    filter: revert;
}

.main .left-side.shown .menu-button > img {
    transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
}

.main .left-side .lang-switch {
    display: block;
    width: 25px;
    margin-left: 8px;
    margin-top: 8px;
}

.main .left-side .lang-switch img {
    display: block;
    width: 100%;
    opacity: 0.6;
}

.main .main-photo {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 16px auto 0;
    border-radius: 50%;
    /*border: 2px solid var(--color-black);*/
}

.main .full-name {
    text-align: center;
    margin-top: 16px;
}
.main .full-name .title {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: var(--color-white);
}
.main .full-name .desc {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-light-white);
    margin-top: 8px;
}

.main .menu {
    display: flex;
    margin-top: 42px;
    flex-direction: column;
    align-items: center;
}

.main .menu a {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: fit-content;
    color: var(--color-light-white);
    text-decoration: none;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 12px;

    transition: var(--transition-user-interaction);
}

.main .menu a:after {
    content: '';
    display: block;
    top: 100%;
    margin-top: 4px;
    width: 0;
    height: 1px;
    background-color: var(--color-contrast);

    transition: var(--transition-user-interaction);
}

.main .menu a.checked,
.main .menu a:hover {
    color: var(--color-contrast);
}

.main .menu a.checked:after,
.main .menu a:hover:after {
    width: 100%;
}

.main .content {
    margin-left: 300px;
    width: calc(100% - 300px);
    width: -moz-calc(100% - 300px);
    width: -webkit-calc(100% - 300px);
}


.block {
    width: 100%;
    min-height: 100%;
    padding: 32px;
    box-sizing: border-box;
}

.block .pre-title {
    color: var(--color-light-white);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.block .title {
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 6px;
    font-weight: bold;
}

.block .block-content.center {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: calc(100% - 51px);
    height: -moz-calc(100% - 51px);
    height: -webkit-calc(100% - 51px);
}

.block .block-content.between {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: calc(100% - 51px);
    min-height: -moz-calc(100% - 51px);
    min-height: -webkit-calc(100% - 51px);
}


.block-1 {
    display: flex;
}

/* About */
.block-about > .pre-title {
    margin-top: 48px;
}
.block-about > .title {
    margin-bottom: 48px;
}
.block-about .block-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 792px;
}

/* Education. */
.block-education .list-1 {
    margin-top: 32px;
}

.block-education .year {
    text-align: right;
    margin-top: 32px;
    font-weight: bold;
}

.list-1 .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 16px;
    margin-bottom: 4px;
    /*background-color: var(--color-gray);*/
    color: var(--color-white);
    border: 1px solid var(--color-light-white);
}

.list-1 .list-item .list-item-title > div:first-child {
    font-size: 20px;
}
.list-1 .list-item .list-item-title > div:last-child,
.list-1 .list-item .list-item-title .item-title-desc {
    font-size: 12px;
}

.list-1 .list-item .list-item-title > div:last-child {
    margin-top: 8px;
}

/* Works */

.block-works > .title {
    margin-bottom: 48px;
}
.block-works .block-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 792px;
}

.block-works .work {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 200px;
    background-color: var(--color-light-white);
    margin-bottom: 32px;
}

.block-works .work > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    filter: grayscale(1);
}

.block-works .work .cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: var(--color-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-user-interaction);
}

.block-works .work .cover > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.block-works .work .cover .work-desc {
    font-size: 18px;
    color: var(--color-white);
}

.block-works .work .cover img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.block-works .work .cover a {
    color: var(--color-white);
    font-size: 24px;
}

.block-works .work:hover > .cover {
    opacity: 1;
}

/* Skills */
.block.block-skills {
    height: 100%;
}
.block.block-skills .block-content {
    position: relative;
    width: 100%;
    height: calc(100% - 51px);
    height: -moz-calc(100% - 51px);
    height: -webkit-calc(100% - 51px);
}


.block.block-skills .skills-chart {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}



/* Blog. */
.block.block-blog {
    height: 100%;
}

.block-blog .block-content {
    display: flex;
    justify-content: space-between;
}

.block-blog .blog-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 200px;
    height: 120px;
    background-color: var(--color-light-white);
}


/* Contacts. */
.block.block-contacts {
    height: 100%;
}

.block-contacts .contacts-data {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
}

.block-contacts .contacts-data a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--transition-user-interaction);
    font-size: 14px;
    text-decoration: none;
}

.block-contacts .contacts-data a img {
    display: block;
    filter: invert(1);
    margin-bottom: 6px;
}

/* Cookies notification */
.cookies-notification {
    position: fixed;
    display: none;
    bottom: 16px;
    right: 16px;
    background-color: var(--color-gray);
    padding: 8px;
    font-size: 14px;
    align-items: center;
    border: 1px solid var(--color-light-white);

    max-width: calc(100% - 32px);
    max-width: -moz-calc(100% - 32px);
    max-width: -webkit-calc(100% - 32px);

    box-sizing: border-box;
    z-index: 100;
}

.cookies-notification.shown {
    display: flex;
}

.cookies-notification .button {
    padding: 6px 12px;
    font-size: 10px;
    margin-left: 8px;
    background-color: var(--color-contrast);
    color: var(--color-black);
    font-weight: bold;
}

.cookies-notification .button:hover {
    color: var(--color-white);
}

.cookies-notification a
{
    color: var(--color-contrast);
}
.cookies-notification a:hover
{
    color: var(--color-white);
}


@media (max-width: 800px) {
    .main .left-side .menu-button {
        display: flex;
    }

    .left-side {
        position: absolute;
        top: 0;
        left: 0;

        transform: translateX(-100%);
        -ms-transform: translateX(-100%);
    }

    .left-side.shown {
        transform: translateX(0);
        -ms-transform: translateX(0);
    }

    .main .content {
        margin: 0;
        width: 100%;
    }
}