header{
    /* background-color: aqua; */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    height:  140px;
}

header > img {
    z-index: 4;
    margin-top: 60px;
    max-height:  170px;
    width: 45,014925%;
    height: auto;
  
}

._operLogo{
            height: 20px;
            width: 20px;
            
        
        }
        ._velcom{
            zoom: 50%;
            background-image: url(../pics/operatory/vel.png);
        }
        ._mts{
            zoom: 50%;
            background-image: url(../pics/operatory/mts.png);
        }
        #phoneNumbers {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            position: relative;
            bottom: 20px;
                        
        }
      .telNumber {
    zoom: 120%;
   color: goldenrod; 
}

nav{
    border: 1px solid black;
    background-color:#2B2B2B;
    margin: 0px;
    padding: 0px;
    background-image: -webkit-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -moz-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -o-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px #0E0E0E;
    -webkit-box-shadow: 2px 2px 3px #888;
    -moz-box-shadow: 2px 2px 3px #888;
    box-shadow: 2px 2px 3px #888; 
    border-radius: 38px;
    opacity: 0.7;
    max-width: 75%;
    height: auto;    
}

html,body{
    height: auto;
    margin: 0;  
}

.short-info{
    word-wrap: break-word;    
}


.news-item div{
    word-wrap: break-word;
    overflow: none;
}

.pageContent{
    font-family: 'Calligraph', arial;
    overflow:auto;
    background-image: url(../pics/background/background.jpg); 
    background-size: 100%  100%;
    background-repeat: no-repeat;
    margin:0;
    margin-left: auto;
    margin-right: auto;
    max-width: 100vw;background-size: cover;max-height: auto;width: auto;height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}
.pageContent::-webkit-scrollbar {
    display: none;
}


#mainMenu li, a , #callMenuCheck {   
   opacity: 1;
   list-style-type: none;
    text-decoration: none;
}


#mainMenu a, #callMenuCheck{
     font-size: 32px;
     color: whitesmoke;
}

#mainMenu {     
    display: flex;
    justify-content: space-around;
    margin-top: 10px; 
}

#mainMenu ul{
    display: inline-flex;   
    margin: 0px;
    padding: 0px;    
}


#mainMenu ul li, #callMenuCheck{
    cursor: pointer;
    padding: 40px;  
    padding-top: 15px;
    padding-bottom: 14px;    
}

#aboutUsBox {
    display: flex;
    width: 100%;
    height: 300px;
    justify-content: center;
}

#aboutUs {
    position: relative;
    opacity: 0.9;
    background-color:#2B2B2B;
    background-image: -webkit-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -moz-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -o-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    display: flex;
    align-content: center;
    align-items: center;
    margin-top: 120px;
    border-radius: 40px;
    box-shadow: 0 0 5px black;
    height: 400px;
    width: 80%;
}

/*Carouselle style */
#carousel {
    height: 400px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    opacity: 1;
    margin-top: 20px;
    border-radius: 8px;
    margin-bottom: 30px;   
}

#carousel-border{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin-top:20px;
    border-radius: 80px;
    background-color:  rgba(212, 175, 55, .35);
    width: 850px;
    height: 700px;
}

#carousel-wrapper {
    position: relative;
    width: 750px;
    height: 450px;
}

.carousel-item {     
    border: 2px #2B2B2B solid;
    text-shadow: 1px 1px 1px #0E0E0E;
    -webkit-box-shadow: 2px 2px 3px #888;
    -moz-box-shadow: 2px 2px 3px #888;
    box-shadow: 3px 2px 2px 2px whitesmoke;
    background-image: -webkit-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -moz-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -o-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    border-radius: 10px;
    position: absolute;
}

.item3{
    opacity: 0;    
    background-image: url(../pics/carousel/img4.jpg);

    z-index: 1;
}

.item2{
    opacity: 0;    
    background-image: url(../pics/carousel/img3.jpg);
    z-index: 2;
}

.item1 {
  background-image: url(../pics/carousel/img2.jpg);
  z-index: 3;      
}

