@charset "UTF-8";

/* DEBUG
body > div,
body > div > div {
	border: solid 1px red;
}*/

/* ===== common classes ===== */

.botfield {
	display: none;
}
.clear {
	clear: both;
}
br.clear {
	display: block;
}
.left {
	text-align: left;
}
.center {
	text-align: center;
}
.right {
	text-align: right;
}
.justify {
	text-align: justify;
}
.top {
	vertical-align: top;
}
.middle {
	vertical-align: middle;
}
.bottom {
	vertical-align: bottom;
}
.bold {
	font-weight: bold;
}
.italic {
	font-style: italic;
}
.normal {
	font-weight: normal;
}
.underline {
	text-decoration: underline;
}
.decoration-none {
	text-decoration: none;
}
.nowrap {
	white-space: nowrap;
}

/* ===== colors ===== */

.color-gray-drk2{ background-color: #272926; }
.color-gray-drk { background-color: #515752; }
.color-gray-lt  { background-color: #B8BBB8; }

.color-blue-mid { background-color: #67B0E7; }
.color-blue-lt  { background-color: #A0C3DE; }

/* ===== General rules ===== */

div {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

body, p, li, th, td, button, input, select, textarea {
	font-family: "Consolas", "Lucida Console", "DejaVu Sans Mono", "DejaVu Sans", "Courier New", monospace;
	font-size: .95em;
	color: #b8bbb8;
}
a {
	color: #67B0E7;
}
a:hover,
button:hover {
	opacity: 0.5;
	filter: alpha(opacity=50);
}
a img {
	border: none;
}

/* ===== Main layout ===== */

html, body {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}
body {
	box-sizing: border-box;
	background: #272926 linear-gradient(to bottom,  #515752 90px, #272926 100%) no-repeat;
	color: #B8BBB8;
	padding-top  : 20px;
	padding-left : 20px;
	padding-right: 20px;
}
/* header or NAV */
#header,
#container {
	margin: auto;
	max-width: 1042px;
	/* on 1042px: .thumb becomes with (ratio 4/3) width=180px (x135px) n margin=10px     950/960px */
}
#header {
	position: relative;
	z-index: 1000;
	margin-top: 0;
	min-height: 100px;

	border: solid 1px;
	border-radius: 8px;
}
#container {
	position: relative;
	height: calc(100% - 100px - 35px); /* container - whole-header - footer */
	margin-top: 20px;
}
@media only screen
and (min-device-height : 800px),
and (min-height : 800px)
{
	#container { height: auto}
}
#content {
	position: relative;

	min-height: 100%;

	border: solid 1px #B8BBB8;
	border-radius: 8px;

	padding: 20px;
}
#footer {
	position: relative;
	height: 35px;
	padding-top: .5em;
	text-align: center;
	font-size: 80%;
}
#footer span {
	white-space: nowrap;
}
#footer a {}

/* ===== spaces between menu-items or thumbs ===== */

.navbar,
#thumbs-container   { font-size: 0 }
.navbar a,
#thumbs-container a { font-size: 15px } /* FIXME cannot set relative font-size: as in body (.95em) */

/* ===== NAVigation ===== */

.navbar {
	text-align: center;
	border-bottom: solid 1px;
}
.navbar a {
	display: inline-block;
	box-sizing: border-box;
	height: 30px;
	padding: .4em .8em;
	border-radius: 8px 8px 0 0;
	color: #B8BBB8;
	text-decoration: none;
	margin-bottom: -2px;
	white-space: nowrap;
}
.navbar a.selected {
	border: solid 1px;
	background-color: #515752;
	border-bottom-style: none;
}
.navbar a.selected:hover {
	opacity: 1;
}
.navbar a.selected:active {
	outline: none;
}

#nav-primary,
#nav-secondary {
	padding-top: 0;
	margin-left: 1%;
	margin-right: 1%;
}
#nav-primary {
	margin-top: -30px;
}
#nav-primary {
	border: none;
	margin-top: -1px;
}
#nav-primary a.selected {
	border-style: none solid solid;
	border-radius: 0 0 8px 8px;
}
#nav-secondary {
	margin-top: 22px;
/* if content below is ROUNDED: */
	margin-left: 1%;
	margin-right: 1%;
/* when sticked to content below: */
	border-bottom: none;
}

#nav-order {
	background-image: url('images/icon-shopping-cart-24.png');
	background-repeat: no-repeat;
	background-position: .8em center;
	padding-left: 40px;
	margin-left: 1em;
}
#nav-order.empty {
	width: 16px;
	background-image: url('images/icon-shopping-cart-empty-24.png');
}
#nav-order.empty > span {
	visibility: hidden;
}

/* ===== if HEADER BGR: higher +20px ===== */
#header {
	/*background: transparent url('images/signature-long-w-on-transp.png') no-repeat center;*/
	background: transparent url('images/signature-long3-w-on-transp.png') no-repeat center 48%;
}
#nav-secondary { margin-top: 42px; }
#container     { height: calc(100% - 120px - 35px); }


	/* ===== INVERSE =====
	#header,
	#content {
		background-color: #B8BBB8;
		background-color: rgba(184, 187, 184, 0.5);
		border: none none auto none;
	}
	.navbar a {
		color: #272926;
	}
	.navbar a.selected {
		color: #B8BBB8;
	}*/


/* ===== Gallery ===== */

