@font-face {
  font-family: 'myriad';
  src: url("/fonts/MyriadPro.otf"); 
  font-display: swap;
}

@font-face {
  font-family: 'myriadB';
  src: url("/fonts/MyriadProB.otf"); 
  font-display: swap;
}

@font-face {
  font-family: 'myriadC';
  src: url("/fonts/MyriadProCond.otf"); 
  font-display: swap;
}

@font-face {
  font-family: 'myriadCB';
  src: url("/fonts/MyriadProBCond.otf"); 
  font-display: swap;
}

h1 {
    color: #ffcc00;
    text-align: center;
    font-size: 28px;
}

a {
    color: #e4e4e4;
}

a:hover {
    color: #ffcc00;
    text-decoration: none;
}

body {
  font-family: 'myriad', Arial, sans-serif;
  font-size: 18px;
  scroll-behavior: smooth;
}

.frontpage {
/*  font-family: 'myriad', Arial, sans-serif;
  font-size: 14px;
  min-width: 900px;
  min-height: 100%;
  position: relative;
  padding-bottom: 54px;
  height: auto; 
*/
    background: #211202 url(../img/pattern1.png);
    background-color: rgb(33, 18, 2);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-attachment: scroll;
    background-image: url("../img/pattern1.png");
    background-size: auto;
    background-origin: padding-box;
    background-clip: border-box;
    color: #fff;
}


.navbar{
    background:#161007;
    padding-right: .1rem;
    padding-left: .1rem;
    padding-top: 0;
    padding-bottom: 0;
}


.navbar-brand img {
    width: 166px;
}


.nav-link{ 
    margin-right: 1em !important;
    text-transform: uppercase;
}

.navbar-nav .nav-item .nav-link {
    color: #e4e4e4;
}
.navbar-nav .nav-item.active .nav-link, .navbar-nav .nav-item:hover .nav-link {
    color: #ffcc00;
}

.navbar-collapse{
    justify-content: flex-end;
/*    margin-top: -50px; */
}


.navbar-dark .navbar-toggler:focus, .navbar-dark .navbar-toggler:hover, .navbar-dark .navbar-toggler{
    color: rgba(0,0,0,0);
    border-color: rgba(0,0,0,0);
}

.bodybookmark {
    height: 90px;
};

.navbar .nav-item:not(:last-child) {
    margin-right: 1px;
}

.navbar-nav .nav-item .nav-link{
    padding-right: .1rem;
    padding-left: .1rem;
}


.dropdown-toggle::after {
   transition: transform 0.15s linear; 
}
 
.show.dropdown .dropdown-toggle::after {
  transform: translateY(3px);
}

.lang.en span.lang12 {
    border: 2px solid #ffcc00;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
}

.lang.en span.lang22 {
    border: 2px solid #ffcc00;
    background: #ffcc00;
    color: #161007;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
}

.lang.ru span.lang12 {
    border: 2px solid #ffcc00;
    background: #ffcc00;
    color: #161007;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
}

.lang.ru span.lang22 {
    border: 2px solid #ffcc00;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
}

.main-logo{
    position: absolute;
    left: 0;
    top: 50;
    width: 83px;
    z-index: 1200;
}


.video-background-holder {
  position: relative;
  background-color: black;
/*  height: calc(100vh - 72px); */
  height: calc(100vh);
  min-height: 25rem;
  width: 100%;
  overflow: hidden;
}

.video-background-holder video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.video-background-content {
  position: relative;
  z-index: 2;
}

.video-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 1;

}

.body-container {
/*    padding-right: 0px;
    padding-left: 0px;*/
}

.fullscreen-background-holder {
  position: relative;
/*  min-height: calc(100vh); */
  width: 100%;
  overflow: hidden;
}

.map.container-fluid {
    height: 400px;
    padding: 0;
    background-image: url(/img/d_yamap.jpg);
    background-position: center center;
    background-repeat: no-repeat;
}

#grid {
    width: 100%;
/*    overflow: hidden */
/*  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;*/
}

#grid .video {
    width: 24.6%;
    position: relative;
    float: left;
/*    padding: 2px; */
    margin: 2px; 
}

#grid .pimg {
    width: 100%;
    height:180px;
    min-height:180px;
    max-height:180px;
    background-size: cover !important;
    background-position: center !important;
    background-size: 100% !important;
    transition: all .7s;
}

#grid .ptitle {
    position: absolute;
/*    bottom: 60px; */
    font-size: 1.2rem;
    text-align: left;
    color: #ffcc00;
    line-height: 1.5;
    padding: 5px;
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
    height: 60px;
    width: 100%;
    padding-top: 30px;
    bottom: 0px;
    overflow: hidden;
}

#grid .pdescr {
    position: absolute;
    background: #fefefe;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    padding: 5px;
    overflow: hidden;
    display: none;
    width: 100%;
    z-index: 1;
}

#grid .video:hover .pimg {
    transition: all 1s;
    box-shadow: 0 0 20px rgba(255,238,0,0.9);
    background-size: 110% !important;
}

#grid .video:hover .pdescr {
/*    position: absolute;*/
    display: block;
}


/*
@media (max-width: 1300px) {
    #grid .video {
	width: 25%;
    }
    .display-4 {
	font-size: 3.0rem;
    }
  }
*/

@media (max-width: 1024px) {
    #grid .video {
	width: 32.6%;
    }
    .display-4 {
	font-size: 3.0rem;
    }
  }

@media (max-width: 740px) {
    #grid .video {
	width: 49%;
    }
    .display-4 {
	font-size: 2.5rem;
    }
  }

@media (max-width: 480px) {
    #grid .video:hover .pimg {
	box-shadow: none;
	background-size: 100% !important;
    }

    #grid .video {
	width: 98%;
        float: none;
	margin: 5px;
    }
    #grid .ptitle {
	position: relative;
	background: #fefefe;
	height: auto;
	padding-top: 0px;
    }
    #grid .pdescr {
	position: relative;
	display: block;
    }
    .display-4 {
	font-size: 2.0rem;
    }
}