.itemSz{
    background-size:  100%  100%;  
    -webkit-animation-duration: 3s;animation-duration: 3s;
    -webkit-animation-fill-mode: both;animation-fill-mode: both;
    width: 100%;
    height: 100%;
}
/* Animations */
.fadeOut{
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
}

.fadeIn{
     -webkit-animation-name: fadeIn;
     animation-name: fadeIn;
}

  @-webkit-keyframes fadeOut {
            0% {opacity: 1;}
            100% {opacity: 0;}
         }
         
         @keyframes fadeOut {
            0% {opacity: 1;}
            100% {opacity: 0;}
         }

  @-webkit-keyframes fadeIn {
            0% {opacity: 0;}
            100% {opacity: 1;}
         }
         
         @keyframes fadeIn {
            0% {opacity: 0;}
            100% {opacity: 1;}
         }
.item1: hover, .item2:hover, .item3:hover {
    -webkit-animation-play-state:paused;
}

.item1:not(:hover), .item2:not(:hover), .item3:not(:hover) {
    -webkit-animation-play-state:running;
}

/* -------------------------------------------------- */

#target-item2:target ~ .item1{
 opacity: 0;
 display: none; 
}

#target-item2:target ~ .item2{
    display: block;
    opacity: 1;
    width: 100%;
    height: 100%;
    background-size: 100%  auto;    
}

#target-item3:target ~ .item2{
 opacity: 0;
 display: none;    
}

#target-item3:target ~ .item3 {
    display: block;
    opacity: 1;
    width: 100%;
    height: 100%;
    background-size: 100%  auto;
}

/*News style*/


#news{
    background-color:#2B2B2B;
    background-image: -webkit-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -moz-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: -o-linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    background-image: linear-gradient(bottom, #2B2B2B 7%, #333333 100%);
    opacity: 0.9;
    border-radius: 40px;
    height: 350px;
    width: auto;
    overflow-y: hidden;
    box-shadow: 0 0 5px black;
    margin-top: 65px;
}

#content-news{
    justify-content: center;
    display: inline-flex;
    overflow-y : hidden;    
}

h2 {
     color: goldenrod;
}

p {
    color: whitesmoke;
    font-size: 160%;
}

h2 a {
    color:darkgoldenrod;
}

article  div{
    width: 220px;
    height: 200px;
    margin-top: -60px;
    margin-left: 0px;
    font-size: 100%;
}

article  div h2{
    font-size: 220%;
    display: flex;
    justify-content: center;
}

#content-news article{    
    border-style: solid;
    border-width: 80px 0px 0px;   
    -moz-border-image: url(../pics/borders/borders_news_2.svg.png) 806 0 0 round;
    -webkit-border-image: url(../pics/borders/borders_news_2.svg.png) 806 0 0 round;
    -o-border-image: url(../pics/borders/borders_news_2.svg.png) 806 0 0 round;
    border-image: url(../pics/borders/borders_news_2.svg.png) 260 0 0 fill round;
    margin : 40px 90px 60px 90px ;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    height:200px;
    width: 300px;
}

li:hover, #callMenuCheck:hover {
    background-color: lightgray;
    border-radius: 38px;   
}

 #map {
    position: absolute;
    height: 320px;
    width: 34.8%;
    border-radius: 12px;
    bottom: auto;
    top: 10%;
    left: 60%;
    -webkit-transform: translate3d(0px, 0px, 0px);
    -webkit-radial-gradient(white, black);
}

#information {
    margin-top: 160px;
    color: whitesmoke;
    margin-left: 60px;
    margin-bottom: 160px;
    width: 45.455%;
    height: 260px;
    border-radius: 6px;
    overflow: auto;
    box-shadow: 0 0 5px black;
}

#information p {
    text-indent: 0.5em; /* Отступ первой строки */
    text-align: justify; /* Выравнивание по ширине */
    margin-left: 8px;
    margin-right: 5px;
}    

#border_top{
    display: flex;
    flex-direction: row;
    justify-content: center;  
    margin-top: 50px;
     align-items: center;
    align-content: center;    
}

#border_bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;  
    align-items: center;
    align-content: center;   
}

#border_top > div {
    z-index: 2;
    height: 120px;
    width:450px;
    background-image: url(../pics/borders/border_top_bottom.png); 
}

