/* Arkusz stylów dla strony www.spais.pl */

html {
	overflow: auto; /* Usuniecie suwaków w IE */
	margin-top: 0; padding-top: 0; /* niech się Opera cieszy */
	height: 100%;
	min-height: 100%;
}

body {
	background-color: #425c92;
	color: black;
	margin: 0 auto;
	font: normal 8pt Tahoma,Arial,sans-serif;
	text-align: center; 
	overflow: auto;
	height: 100%;
	min-height: 100%;
}

p {
	margin: 0 0 1em 0;
}

A, A:link, A:visited, A:active, A:hover {
	text-decoration: none;
	color: #003366;
}
A:hover {text-decoration: underline;}


/*=== Ramka główna strony ====================================================*/

#mainframe {
	position: relative;
	width: 991px;
	/*height: 597px;*/
	background-color: #003060; /*white;*/ 
	text-align: left; 
	margin-left: auto; 
	margin-right: auto;
	/*overflow-y: visible;*/
	/*overflow: visible;*/
}


/*=== Górna część strony =====================================================*/

#top {
	/*position: absolute;*/
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background-color: #425c92;
}
#logo { /* logo Spais */
	position: absolute;
	top: 5px;
	left: 15px;
}
#spaisname { /* Przedsiębiorstwo... */
	position: absolute;
	top: 10px;
	left: 150px;
	color: white;
	font:  normal 14pt Tahoma,Arial,sans-serif;
}
#topdecor { /* Grafika */
	position: absolute;
	top: 0px;
	right: 0px;
	width: 300px;
	height: 70px;
	background: url(img/topdecor.jpg);
}
#spaisaddress { /* Adres, telefony */
	position: absolute;
	top: 45px;
	left: 150px;
	color: #f0f0ff;
	font:  normal 8pt Tahoma,Arial,sans-serif;
}
#spaisaddress a {
	color: #f0f0ff;
}



/*=== Pasek menu =============================================================*/

#menubar {
	/*position: absolute;*/
	position: relative;
	z-index: 10;
	/*top: 70px;*/
	left: 0px;
	width: 100%;
	background-color: #003366;
}

/* Menu górne stałe */
#menubar ul {
	position: relative;
	left: 150px;
	width: 840px;
	height: 22px;
	list-style-type: none;
	margin: 0;
	padding: 0;
	background-color: #003366;
	border-left: 1px solid #425c92;
}
#menubar ul li {
	float: left;
	position: relative;
	width: 100px;
	background-color: yellow;
	text-align: center;
	border-right: 1px solid #425c92;
	border-bottom: 1px solid #425c92;
}
#menubar ul li a {
	font:  bold 8pt Tahoma,Arial,sans-serif;
	display: block;
	width: 100%;
	text-decoration: none;
	color: white;
	padding: 4px 0;
	background-color: #003366;
}
#menubar ul li a:hover {
	text-decoration: none;
	color: white;
	background-color: #336699;
}

/* Menu górne rozwijane */
#menubar ul li ul {
	display: none;
	position: absolute;
	top: 22px;
	left: 0;
	width: auto;
	height: auto;
	border: 2px solid #003366;
	border-top: 0;
}
#menubar ul li:hover ul, #menubar ul li.over ul {
	display: block;
}
#menubar ul li ul li {
	width: 140px;
	border-top: 1px solid #003366;
}
#menubar ul li ul li a {
	background-color: #425c92;
	font-weight: normal;
}
#menubar ul li ul li a:hover {
	background-color: #6699cc;
}

.clear {
	clear: both;
}


/*=== Menu po lewej stronie =================================================*/

#menuleft {
	/*position: absolute;
	top: 90px;*/
	position: relative;
	left: 0px;
	width: 140px;
	/*height: 502px;*/
	background-color: #003366;
	/*border: 2px solid #003366;*/
	padding: 2px;
	border-bottom: 0;
	text-align: center;
	float: left;
}

#menuleft p.menuheader { /* Nagłówek menu */
	color: white;
	font-weight: bold;
	margin: 0;
	padding: 0 0 5px 0;
}

#menuview { /* Widok dla przewijanego menu */
	height: 450px;
	position: relative;
	overflow: hidden;
}
#menuscroll { /* Zawartość przewijanego menu */
	position: absolute;
	top: 0;
	left: 0;
}

#menuleft ul { /* Menu pierwszego poziomu (grupy) */
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#menuleft ul li {
	margin: 0 0 2px 0;
	text-align: center;
}
#menuleft ul li a {
	display: block;
	width: 140px; /* IE */
	color: white;
	background-color: #425c92;
	text-decoration: none;
	padding: 5px 0;
}
#menuleft ul>li>a {
	width: auto; /* non-IE */
}
#menuleft ul li a:hover {
	background-color: #6699cc;
}

#menuleft ul li ul li { /* Menu drugiego poziomu (produkty) */
	margin: 0;
	text-align: left;
}
#menuleft ul li ul li a {
	width: 118px; /* IE */
	background-color: #dae2ef;
	color: #003366;
	padding: 2px 2px 2px 20px;
}
#menuleft ul li ul li a:hover {
	background-color: white;
}
#menuleft ul>li>ul>li>a {
	width: auto; /* non-IE */
}


/*=== Główna zawartość strony ================================================*/

