html {
	background-color: #eee;
}

body {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	margin: 0 auto;
	width: 960px;
	background-color: #fff;
	box-shadow: 0px 2px 5px rgba(0,0,0,0.5);
	font-size: 18px;
}

header {
	display: flex; flex-direction: column;
	width: 100%;
}

#logo {
	width: 100%; height: auto;
}

nav {
	position: sticky; top: 0;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
	width: 100%; height: 50px;
	background-color: #ccc;
}

nav > span {
	display: none;
}

main {
	display: flex; flex-direction: column;
	padding: 10px;
	width: 100%;
	box-sizing: border-box;
}

#reasons {
	display: flex; flex-direction: column;
}

#reasons > img {
	align-self: center;
	width: 240px; height: 180px;
}

.reasons-text {
	font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
	font-size: 18px; font-style: italic;
}

#reasons > blockquote {
	text-align: right;
	font-size: 18px;
}

hr {
    width: 100%; height: 1px;
    border: 0;
    background: #aaa;
}

#examples .images,
#price .images,
#elite .images,
#single .images,
#double .images,
#colored .images,
#stock .images {
	display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center;
}

#examples .images > figure,
#price .images > figure,
#elite .images > figure,
#single .images > figure,
#double .images > figure,
#colored .images > figure,
#stock .images > figure {
	display: flex; justify-content: center; align-items: center; flex-direction: column;
	margin: 5px;
	width: 300px;
}

#examples .images > figure img,
#price .images > figure img,
#elite .images > figure img,
#single .images > figure img,
#double .images > figure img,
#colored .images > figure img,
#stock .images > figure img {
	display: block;
	max-width: 300px; max-height: 300px;
}

#price .images > figure > figcaption {
	margin-top: 10px;
}

#stock-info {
	text-align: center;
	font-size: 22px;
}

#stock-info > span {
	font-weight: bold;
	color: #f00;
}

footer {
	display: flex; flex-direction: column;
	box-sizing: border-box;
	padding: 10px; width: 100%;
	background-color: #e7e7e7;
}

#phones .text-shift,
#web .text-shift {
	float: left; 
	width: 200px;
}

iframe.google-map {
	width: 940px;
	height: 300px;
}

/* navigation */
#menu-list {
    display: flex; flex-direction: row;
    margin: 0; padding: 0; padding-left: 20px;
    list-style: none;
    background-color: #ccc; 
}

.menu-ref {
    display: flex; justify-content: flex-start; align-items: center;
    padding: 0 20px; height: 50px;
    text-decoration: none;
    color: #000; font-weight: bold;
}

.menu-ref:hover,
#menu-list > li:nth-of-type(2):hover > a {
    color: #ccc;
    background-color: #333;
    cursor: pointer;
    user-select: none;
}

#menu-catalog-list {
    position: absolute;
    display: none; flex-direction: column;
    margin: 0; padding: 0;
    list-style: none;
    background-color: #ccc;
}

#menu-list > li:nth-of-type(2):hover #menu-catalog-list {
    display: flex;
}

#menu-open-close {
    display: none;
    box-sizing: border-box;
    padding: 10px;
    width: 50px; height: 50px;
}
/* ----- */

/* navigation scroll */
#navigation-scroll-button {
    display: block;
    position: fixed; bottom: 25px; right: -60px;
	padding: 0 5px; width: 30px; height: 30px;
	transition: right 1s;
    cursor: pointer;
    user-select: none;
}
/* ----- */

/* image viewer */
#image-viewer-grid {
	display: none; justify-content: center; align-items: center;
	position: fixed; top: 0; left: 0; z-index: 100;
	width: 100%; height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	overflow: auto;	
}

#image-viewer-image {
	display: block;
	user-select: none;
}

.image-viewer-button {
	width: 40px; height: 40px;
	cursor: pointer;
}

#image-viewer-close {
	position: absolute; top: 10px; right: 10px;
}

#image-viewer-next {
	position: absolute; top: 50%; right: 10px;
}

#image-viewer-previous {
	position: absolute; top: 50%; left: 10px;
}

#loading {
	display: none;
}
/* ----- */

@media screen and (max-width: 1279px)  {
	body {
		width: 960px;
	}

	iframe.google-map {
		width: 940px;
	}
}

@media screen and (max-width: 959px)  {
	body {
		width: 640px;
	}

	iframe.google-map {
		width: 620px;
	}

	nav {
		order: -1;
        /*flex-direction: column; align-items: flex-start; justify-content: center;*/
	}
	
	nav > span {
		display: block;
	}

	/* navigation */
	#menu-list {
        display: none; flex-direction: column;
        padding: 0;
        position: absolute; top: 50px;
        height: 100vh;
        overflow-y: scroll; 
    }

    #menu-catalog-list {
        position: static;
        display: none;
    }

    #menu-catalog-list .menu-ref {
        padding-left: 30px;
    }

    #menu-list > li:nth-of-type(2):hover #menu-catalog-list {
        display: none;
    }

    #menu-open-close {
        display: block; 
    }
	/* ----- */
}

@media screen and (max-width: 639px)  {
	body {
		width: 320px;
	}

	iframe.google-map {
		width: 300px;
	}
}