html {
  height: 100%;
  width: 100%;
}
body {
  margin: 0;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  padding-top: 0px;
  overflow-x: hidden;
/*  overflow: hidden;*/
}
#container {
   height: 100%;
  width: 100%;
   
}

.leaflet-tooltip {
	position: absolute;
	padding: 3px;
	background-color: #fff;
	border: 2px solid #fff;
	border-radius: 0px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
/*img {
    max-width: 100%;
    height: auto;
    width: auto\9; / ie8 /
}*/
.img-logo {
  margin-bottom: 30px;
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  padding-left: 10%;
  padding-right: 10%;
}
.auto_hide {
    transition-property: opacity, fillOpacity;
    transition-duration: 3s;

}
.viewing {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(0,0,17,.25);
}
#sidebar {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 100;
    line-height: 26px;
	width: 50%;
	top: 0;
	left: 0;
    background: #eee;
    z-index: 1999; 
}
#sidebar.vertical {
	width: 50%;
	height: 50%;
	top: 0;
	left: 0;
}


section {
    padding: 10px 10px 10px 12px;
}
section.vertical {
    hight: 50%;
} 
.intro-section, .rostov-section, .uglich-section, .semenovskoe-section, .bozhonki-section, .beginning-section, .beforebattle-section {
/*    height: 100vh; 
    padding-top: 5px; */
    text-align: left;
/*    background: #fff;
	background: url(../img/back.jpg) no-repeat center top;
	background-size: cover;*/
}
.lopatino-section {
    align: center;
}
section > div {
		vertical-align: middle;
		border: none;
        padding: 15px 30px 15px 30px;

		display: table-cell;
		width: 50vw;
		height: 94vh;
}
section.vertical > div {
		vertical-align: middle;
		border: none;
        padding: 15px 30px 15px 30px;

		display: table-cell;
		width: 100vw;
		height: 44vh;
}
#map {
	background: #cdcdd0;
	position: fixed;
	width: 50%;
	height: 100%;
	top: 0;
	left: 50%;
}
#map.vertical {
	top: 50%;
	left: 0;
	width: 100%;
	height: 50%;
}

h2 {
    text-align: center;
}
#backtotop {
    position: fixed;
    display: inline-block;    
    bottom: 0.65em; 
    left: calc(50% - 2.5em); 
    width: 1.9em;
    height: 1.9em;
    line-height: 1.8em;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: gray; /* Set a background color */
    opacity: 0.5;
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    text-align: center;
/*    padding: 5px 12px 8px 12px; /* Some padding */
    border-radius: 100%; /* Rounded corners */
    font-size: 1.5em;
    visibility: hidden;
}

#backtotop:hover {
    background-color: #444; /* Add a dark-grey background on hover */
}
#showmap {
    position: fixed;
    display: inline-block;    
    bottom: 0.65em; 
    left: calc(100% - 2.5em); 
    width: 1.9em;
    height: 1.9em;
    line-height: 1.9em;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: gray; /* Set a background color */
    opacity: 0.5;
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    text-align: center;
/*    padding: 5px 12px 8px 12px; /* Some padding */
    border-radius: 100%; /* Rounded corners */
    font-size: 1.5em;
    visibility: hidden;
}

#showmap:hover {
    background-color: #444; /* Add a dark-grey background on hover */
}

li {
  font-size:        20px;
  color:            #444;
  font-weight:      bold;
}

li > a {
  text-decoration:  none;
  color:            #444;
  font-size:        20px;
  font-weight:      bold;
  } 
li > a:visited {
  color:            #555;
  } 
li > a:hover   {
  color:            black;
  } 
  
@media(max-width:767px),(orientation: portrait) {
    #sidebar {
        width: 100%;
            z-index: 1999; 

    }
    
    #sidebar section > div {
        width: 100vw;
    }
    #showmap {
        visibility: inherit;
    }
    #map {
        top: 0%;
        left: 100%;
        width: 100%;
        height: 100%;
    }
    #backtotop {
        top: 0.65em; 
        left: calc(100% - 2.5em); 
    }
}