.thumb {
	position: relative;
	display: inline-block;
	overflow: hidden;

	/*margin: 0 10px 10px 0;
	width: 180px;*/
	height: 135px;

	/* 100% = 5*18% + 5*1%   or   5*19% + 5*0.5% */
	width: 18%;
	margin: 1%;

	border-radius: 4px;
	box-shadow: 0 0 3px #333;

	font-size: 80%;
	text-decoration: none;
	text-align: center;
}
.thumb img {
	max-width: 100%;
	min-height: 100%;
	box-sizing: content-box;
	-moz-box-sizing: content-box;
	-ms-box-sizing: content-box;
	-webkit-box-sizing: content-box;
}

/* ===== Tags ===== */

p {
	/*text-align: justify;*/
}
h1, h2, h3 {
	color: #A0C3DE;
}
h1 {
	text-align: center;
}
h1::before, h1::after {
	content: '\2217';
	margin: 0 .1em;
	opacity: .75;
	font-weight: normal;
	content: '__'; /* . | ~~~ | ____ */
}
/* h1 = 24px = 170%; h2 = 21px = 150%; h3 = 18px = 125% */
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

.subtitle {
	font-size: 80%;
	display: block;
	margin: -1em 0 1.5em;
	text-decoration: none;
}

dt {
	font-weight: bold;
}
dd {
	font-style: italic;
}

hr {
	border: none;
	border-bottom: solid 1px #A0C3DE;
}

/* ===== FIXME до тук съм; надолу не съм гледал още (до МОБИЛНИТЕ), само изтрих на пръв поглед ненужните ===== */

ul li {
	list-style-image: url("images/check-16.png");
	/*list-style-type: circle;*/
	margin-bottom: .75em;
}

/* tablic AND layout tables */

table.tablic {
	border-collapse: collapse;
	width: 100%;
}
table.tablic tr th,
table.tablic tr td {
	border: solid 1px #7FD5FF;
	padding: 4px;
}
table.tablic tr th {
	background-color: #F7F1D1;
	color: #128ad8;
	white-space: nowrap;
}

table.layout {
	border-collapse: collapse;
}
table.layout th,
table.layout td {
	padding: 0;
	border: none;
}

/* contacts & contact_form */

#content table.contacts th,
#content table.contacts td {
	border: none;
}
table.contacts {
	border-collapse: collapse;
	width: 100%;
}
table.contacts td {
	padding-right: 8px;
	padding-top: 5px;
	white-space: nowrap;
}
table.contacts input,
table.contacts button,
table.contacts textarea {
	box-sizing: border-box;
	width: 100%;
	background-color: transparent;
	border: solid 1px;
	padding: 1px 5px;
}
table.contacts input[type=checkbox] {
	width: auto;
	border: none;
}
table.contacts input[type="checkbox"]#userSendCopy {
	display: none;
}
table.contacts input[type="checkbox"]#userSendCopy + label:before {
	border: solid 1px;
	border-radius: 3px;
	padding: 1px 5px;
	margin-right: .4em;
	content: '-';
	opacity: .5;
	/*border-color: rgba(184, 187, 184, 1);
	color: rgba(184, 187, 184, .5);*/
}
table.contacts input[type="checkbox"]#userSendCopy:checked + label:before {
	content: 'X';
	opacity: 1;
	/*color: rgba(184, 187, 184, 1);*/
}
table.contacts button {
	height: 50px;
	border-radius: 5px;
	font-weight: bold;
	color: #67B0E7;
	cursor: pointer;
	border-width: 2px;
}
input.required,
input[required] {
	/* FIXME: style required! */
}

/* ORDER */

body.order #container {
	height: auto;
}

/* orders-list */
.orders-list {
	border-collapse: collapse;
	width: 100%;
}
.orders-list tr > th {
	text-align: center;
	border-right: solid 1px gray;
}
.orders-list tr > th:last-child {
	border-right: none;
}
.orders-list tr > th,
.orders-list tr > td {
	padding: .4em;
}
.orders-list tr > td {
	border-top: solid 1px gray;
	text-align: left;
}
.orders-list tr > td:last-child {
	/*width: 1em;*/
	text-align: right;
}
.orders-list tr.current-order > td {
	border: 2px #67B0E7;
	border-style: solid none;
}
.orders-list tfoot > tr > td {
	border-top-width: 2px;
	font-weight: bold;
}
.orders-list tfoot > tr > td:first-child {
	text-align: right;
}
.orders-list tbody > tr > td:first-child {
	width: 20%;
	white-space: normal;
	font-size: 70%;
}
.orders-list tr > td > span	 {
	width: 180px;
	display: block;
	overflow: hidden;
}
.orders-list tr > td > img,
.orders-list tr > td > textarea {
	height: 100px;
}
.orders-list tr > td > img {
	border-radius: 4px;
	box-shadow: 0 0 3px #333;
	max-width: 100%;
	min-height: 100%;
}
.orders-list tr > td > button {
	font-size: inherit;
	color: white;
	border: none;
	background-color: #67B0E7;
	border-radius: 3px; /* 8px */
	padding: .2em .5em; /* .4em .8em */
}
.orders-list textarea {
	box-sizing: border-box;
	width: 100%;
	background-color: transparent;
	border: solid 1px;
	padding: 1px 5px;
}
/* contact-form in order */
.order form h1 {
	display: none;
}
.order form h2 {
	text-align: center;
}
h2::before, h2::after {
	margin: 0 .1em;
	opacity: .75;
	font-weight: normal;
	content: '-';
	content: '\2217';
}

.em {
	font-style: italic;
}
span[title],
input[title] {
	cursor: help;
}
span[title]::after {
	content: '[?]';
	font-variant-position: super;
	margin-left: .2em;
}