/* Ramka zawartości */
#content { 
	/*position: absolute;*/
	position: relative;
	z-index: 1;
	/*top: 92px;
	left: 143px;*/
	padding: 0;
	background: white;
	/*width: 843px;*/
	height: 500px;
	min-height: 500px;
	border: 2px solid #003066;
	overflow: auto;
}

#content h1 {
	font:  normal 14pt Tahoma,Arial,sans-serif;
	color: #003366;
	border-bottom: 2px solid #003366;
	margin: 20px;
	padding: 3px;
}
#content h1 img {
	vertical-align: text-bottom;
}
/* Wersja ciemna */
#content.dark {
	background-color: #425c92;
	background-color: #003366;
}
#content.dark h1 {
	color: white;
	/*border-bottom-color: white;*/
}
/* Wersja na stronach produktów w katalogu */
body#catalogpage #content {
	/*background-color: #e8ebff;*/
	/*background-color: #ecf4ff;*/
	background-color: white;
}
	
	
/* Ramka z opisem */
#content .pagebox { 
	position: absolute;
	padding: 10px 20px;
	border: 3px solid #dae2ef;
}
#content .pagebox h2 {
	position: absolute;
	top: -0.7em;
	left: 20px;
	margin: 0;
	padding: 0 3px;
	font: bold 16pt Tahoma,Arial,sans-serif;
	color: #6699cc;
}
#content .pagebox ul {
	padding-left: 1.5em;
	margin: 0;
}


/* Menu katalogu i cennika */
#katalog_ramka {
	margin-left: 100px;
	height: 400px; 
	border: 0px;
}
.catbox {
	width: 450px;
	height: 38px;
	text-align: left;
	/* margin-bottom: 5px; */
	margin-bottom: 13px;
}
#katalog_ramka>.catbox {
	/* margin-bottom: 8px; */
	margin-bottom: 16px;
}
.catbox a, .catbox a:link, .catbox a:visited {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	font: bold 9pt Tahoma,Arial,sans-serif;
	color: white;
	background-color: #003366;
	border: 2px solid #003366;
	border: 2px solid #425c92;
}
.catbox a:hover {
	border: 2px solid #dae2ef;
}
.catbox a img {
	float: left;
	margin: 4px 10px 4px 6px;
	border: 0;
}


/* Tabela z opisem wyrobów */
#content table.catalog { 
	margin: 0 20px;
	/*border: 2px solid #dae2ef;*/
	border-spacing: 2px 5px;
}
#content table.catalog td {
	background-color: #eff2f8;
	border: 1px solid #dae2ef;
}
#content table.catalog td img {
	border: 0;
}
#content table.catalog td p {
	margin: 5px;
	text-align: justify;
}
#content table.catalog a {
	font-weight: bold;
}
#content table.catalog td.product {
	width: 100px;
	text-align: center;
	font: bold 12pt Arial,sans-serif;
}
#content #tablebottommargin { /* IE ignoruje margin-bottom dla tabeli */
	height: 20px;
}


/* Tabela cennika */
#content table.cennik {
	margin-top: -10px;
	margin-bottom: 20px;
}
#content table.cennik tr.t1 {
	background-color: #dae2ef;
}
#content table.cennik tr.t2 {
	background-color: #eff2f8;
}
#content table.cennik tr.t1:hover, #content table.cennik tr.t2:hover {
	background-color: #99ccff;
}


/* Pasek nawigacyjny wyrobów */
#content #navbar {
	position: absolute;
	top: 1px;
	left: 1px;
	z-index: 3;
	background-color: #425c92;
	padding: 2px 3px;
}
#content #navbar a img {
	margin: 0;
	padding: 0;
	border: 1px solid #425c92;
}
#content #navbar a:hover img {
	border: 1px solid white;
}


/* Karta wyrobu */
#content #product {
	/*position: absolute;
	top: 12px;
	left: -20px;*/
	position: relative;
	height: 500px;
}


/*=== Fotogaleria ===*/

/* Kontener na miniaturki */
#fotoframe {
	margin: 0 0px 20px 0px;
}
#content>#fotoframe {
	margin-left: 30px; /* for Mozilla */
}
#content #fotoframe h2 {
	font:  bold 10pt Tahoma,Arial,sans-serif;
	color: #003366;
	margin-left: 50px;
	padding: 3px;
}
#content>#fotoframe>h2 {
	margin-left: 20px; /* for Mozilla */
}
/* Ramka na miniaturkę */
.imagebox {
	float: left;
	width: 122px;
	height: 155px;
	overflow: hidden;
	margin: 0 0 15px 30px;
}
.imagebox .thumbnail { /* zasobnik na miniaturkę */
	width: 120px;
	height: 120px;
	border: 1px solid #D4DBDE;
	background-color: white;
	background-position: center center;
	background-repeat: no-repeat;
	/*cursor: pointer;*/
}
.imagebox .thumbnail a { /* miniaturka */ 
	display: block; 
	width: 100%; 
	height: 100%;
}
.imagebox .caption { /* podpis pod miniaturkę */
	width: 120px;
	margin: 2px;
}

/* Warstwa na zdjęcie w pełnych rozmiarach */
#fotofull {
	display: none;
	position: absolute;
	z-index: 3;
	top: 92px;
	left: 143px;
	width: 843px;
	height: 500px;
	padding: 0;
	border: 2px solid #003066;
	background-color: white;
	background-position: center center;
	background-repeat: no-repeat;
	cursor: pointer;
}
