html, body { 
    height: 100%; 
}

html, body, #page-container, #header, #topmenu, 
#footer, #content-container {
    width: 100%;
	margin: 0;
	padding: 0;
}

body {
	font-family: Helvetica, Tahoma, Arial, Sans-serif;
	background-color: #333;
}
a {
    color: #555;
}

/* контейнер страницы */
#page-container { 
    height: 100%;
	overflow-y: auto;
}
#page-container.first {
    overflow-y: hidden; /* для первой страницы */
}

/* шапка страницы */
#header { 
	min-height: 90px;
	position: fixed;
	top: 0;
	z-index: 30;
	background: url(images/ggraf-title_.jpg) top left no-repeat;
	cursor: pointer;
}
#header:after {
    content: '.';
}	

/* горизонтальное меню */
#topmenu {
	position: fixed;
	top: 60px;
	margin: 0;
	padding: 0 0 0 150px;
	background-color: #2c2c2c;
	min-height: 30px;
	z-index: 30;
	cursor: default;
}
#topmenu ul {
	margin: 0;
	padding: 7px 0 3px 0;
}
#topmenu ul li {
	display: inline;
	padding: 0 15px 0 0;
}
#topmenu ul li a {
	color: #bbb;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: lighter; 
}
#topmenu ul li.active a {
    color: white;
}
#topmenu ul li a:hover {
	color: white;
}
#topmenu ul li a:hover, 
#topmenu ul li a:link {
	transition: 0.5s;
}

/* Подвал страницы */
#footer {
	height: 80px;
	position: fixed;
	bottom: 0;
	z-index: 20;
	background-color: #333;
	padding: 0 0 0 150px;
	color: #555;
	font-size: 11px;
}
#footer table {
	width: 710px;
}
#footer td.info {
	vertical-align: top;
	color: #555;
}
#footer td.trip {
	width: 200px;
	text-align: right;
	vertical-align: top;
}
#footer a {
	color: #555;
	/*text-decoration: none;*/
	font-weight: bold;
}


/* Контейнер контента */
#content-container {
    min-height: 100%;
	height: 1px; /* иначе не срабатывает min-height у content */
	overflow-y: auto;
	margin-top: 70px; /* =header.height */
	margin-bottom: 100px; /* =footer.height+footer.padding */
	background: repeat-x left top+90px fixed;
        background-size: cover;
}
#content-container.first {
    overflow-y: hidden;
}

/* Боковое вертикальное меню */
#sidemenu {
	width: 130px;
	float: left;
	position: fixed;
	top: 100px;
	margin: 0;
	padding: 0;
	text-align: right
}
#sidemenu ul {
	padding: 0;
	margin: 50px 0 0 0;
	list-style: none;
}
#sidemenu ul li {
    padding: 0;
}
#sidemenu ul li a {
	text-decoration: none;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: lighter; 
}
#sidemenu ul li a:hover, 
#sidemenu ul li a:link {
	transition: 0.5s;
}

/* боковое меню для светлой и темной страницы */
#sidemenu.dark ul li a {
    color: #fff; /*#ccc;*/
}
#sidemenu.dark ul li.active a,
#sidemenu.dark ul li a:hover {
    /*color: #ccc;*/
    font-style: italic;
}
#sidemenu.light ul li a {
    color: #000;
		font-weight: bold;
}
#sidemenu.light ul li.active a,
#sidemenu.light ul li a:hover {
    /*color: #000;*/
    font-style: italic;
}

/* Блок контента - с прокруткой */
#content {
	margin: 0 0 0 160px;
	width: 700px;
	min-height: 100%;
	background-color: pink;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	z-index: 10;
}

/* Текст вообще */
#content p {
	font-size: 12px;
	padding: 8px 20px 0 20px;
}


/* Меню которое еда */
#content.menu {
    padding: 40px 10px 10px 10px;
	text-align: center;
}
#content.menu h1 {
	text-transform: uppercase;
	font-size: 14px;
	font-weight: lighter;
	letter-spacing: 2px;
	margin: 10px 0 0 0;
	padding: 0;    
}
.menu h1 a {
	text-decoration: none;
	color: #999;
}
.menu h2 {
	font-size: 15px;
	font-weight: bold;
	margin: 20px 0 0 0;
	padding: 0;
	text-decoration: underline;
}
.menu h3 {
        font-size: 13px;
        font-weight: bold;
        margin: 20px 0 0 0;
        padding: 0;
}
.menu h4 {
        font-size: 12px;
        font-weight: bold;
        font-style: italic;
}
.menu p {
        margin: 0;
	padding: 2px 0 0 0;
	letter-spacing: 1px;
	font-size: 12px;
}
.menu em {
    letter-spacing: 0;
	font-style: normal;
}
.menu hr {
    margin: 20px auto 10px auto;
    width: 75%;
}


