@font-face {
    font-family: 'MuseoSans'; 	/* Гарнитура шрифта */
    font-style: normal; 
    font-weight: normal;
    src: url(MuseoSansCyrl_1); 			/* Для IE5-8 */
    src: url(../font/MuseoSansCyrl_1.otf) format('opentype');
}
@font-face {
    font-family: 'Adderley';   /* Гарнитура шрифта */
    font-style: normal; 
    font-weight: normal;
    src: url(AdderleyBold);      /* Для IE5-8 */
    src: url(../font/AdderleyBold.otf) format('opentype');
}
@font-face {
    font-family: 'BadScript';   /* Гарнитура шрифта */
    font-style: normal; 
    font-weight: normal;
    src: url(BadScript);      /* Для IE5-8 */
    src: url(../font/BadScript.ttf) format('truetype');
}

body {
  	margin: 0;
  	padding: 0;
  	font-family: MuseoSans;
}

.glitch-output {
    font-family: BadScript;
    line-height: 34px;
    padding-top: 10px;
    font-size: 26px;
}

.hidden {
    display: none;
}

.unselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
::selection {
    background-color: #000;
    color: white;
}
 
::-moz-selection {
    background-color: #000;
    color: white;
}
 
::-webkit-selection {
    background-color: #000;
    color: white;
}
.top-nav-block {
    position: absolute;
    width: 100%; 
    display: flex;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.left-top-item {
    display: inline-block;
    margin-left: 200px;
}
.right-top-item {
    display: inline-block;
    margin-right: 200px;
}
.nav-button {
    display: inline-block;
    cursor: pointer;
    padding-left: 20px;
    padding-top: 3px;
}
.background-photo {
    position: relative;
    background-image: url(../img/main-back.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100vh;
    width: 100vw;
}
.dinamic-stars {
    position: absolute; 
    transition: all 450ms ease-out;
}
.dinamic-stars img {
    opacity: 0.4;
    height: 100vh;
    width: 100vw;
}
.person-block {
    position: absolute; 
    right: 200px;
    bottom: 0;
}
.person-block img {
    height: 800px;
}

.title-header {
    font-family: Adderley;
    font-size: 90px;
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    left: 200px;
    line-height: 93px;
}
.sub-title-header {
    position: absolute; 
    top: 50%;
    left: 200px;
}
.left-nav-block {
    position: absolute; 
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.left-nav-item {
    border-radius: 10px;
    padding: 2vh 0;
}
.left-nav-item img {
    border-radius: 15px;
    transition: all 150ms linear; 
}
.left-nav-item img:hover {
    -webkit-box-shadow: 0px 0px 15px -3px rgba(255,255,255,1);
    -moz-box-shadow: 0px 0px 15px -3px rgba(255,255,255,1);
    box-shadow: 0px 0px 15px -3px rgba(255,255,255,1);
}

.animation {
    animation-name: move;
    animation-duration: .4s;
    animation-fill-mode: both;
    animation-delay: .1s;
}
.a1 {
    animation-delay: 1s;
}
.a2 {
    animation-delay: 1.1s;
}
.a3 {
    animation-delay: 1.2s;
}
.a4 {
    animation-delay: 1.3s;
}
.a5 {
    animation-delay: 1.4s;
}
.a6 {
    animation-delay: 1.5s;
}
@keyframes move {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.bottom-next-block {
    position: absolute;
    left: 50%;
    bottom: 20px; 
}
.bottom-next-block img {
    transform: translateX(-50%);
}
.anim-vext-block {
    animation-name: twitch;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}
@keyframes twitch {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.anim-show {
    animation-name: show;
    animation-duration: 1s;
}
.anim-hide {
    animation-name: hide;
    animation-duration: 1s;
}
@keyframes show {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}
@keyframes hide {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}
.modal-container {
    position: absolute;
    top: 10vh;
    height: 80vh;
    width: 50vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: auto;
    background-color: #f9f9f9;
    color: black;
    /*opacity: 0;*/
    display: none;
}

.project-page-container {
    position: relative;
    margin: 0 18%;
}
.title-page {
    font-family: Adderley;
    font-size: 200px;
    color: #ececec;
    line-height: 160px;
    padding: 40px 0 20px 0;
    margin-left: -7px;
    margin-right: 7px;
}
.title-page-small {
    font-size: 148px;
    line-height: 118px;
}
.project-container {
    padding-bottom: 40px;
}
.project-image {
    position: relative;
    display: inline-block;
    width: 58%;
}
.image-darker {
    position: absolute;
    top: 0;
    left: 0;
    height: 99%;
    width: 100%;
    opacity: .3;
}
.image-darker-left {
    background-image: linear-gradient(to right, #000000, #00000000);
}
.image-darker-right {
    background-image: linear-gradient(to left, #000000, #00000000);
}
.project-image img {
    width: 100%;
}
.project-name {
    position: absolute;
    font-family: Adderley;
    color: white;
    font-size: 3vw;
    bottom: 0;
}
.project-number {
    position: absolute;
    font-family: Adderley;
    color: white;
    font-size: 1vw;
    top: 10px;
}
.project-name-left {
    left: 10px;
}
.project-name-right {
    right: 10px;
}
.project-add-block {
    display: inline-block;
    vertical-align: top;
    text-align: justify;
    width: 38%;
}
.project-padding-left {
    padding: 0 0 0 20px;

}
.project-padding-right {
    padding: 0 20px 0 0;
}
.button-more,
.button-modal,
.button-tab {
    display: inline-block;
    cursor: pointer;
    margin: 20px 0;
    padding: 10px 0;
    color: white;
    width: 115px;
    font-family: Adderley;
    font-size: 24px;
    text-align: center;
    background-color: #2e5f93;
}
.button-more {
    font-size: 20px;
}
.button-tab {
    display: inline-block;
    font-size: 20px;
    width: 156px;
    background-color: #ffffff;
    border: 2px solid #999999;
    color: #999999;
}
.tab-active {
    background-color: #2e5f93;
    border: 2px solid #2e5f93;
    color: white;
}
.tab-button-container {
    text-align: center;
    padding: 0 0 30px 0;
}

@media screen and (max-width: 950px), screen and (max-device-width: 950px) {
    .curtain-header {
        display: none;
    }
    .modal-container {
        height: auto;
        width: auto;
        top: 0;
        position: static;
        transform: none;
        /*opacity: 1;*/
        display: block;
    }
    .button-modal {
        display: none;
    }
    .dinamic-stars {
        display: none;
    }
    .sub-title-header {
        text-align: center;
        position: static;
    }
    .logo {
        height: 40px;
    }
    .title-header {
        text-align: center;
        position: static;
        transform: none;
        font-size: 70px;
        line-height: 67px;
    }
    .left-nav-block {
        text-align: center;
        position: static;
        transform: none;
    }
    .left-nav-item {
        display: inline-block;
        padding: 2vh 10px;
    }
    .top-nav-block {
        position: static;
        transform: none;
        display: block;
    }
    .left-top-item {
        display: block;
        padding: 20px;
        margin-left: 0;
        text-align: center;
    }
    .right-top-item {
/*        display: block;
        padding: 20px;
        margin-right: 0;
        text-align: center;*/
        display: none;
    }
    .glitch-output {
        font-size: 20px;
    }
}

@media screen and (max-width: 1150px), screen and (max-device-width: 1150px) {
    .title-page {
        margin-left: 0;
        text-align: center;
        font-size: 46px;
        color: #b3b3b3;
        line-height: 95px;
    }
    .button-more {
        margin: 5px 0;
        padding: 4px 10px;
        width: auto;
    }
}
@media screen and (max-width: 1040px), screen and (max-device-width: 1040px) {
    .button-tab {
        display: block;
        width: 100%;
    }
}
@media screen and (max-width: 970px), screen and (max-device-width: 970px) {
    .project-image {
        width: auto;
    }
    .project-name {
        font-size: 6vw;
    }
    .project-number {
        font-size: 3vw;
    }
    .project-padding-left {
        padding: 20px 0;
    }
    .project-padding-right {
        padding: 20px 0;
    }
    .project-add-block {
        width: 100%;
    }
    .button-container {
        text-align: center;
        margin: 20px 0 0 0;
    }
    .project-container {
        display: flex;
        flex-flow: wrap;
        padding-bottom: 0;
    }
    .project-padding-right 
    {
        order: 1;
    }
}