﻿@font-face {
	font-family: "Trebuchet";
	src: url("./fonts/trebuc.ttf");
}
* {
	margin: 0;
	padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
	margin: 0px auto;
	width: 987px;
	font-family: "Trebuchet MS", Trebuchet;
	color: rgb(51,51,51);
	counter-reset: tabela przyklad;
	background: rgb(245,245,245);
}
#logo {
position: fixed;
left: 10px;
top: 10px;
z-index: 1;
}
.ps, hr {
	clear: left;
}
hr {
	height: 1px;background: rgb(153,153,153); border: none;
}
h1, h2, h3, caption {
	text-align: left;
	font-weight: normal;
}
h1 {
	margin: 0px 0px 17px 0px;
	font-size: 34px;
}
h2 {
	margin: 21px 0px 10.5px 0px;
	font-size: 21px;
	font-weight: normal;
}
h3, caption, figcaption {
	margin: 13px 0px 6.5px 0px;
	font-size: 13px;
	text-transform: uppercase;
}
p, li, dt, dd {
	margin: 6px 25px 6px 25px;
	font-size: 13px;
}
@supports ( hyphens: auto ) {
	p, li, dt, dd {
		hyphens: auto;
		text-align: justify;
	}
}
footer dt, footer dd {
	font-size: 12px;
}
li li {
	margin: 5px 0px 5px 10px;
}
dl {
	margin: 0px 0px 0px 20px;
}
dt {
	margin: 0px 0px 6px 0px;
	font-weight: bold;
}
dd {
	margin: 0px 0px 6px 20px;
}
a {
	text-decoration: none;
	color: rgb(0,0,0);
}
[role="nav"] li a span {
	float: right;
	color: silver;
}

body section {
	box-shadow: 1px 1px 3px rgb(0, 0, 0);
	margin: 10px auto;
	padding: 20px;
	background: url(logo-PI.png) rgb(255,255,255) left top no-repeat;
	height: 1330px;
}
.nav, body>nav {
	position:fixed;
	top: 5px;
	right:5px;
	text-align:center;
	font-size: 10px;	
}
nav ul{
	list-style: none;
}
svg {
	vertical-align:  middle;
	margin: 3px 3px;
}
.k1, .k2 {
	display: inline-block;
	vertical-align:top;
	margin: 5px 0px;
	padding: 5px 10px;
	height: 590px;
	width: 453px;	
}
.k2, .header dl{
border-left: 1px solid silver;
}

footer, header {
	column-count:2;
	column-gap: 23.5px;
	column-rule: 1px solid silver;
	margin: 5px 10px;
}

@media screen and (max-width: 1200px) {
	body{
	width: 500px;
	margin: 5px auto;
	}
	.k1, .k2 {
	margin: 5px 0px;
	padding: 5px 10px;
	height: auto;	
	}
	.k2 {
	border-left: 1px hidden silver;
	}
	.header dl{
	border-left: 1px hidden silver;
	}
	body section {
	box-shadow: 1px 1px 3px rgb(0, 0, 0);
	margin: 10px auto;
	padding: 20px;
	background: url(logo-PI.png) rgb(255,255,255) left top no-repeat;
	height: auto;	
    }
	footer, header {
	column-count:1;
	-moz-column-count:1;
	-webkit-column-count:1;
}
}


div>div>h3:before {
	content: "Przykład " counter(przyklad) ". ";
	counter-increment: przyklad;
}
div>table>caption:before {
	content: "Tabela " counter(tabela) ". ";
	counter-increment: tabela;
}
button {
	font: 9px arial;
	margin: 2px 2px;
	padding: 2px 2px;
	vertical-align: middle;
}

.header, aside {
	width: 100%;
	height: 98px;
	padding: 5px 0px;

}
table {
	width: 100%;
	border-spacing: 3px;
}
td, th {
	outline:1px solid silver;
	padding-left: 3px;
	height: 17px;
	vertical-align:middle;
}
th {
	font-size: 12px;
	color: rgb(51,51,51);
	text-align: center;
	background: rgb(204,204,204);
}
tr:first-child th:first-child {
	text-align: center;
	background: rgb(102,102,102);
	color: rgb(204,204,204);
}
td, td>p {
	font-size: 12px;
}
figure {
margin: 20px;
text-align: center;			
}
figcaption {
text-align: left;			
}

.przyklad {
text-align: center;
position: relative;
}
.przyklad textarea, .przyklad iframe {
border: none;
vertical-align:middle;
margin: 3px 0px;
box-sizing: border-box;
}
.przyklad textarea {
background: repeating-linear-gradient(rgba(244,244,244,0.5), rgba(244,244,244,0.5) 15px, rgba(255,255,255,0.5) 16px, rgba(255,255,255,0.5) 30px), url('nr.svg') no-repeat top left;
resize: none;
text-align: left;
outline: solid 1px silver;
border-top: solid 20px rgb(255,255,255);
padding: 2px 0px 0px 25px;
font-size: 12px/1.1;
white-space:pre;
}
.przyklad:before {
color: silver;
content: "\00b6   Edytor kodu";
position: absolute;
font-size: 13px;
left: 10px;
top: 36px;
}
.przyklad textarea:hover, .przyklad iframe:hover {
box-shadow: 0px 0px 4px rgb(0, 0, 0);
}
.przyklad textarea:active {
box-shadow: 0px 0px 4px rgb(255, 0, 0);
}
.przyklad textarea:focus {
outline: solid 1px rgb(255, 0, 0);
}
.przyklad iframe {
border: solid 7px  rgb(204,204,204);
border-radius: 7px;
}


a {
	text-decoration: none;
	color: #000000;
}
a:hover {
	outline: solid 1px silver;
}
hr {
	width: 98%;
	margin: auto;
	height: 1px;
}
ul,ol {
	margin-left: 20px;
}
@media screen and (max-width: 650px) {
	body>nav {
	position:relative;
	}
}
@media screen and (max-width: 500px) {
	body {
	margin: 0px auto;
	background: url(logo-PI.png) rgb(255,255,255) left top no-repeat;
	}
	body>nav {
	display:none;
	}
	body>section {
	box-shadow: none;
	margin: 0px auto;
	background: none;
	}
	.k1, .k2 {
	margin: 0px;
	padding: 0px;
	}
	p, li, h3, dt, dd, th  {
	font-size: 13px;
	}
	hr {
	margin: 20px auto 10px;
	}	
}
@media print {
button, .nav, body>nav, #MicrosoftTranslatorCommunity, #TranslateSpan, #LauncherTranslatePhrase, body>div {
display: none  !important;
 }
body {
	background: rgb(255,255,255);
	margin: 0 auto;
    }
body>section {
	box-shadow: none;
	margin: 0 auto;
	padding: 20px;
	background: url(logo-PI.png) rgb(255,255,255) left top no-repeat;
page-break-after: always;
    }
}