/* текст */
#content .text {
        padding: 40px 0 0 0;
}
.text h1 {
	text-transform: uppercase;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 2px;
	margin: 0 0 0 20px;
	padding: 0;
}
.text h1 a {
	text-decoration: none;
	color: #999;
}
.text h2 {
	font-size: 13px;
	font-weight: bold;
	margin: 20px 0 0 20px;
	padding: 0;
	text-decoration: underline;
}
.text h3 {
        font-size: 12px;
        letter-spacing: 1px;
        margin: 10px 0 10px 20px;
}
.text p, .text ul, .text td {
    margin: 0;
	padding: 5px 0 0 0;
	letter-spacing: 1px;
	font-size: 12px;
}
.text em {
    letter-spacing: 0;
	font-style: normal;
}

.text img {
    margin: 10px auto;
    border: 1px solid #555;
}

/* список пунктов Азбуки гурмана */
.text .list_col {
    margin-top: 20px;
}
.text .list_col ul {
    list-style-type: none;
}
.text .list_col ul li {
    padding-top: 5px;
}
	

/* черная/белая подложка под контент */
#content.dark {
    background-color: rgba(0, 0, 0, 1);
	color: #999;
}
#content.light,
#content.menu {
	background-color: rgba(255, 255, 255, 0.8);
	color: #000;
}


/* Слайдшоу и галереи */
.cycle-slideshow {
	z-index: 10;
	width: 100%;
	margin: 0;
	height: 100%;
}
#content-container.first .cycle-slideshow img {
    height: 85%;
}
#content .cycle-slideshow img {
	width: 705px;
}

/* подписи к фоткам */
#img-caption {
        position: absolute;
	top: 20px;
	right: 0;
	z-index: 15;
	background-color: rgba(255, 255, 255, 0.8);
	padding: 8px;
	font-size: 12px;
        color: #555;
}

/* кнопки прокрутки */
#btn-prev, #btn-next {
display: block;
width: 29px;
height: 34px;
position: absolute;
cursor: pointer;
z-index: 40;
}
#btn-next {
left: 870px;
background: url(images/btn-next.gif) 0 0 no-repeat;
}
#btn-prev {
left: 120px;
background: url(images/btn-prev.gif) 0 0 no-repeat;
}
/* для квадратной и прямоугольной галереи кнопки подняты на разную высоту */
#btn-prev.square, #btn-next.square {
    top: 350px;
}
#btn-prev.rectangle, #btn-next.rectangle {
    top: 260px;
}


/* блок карты яндекса */
#ggraf-yandex-map {
    width: 100%;
}
#ggraf-yandex-map img {
    margin-left: 20px;
}


/* Видеоролики в галерее */
.video {
    text-align: center;
}
.video iframe {
    width: 560px;
    height: 315px;
}


/* раздел галереи - список */
table.gallery-topic {
    width: 80%;
    border: 0;
    text-align: left;
    margin: 0 auto;
}
table.gallery-topic td {
    padding: 10px;
}
table.gallery-topic td img {
    border: 1px solid #999;
    padding: 10px;
    width: 150px;
}
table.gallery-topic a {
    font-size: 14px;
    color: #999;
}


/* иконки соцсетей */
.social-ico {
    vertical-align: bottom;
    margin: 0;
    padding: 0;
    width: 12px;
    border: 1px solid #ccc;
}


/* картинка в Азбуке гурмана */
.text img.right, .text img.left {
    width: 300px;
    height: 300px;
    border: 1px solid #555;
    padding: 5px;
    margin: 10px;
    background-color: #bbb;
}
.text img.right {
    float: right;
    margin-right: 0;
}
.text img.left {
    float: left;
    margin-left: 0;
}


/* нумерация страниц для списка новостей */
.pages {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}
.pages em .ditto_currentpage,
.pages em .ditto_page {
    border: 1px solid #555;
    margin: 0 2px;
    padding: 2px;
}
.pages em a {
    text-decoration: none;
}
.pages em .ditto_currentpage {
    background-color: #555;
    color: #ccc;
}