#border_bottom > div {
    height: 120px;
    width:450px;
    background-image: url(../pics/borders/border_top_bottom.png); 
    transform: rotate(180deg);
    z-index: 2;
}

#vine_bottom {
    width: 370px;
    height: 180px;
    transform: rotate(180deg);
    margin-left: auto;
    margin-right: auto;
    margin-top: 230px;
    background-image: url(../logo/vine_bottom.png); 
    background-repeat: no-repeat;
}

/*SlideShow at the bottom */
.slideShowBottom {
    padding: 0px;
    height: 350px;
    max-width: 100%;
    margin: -8px auto;
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.slideShowBottom > div {
    height: 200px;
    width: 3690px;
    background: url(../pics/panorama/slideShowBottom_LowerRes_Wider.jpg);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: translate3d(0, 0, 0);
}
.slideShowBottom .mover-1 {
    animation: moveSlideshow 12s linear infinite;
}
.slideShowBottom .mover-2 {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    background-position: 0 0px;
    animation: moveSlideshow 15s linear infinite;
}

@keyframes moveSlideshow {
  100% { 
    transform: translateX(-25.6666%);  
  }
}

@media all and (max-width: 600px)
{
    #news {
        overflow-y: hidden;
    }
}

@media all and (max-width: 1500px){
    #mainMenu ul li{
        padding: 2.3vh;
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

@media all and (max-width: 1280px){
    #mainMenu ul li{
        padding: 1vh;
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

@media all and (max-width: 1105px){

    #mainMenu ul li{
        padding: 0.5vh;
         padding-top: 25px;
        padding-bottom: 25px;
        
    }
}
@media all and (max-width:1025px) and (min-width:900px){
    #restaurantAddress{
        bottom: 3px;
    }
}

@media all and (max-width: 900px){
/*    nav {display: none;}*/
    
    #callMenuCheck{display:none;}
    

    #mainMenu ul {
        display: block;
    }
      #mainMenu ul li{
        padding: 1.2vh;
         padding-top: 10px;
        padding-bottom: 10px;
        
    }
    
    #mainMenu ul li a{
        font-size: 32px;
    }
    
     #map {
        top:50%;
        right: 14.5%;
        width: 70.8%;
        left: auto;
         
    }
    
    
    #aboutUs{
        height: 700px;
        align-items: stretch;
        justify-content: center;
        box-shadow: 0 0 5px black;
        
    }
    
    #information {
        width: 600px;
        margin-top: 50px;
        margin-left: 0px;
        
    }
    
    #vine_bottom{
        margin-top: 500px;
    }
}

/*Modal Window style */

.myImgM {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.myImgM:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    padding-top: 200px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    font-size: 200%;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 500px;
    overflow: auto;
}

 
.customScroll::-webkit-scrollbar, #information::-webkit-scrollbar  {
    width: 12px;
}
 
.customScroll::-webkit-scrollbar-track, #information::-webkit-scrollbar {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 0;
    border-radius: 0;
    
}
 
.customScroll::-webkit-scrollbar-thumb, #information::-webkit-scrollbar {
    -webkit-border-radius: 0;
    border-radius: 0;
    background: rgba(68,68,68,0.8); 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}

.customScroll::-webkit-scrollbar-thumb:window-inactive, #information::-webkit-scrollbar {
	background: rgba(68,68,68,0.8); 
}

.customScroll::-webkit-scrollbar-button:horizontal:increment, #information::-webkit-scrollbar {
    display: block;
    content: "8680";
}

/* Add Animation */
.modal-content, #caption {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 110px;
    right: 0px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    padding: 40px;
    font-family: cursive;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/*Call menu */
label[for=callMenu] { 
    display: none;
    margin-top: 30px;
    display: none;
    opacity: 0.7;
    border-radius: 38px;
    background-color:#2B2B2B;
    font-size: 200%;   
}

#callMenu {
    display: none;
}

#callMenu:checked ~ nav{
    display: block;
}

#callMenu:checked{
    display: none;
}

#restaurantAddress{
    left: 86%;position: absolute; color: goldenrod;
}

.rPos {
    bottom: 20px;
}