html * {
	box-sizing: border-box;
}
body {
	font-family: sans-serif, Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 100%;
	text-align: center;
	background-color: #53B5DC;
	margin: 0;
	padding: 0;
        color: #194b6d;
}

body.admin {
	text-align: left;
	background-color: white;
	color: black;
}

p {
	margin: 0.25em;
	margin-bottom: 0.50em;
}

li {
        margin-bottom: 0.50em;
}

#logo {
        margin-left: 10%;
        margin-right: 1em;
        margin-top: -0.5em;
        max-width: 25%;
        float: right;
}

#template {
	max-width: 1024px;
	margin: 4px auto;
	text-align: left;
	border-style: solid;
        color: #194b6d;
	border-width: 0px 4px;

	min-height: 600px;
/*	background-color: #C0E9FF; */
        background-color: #fff;
}

#template_header {
	margin: 0;
	background-image: url(/static/images/ostrova_fon2.png);
	background-color: #008bc0;
	background-repeat: repeat-x;
}
#template_header > div {
	padding: 0.2em 0.3em;
	color: #e4f7fb;
}
#template_header_bg {
	background-image: url(/static/images/ostrova_fon1.jpg);
	background-repeat: no-repeat;
	background-position: top right;
}

#template_header a {
  background-color: rgba(255,255,255,0.7);
  padding: 0.1em 0.2em;
}

#template_content {
	padding: 0.5em;
}

h1 {
	font-size: 1.9em;
	margin-top: 0;
	color: #194b6d;
	text-shadow: white 0 0 2px;
}
h2,h3 {
	color: #e4f7fb;
}

.required {
	color:red;
}

form fieldset {
	border: none;
	border-top: 1px solid #ccc;
	padding: 0.3em 0.5em;
	margin-bottom: 2em;
}
form fieldset legend {
	margin: 0 -0.5em;
	padding: 0;
}

form .row {
  display:block;
  position: relative;
  margin-top: 0.3em;
  width: 100%;
  clear:both;
}

form .row > label,
form .row > .label {
  display: inline-block;
  font-size: 1.2em;
        color: #194b6d;

  width: 34%;
  min-width: 250px;

  padding-right: 0.5em;
  padding-top: 0.2em;
  vertical-align:top;
}

.comment {
  color: #666;
  font-size: 0.8em;
  font-style: italic;
  display:block;
}

form .row span.required {
/*	display:block;
	position:absolute;
	top: 0;
	left: 34%; */
	color: red;
}

form .row > input[type=text],
form .row > input[type=email],
form .row > input[type=tel],
form .row > select,
form .row > textarea {
	display:inline-block;
        border: 1px solid #888;
        margin-left: 0.5em;
	width: 45%;

	background-color: white;	
	font-size: inherit;
	vertical-align:top;
}
form .row > input[type=number] {
	    display:inline-block;
        border: 1px solid #888;
        margin-left: 0.5em;
    background-color: white;
    font-size: inherit;
    vertical-align:top; 
	width: 5em;
}


form .row .field {
	vertical-align:top;
	display: inline-block;
	width: 45%;
	margin-left: 0.2em;
	margin-top: 0.4em;
	margin-bottom: 0.8em;
}

.field input[type="text"] {
	width: 100%;
}

form input[type="submit"] {
	min-height: 2em;
	font-size: 120%;
}

form .row.checkbox label {
	font-size: 1em;
  	width: 80%;
	margin-left: 1em;
	margin-bottom: 0.3em;
}

form .row.checkbox {
	margin-bottom: 0em;
}

.row .field input[type=text] {
  border: 1px solid #888;
  font-size: inherit;
}

form .form-buttons {
  padding-left:34%;
  padding-top: 1em;
  padding-bottom: 1em;
}

form .row .error {
  background-color: red;
  color: white;
  padding: 0.1em 0.3em;
}

a.btn {
  display:inline-block;
  margin: 5px 10px;
  padding: 5px 10px;
  border-radius: 3px;
  background-color: #008bc0;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

@media screen and (max-width:700px) {
  #logo {
    display: none;
  } 
 
  form .row > label,
  form .row > .label {
    width: auto;
    min-width: 0;
	margin: 0;
  }  

  form .row > input[type=text],
  form .row > input[type=email],
  form .row > input[type=tel],
  form .row > input[type=number],
  form .row > select,
  form .row > textarea {
        width: 100%;
	margin-left:0;
	margin-top: 1px;
  }
  form .form-buttons {
    text-align: center;
    padding-left: 0;
  }

  form .row .field {
    width: 100%;
  }
	
  form .row span.required {
	display:inline-block;
	position:static;
  }

  input[type="checkbox"],
  input[type="radio"] {
	transform: scale(1.2);
  }
  .checkbox, .radio {
	font-size: 120%;
  }
 
}

strong {
    white-space: nowrap;
}

span.warn {
	font-style: italic;
	background-color: yellow;
}

a.green {
/*	font-style: italic; */
	background-color: #8F8;
	padding: 0.1em 1em;
}
.green {
	background-color: #8F8;
	padding: 0.2em 1em;
        line-height: 1.2em;
}

.tabs {
    margin-top: 0.2em;
	margin-bottom: 0.8em;
	line-height: 1.8;
}
.tabs > .tab:last-child {
	border-right: 1px solid #194b6d;
}

.nano {
	font-size: 0;
}

.tab {
    white-space: nowrap;
	background-color: #C0E9FF/*#53B5DC*/;
	padding: 0.4em 0.5em;
	border-radius: 7px 7px 0 0;
    border: 1px solid #194b6d;
    border-bottom: none;
}

.tab.active {
	background-color: #fff;
}

table.lister {
    border-spacing: 0;
}

table.lister td,
table.lister th {
  padding: 0.1em 0.3em;
  border-right: 1px solid #53B5DC;
  border-bottom: 1px solid #53B5DC;
}
table.lister tr > td:last-child,
table.lister tr > th:last-child {
  border-right: none;
}

table.lister tr:last-child td {
  border-bottom: none;
}

dt {
  font-weight: bold;
  margin-top: 0.5em;
}

dd {
  line-height: 1.3em;
}

.clearfix {
  clear:both;
}