/* General settings */
* {
  box-sizing: border-box;  
  font-family: 'Ubuntu', 'Open Sans', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html { 
	font-size: 62.5%; 
} 

p {
	font-size: 1.5rem;
	line-height: 2.4rem;
}

a {
	font-size: 1.4rem;
	text-decoration: none;
	color: #333333;
}

h1 {
	font-size: 2.8rem; 
	line-height: 4.5rem;
}

h2 {
	font-size: 2rem;
	line-height: 2.7rem; 
}

h3 {
	font-size: 2rem;
	text-align: left;
 
}

h4 {
	font-size: 1.6rem;
	line-height: 2.3rem;
	margin: 0;
	text-transform: uppercase;
}

h5 {
	font-size: 1.5rem;
	line-height: 2.3rem;
}

em {
	font-size: 1.3rem;
}

body {
	margin: 0;
	padding: 0;
}

/* Horizontal navigation */
nav {
	height: 60px;
	width: 100%;
	z-index: 400;
	box-shadow: 0 0 18px black;
	position: fixed;
	top:0;
}

.container {
	width: 70%;
	margin: 0 auto;
	text-align: center;
}

.disability {
	float: right;
}

.logo p {
	float: left;
	margin: 5px 0 0 10px;
	text-align: left;
}

.logo img{
	height: 50px;
	margin-top: 6px;
	margin-left: 10px;
	float: left;
}

.disability ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.disability li { 
	float: left;
	border: 1px solid #818181;
	border-radius: 100%;
	height: 30px;
	width: 30px;
	margin: 14px 8px;
	position: relative;
	cursor: pointer;
}

.disability li:hover {
	background-color: rgba(0, 0, 0, 0.15);
	border: 1px solid #818181;
}

.disability li div{ 
	margin-top: -1px;
	margin-left: 14px;
    height: 30px;
    width: 15px;
    border-radius: 0 30px 30px 0;
}

.disability li p {
    display: block;
    text-align: center;
    text-decoration: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	margin: 0;
}

.disability li p span {
	font-size: 10px;
}

/* Main photo */
.bg-photo-index {
	background: url(../images/szkola2.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	background-attachment: fixed;
	width: 100%;
	height: 430px;
	z-index: 1;
	clear: both;
	text-align: center;
	padding-top: 60px;
}

.bg-photo {
	background: url(../images/szkola3.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	height: 180px;
	clear: both;
	padding-top: 60px;
}

.title {
	height: 290px;
	position: relative;
	animation: fall 2s;
}

.title h1{
	display: inline;
	text-align: center;
	padding: 2px 0;
	font-weight: 400;
	top: 0;
}

.title h2{
	display: inline;
	text-align: center;
	padding: 2px 0;
	letter-spacing: 2px;
	font-weight: 400;
}

.stripe {
	height: 120px;
	width: 100%;
}

/* Tiles */
.row {
	width: 100%;
	margin-top: -250px;
	clear: both;
	margin-bottom: 50px;
	position: relative;
}

.col-3 {
    width: 25%;
    z-index: 99;
    float: left;
    position: relative;
    height: 150px;
}

.box {
	width: 90%;
	height: 100%;
	position: absolute;
	top: 50%;
  	left: 50%;
  	transform: translate(-50%, -50%);
  	text-align: center;
  	opacity: 0.9;
}

.box:hover {
	opacity: 1;
}

.vertical-align {
	position: absolute;
	width: 90%;
	top: 50%;
	left: 50%;
  	transform: translate(-50%, -50%);
  	text-align: center;
  	margin-top: 5px;
}

.vertical-align p {
	margin-top: 5px;
}

.row .col-3 img {
	height: 65px;
}

.row .col-3:first-child img{
	height: 106px;
}

/* Main content */
.content{
    width: 97.5%;
    margin: 0 auto;
    box-shadow: 0 0 20px black;
    display: inline-block;
    margin-top: 20px;
}

/* Section */
.section {
	padding: 0 40px;
	float: right;
	width: 76.8%;
	text-align: left;
}

.section h3 {
	text-transform: uppercase;
	padding-bottom: 8px;
}

.section ul {
    padding-left: 20px;
    list-style:none;
}

.section li {
	font-size: 1.5rem;
	line-height: 2.6rem;
	padding-left: 20px;
}
.section li i {
	font-size: 1.4rem;
	margin-top: 5px;
}

.col {
	margin: 10px 0;
}

.left-col{
  float: left;
  clear: left;
  width: 50%;
  padding-right: 20px;
}

.left-col img {
	margin: 10px auto;
}

.right-col{
  float: right;
  width: 50%;
  padding-left: 20px;
  text-align: left;
}

.clearfix {
	clear: both;
	margin-bottom: 40px;
}

.left-aligment {
	text-align: left;
}

.right-aligment {
	text-align: right;
}

.center-aligment {
	text-align: center;
}

.justify-aligment {
	text-align: justify;
}

table {
	margin: 0 auto;
	width: 70%;
	font-size: 1.5rem;
	text-align: left;
	margin-bottom: 30px;
}

th, td {
	padding: 8px;
}

#table01 th:nth-of-type(1){width:10%;}
#table01 th:nth-of-type(2){width:50%;}
#table01 th:nth-of-type(3){width:20%;}
#table01 th:nth-of-type(3){width:20%;}

#table02 th:nth-of-type(1){width:10%;}
#table02 th:nth-of-type(2){width:40%;}
#table02 th:nth-of-type(3){width:25%;}
#table02 th:nth-of-type(3){width:25%;}

hr {
	width: 15%;
	border-width: 0;
}

/* Sidebar */
.sidebar {
    width: 23.2%;
    height: 100%;
    background-color: #e7e7e7;
    float: left;
    z-index: 10000;
}

.sidebar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    text-align: center;
    text-transform: uppercase;
    overflow: hidden;
}

.current-page {
	pointer-events: none;
} 

.sidebar li {
	display: table;
	border-bottom: 1px solid #000000;
	width: 100%;
}

.sidebar li a {
	box-sizing: border-box;
    display: table-cell;
    vertical-align: middle;
    padding: 0 12px;
    text-decoration: none;
    text-align: left;
    height: 50px;
}

/* Footer */
footer {
    clear: both;
    height: 70px;
    bottom: 0;
    margin-top: -45px;
}

footer p{
	text-align: center;
	padding-top: 38px;
	margin-bottom: 0;
}

/* Open and close menu, go to top anchor */
.open-menu,
.close-menu {
	display: none;
}

.go-to-top { 
	border-radius: 100%;
	height: 40px;
	width: 40px;
	position: fixed;
	bottom: 15px;
  	right: 20px;
  	box-shadow: 0px 10px 15px 0 rgba(0,0,0,0.4);
  	z-index: 400;
  	text-align: center;
}

.go-to-top img { 
	height: 26px;
	width: 26px;
	margin-top: 7px;
}


@media only screen and (max-width:960px) {
	.container {
		width: 100%;
	}
}

@media only screen and (max-width:640px) {
	h2 {
		font-size: 1.7rem;
	}

	h1 {
		font-size: 2.2rem; 
		line-height: 3.4rem;
	}

	.disability li { 
		height: 30px;
		width: 30px;
		margin: 14px 6px 0 6px;
	}

	.row {
		width: 80%;
		display: block;
		margin: 0 auto;
		margin-top: -350px;
		z-index: 1;
	}

	.col-3 {
	    width: 50%;
	    height: 150px;
	    margin-bottom: 15px;
	}

	.box {
	  	width: 90%;
	}

	.stripe {
		height: 240px;
		margin: 0;
	}

	.sidebar {
	    width: 100%;
	    height: 840px;
	    text-align: center;
	    margin: 0 auto;
	    z-index: 300;
	    position: absolute;
	    top: 60px;
	    z-index: 10;
	    display: none;
	}

	.sidebar li a {
	    text-align: center;
	}

	.sidebar li{
		width: 60%;
		margin: 0 auto;
	}

	.section {
		width: 100%;
		height: 100%;
		box-shadow: 0 0 20px black;
		display: inline-block;
	}

	.section ul {
	    padding-left: 0;
	}

	.section li {
	    padding-left: 5px;
	}

	table {
		width: 100%;
	}

	.col {
		width: 100%;
		text-align: left;
		padding-left: 0;
		margin: 0;
	}

	.col img {
		margin: 0;
	}

	.menu {
 	    position: absolute;
	    top: 70px;
	    right: 10px;
	    height: 40px;
	    width: 40px;
	    z-index: 300;
	    border: 1px solid #818181;
        border-radius: 5px;
	}

	.menu img {
	    height: 27px;
	    width: 27px;
	    padding-top: 11px;
	}

	.open-menu {
		display: block;
	}

	footer {
	    height: 50px;
	}

	footer p{
		text-align: center;
		padding-top: 17px;
	}

	.go-to-top { 
		bottom: 10px;
	  	right: 10px;
	}

}

@media only screen and (max-width:440px) {
	h1 {
		font-size: 1.7rem; 
		line-height: 2.5rem;
	}

	h2, h3 {
		font-size: 1.5rem;
		line-height: 2.3rem;
	}

	p, a {
		font-size: 1.3rem;
		line-height: normal;
	}

	nav {
		height: 90px;
	}

	.disability {
		bottom: 0;
	}

	.disability li { 
		margin: 9px 15px 0 15px;
	}

	.disability li:last-child {
		margin-right: 10px;
	}

	.logo img{
		height: 38px;
	}

	.bg-photo-index {
		background: url(../images/szkola2.jpg);
		background-position: top;
		height: 400px;
		padding-top: 90px;
	}

	.bg-photo {
		height: 165px;
	}

	.stripe {
		height: 285px;
	}

	.title {
		margin-top: 0;
		height: 235px;
	}

	.row .col-3 img {
		height: 60px;
	}

	.menu {
	    top: 8px;
	    right: 10px;
	    height: 30px;
	    width: 30px;
	    z-index: 300;
	    z-index: 500;
	    position: fixed;
	    border: 1px solid #818181;
	    border-radius: 5px;
	}

	.menu img {
	    height: 21px;
	    width: 21px;
	    padding-top: 7px;
	}

	.section li {
		font-size: 1.3rem;
		line-height: 2.2rem;
	}

	.sidebar {
	    top: 90px;
	}

	.row {
		width: 100%;
	}

	.col-3 {
	    width: 50%;
	    height: 130px;
	    margin-bottom: 10px;
	}

	.box {
	  	width: 92%;
	}

	.sidebar li {
		width: 75%;
	}

	.section {
		padding: 0 20px;
	}

	.go-to-top { 
		height: 35px;
		width: 35px;
		bottom: 10px;
	  	right: 10px;
	}

	.go-to-top img { 
		height: 20px;
		width: 20px;
		margin-top: 7px;
	}

	footer p {
		text-align: left;
		padding-left: 15px;
	}
}

@media only screen and (max-width:360px) {
	.disability li { 
		margin: 9px 10px 0 10px;
	}
}

@keyframes fall {
  0% {
    transform: translateY(-400px);
  }
  100% {
    transform: translateY(0px);
 }
}

@keyframes appear {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
 }
}
