@import url(font.css);
@import url(reset.css);

/* Yandex map */

body {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    font-family: 'IBMPlexMono';
    background: black;
    position: absolute;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#YMap {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 130%;
    animation: map 1s ease 1s forwards;
    opacity: 0;
    margin: 0;
}

#YMap {  
    -webkit-filter: grayscale(1); /* Webkit браузеры */  
    filter: gray; /* для IE6-9 */  
    filter: grayscale(1); /* W3C */  
}

@media screen and (min-width: 700px) {  


#Ispan_nav_seven {
    margin-top: 1vw;
}

/* for map.css */

nav {
    color: white;
    opacity: 0;
    text-align: center;
    width: 100vw;
    height: 10vh;
    position: absolute;
    z-index: 999;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: nav 3s ease 2s forwards;
    box-shadow: 0px 3vw 30px 0px rgba(0, 0, 0, 0.6) inset;

}
.nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.btn {
    user-select: none;
    cursor: pointer; 
    position: relative;
}
#span_nav_one {
    margin-left: 2vw;
    margin-top: 1vw;
}

#span_nav_two{
    margin-top: 1vw;
}
#span_nav_three {
    margin-top: 1vw;
}
#span_nav_four{
    margin-top: 1vw;
}
#span_nav_fifth {
    margin-top: 1vw;
}
#span_nav_sixth {
    margin-right: 2vw;
    margin-top: 1vw;
}
#span_nav_seven {

    position: absolute;
    bottom: 1vw;
    left: 2vw;
    z-index: 998;
    color: white;
} 
.nav2 {
    opacity: 0;
    width: 100vw;
    height: 5vw;
    animation: nav 3s ease 2s forwards;
    position: absolute;
    z-index: 998;
    bottom: 0;
    left: 0;
    box-shadow: 0px -3vw 30px 0px rgba(0, 0, 0, 0.6) inset;
}

/* open menu block */

#openMenu {
    position: absolute;
    z-index: 990;
    right: -25vw;
    background: black;
    width: 25vw;
    height: 100vh;
    color: white;
    display: flex; 
}

#openMenu.active {
    -webkit-transition: 1.5s;
    -moz-transition: 1.5s;
    -ms-transition: 1.5s;
    -o-transition: 1.5s;
    transition: 1.5s ease;
    transform: translateX(-25vw);
}

.openMenuTextBlock {
    position: relative;
    top: 10vh;
    margin: 2vw;
    display: flex;
}
#OMTB2 {
    margin-left: 2vw;
    opacity: 0;
}
#OMTB1 {
    opacity: 0;
}

#OMTB2.active  {
    animation: nav 1s ease 1s forwards;
}
#OMTB1.active  {
    animation: nav 1s ease 1s forwards;
}

#xx {
    display: none;
}
}


@media screen and (max-width: 699px) {  

    /* for map.css */

nav {
    display: none;
}
.nav {
    display: none;
}
.nav2 {
    opacity: 0;
}

/* open menu block */

#openMenu {
    position: absolute;
    z-index: 990;
    bottom: -30vw;
    background: black;
    width: 100vw;
    height: 35vh;
    color: white;
    display: flex; 
}

#openMenu.active {
    -webkit-transition: 1.5s;
    -moz-transition: 1.5s;
    -ms-transition: 1.5s;
    -o-transition: 1.5s;
    transition: 1.5s ease;
    transform: translateY(-30vw);
}

.openMenuTextBlock {
    position: relative;
    top: 2vh;
    left: 10vw;
    margin: 2vw;
    display: flex;
    justify-content: space-between;
}
#OMTB2 {
    margin-left: 15vw;
    opacity: 0;
}
#OMTB1 {
    opacity: 0;
}

#OMTB2.active  {
    animation: nav 1s ease 1s forwards;
}
#OMTB1.active  {
    animation: nav 1s ease 1s forwards;
}

#xx {
    display: block;
    position: fixed;
    top: 6vw;
    left: 6vw;
    color: white;
    z-index: 999;
    padding-bottom: 5vw;
    padding-right: 5vw;
}
}

/*  KEYFRAMES */

@keyframes nav {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

@keyframes map {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}


@keyframes first_nav {
    0% {
        opacity: 100%;
        display: block;
    }
    20% {
        opacity: 100%;
    }
    99% {
        opacity: 0%;
        display: block;
    }
    100% {
        opacity: 0%;
        display: none;
    }
}