@import url(https://fonts.googleapis.com/css?family=Lato:300,400,700&subset=latin,latin-ext);

body {
	font-family: 'Lato', sans-serif;
	color: #fff;
	background: #fff;
	margin: 0px;
	padding: 0px;
}

a, a:visited, a:hover, a:focus {
	color: #fff;
	text-decoration: none;
	outline: 0;
}

h1, h2, h3 {
	margin: 0px;
	text-align: center;
}

h1 {
	font-size: 25px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 35px;
}

h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 10px 0px;
}

h3 {
	font-size: 20px;
	font-weight: 700;
}

.underline {
	display: block;
	width: 30px;
	margin: auto;
	margin-top: 4px;
	border-bottom: 2px solid;
}

#preloader {
	position: fixed; 
	top:0; 
	left:0; 
	right:0; 
	bottom:0; 
	z-index: 999;
	background: #fff url(images/loading.gif) no-repeat center center;
}

nav {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	padding: 15px 0px;
	text-align: right;
	background-color: rgba(21,21,21,0.9);
	box-shadow: 0px 5px 5px rgba(0,0,0,0.4);
	z-index: 99;
	opacity: 0;
}

nav.pin {
	position: fixed;
    opacity: 0.9;
	animation-name: fadeInDown;
	animation-duration: 1s;
}

#top-nav {
	list-style: none;
	margin: 0px;
	font-size: 14px;
}

#top-nav li {
	display: inline-block;
	margin-right: 10px;
}

#top-nav li:hover {
	font-weight: 700;
}

#top-nav li a {
	position: relative;
}

#top-nav  a:after, #top-nav  a:visited:after {
  content: '';
  height: 2px;
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  background: #fff;
  transition: 0.4s;
}

#top-nav  a:hover:after, #top-nav  a:visited:hover:after {
	width: 100%;
}

.nav-active {
	font-weight: 700;
}

#top-mobile-menu {
	float: right;
	display: none;
}

#dropdownMenu {
    display: block;
	font-size: 23px;
	cursor: pointer;
}

.mobile-list {
	position: absolute;
	width: 100%;
    top: 63px;
    left: 0px;
	background-color: rgba(21,21,21,0.9);
	box-shadow: 0px 5px 5px rgba(0,0,0,0.4);
    padding: 10px 30px;
	font-size: 16px;
    list-style: square;
	text-align: left;
	transform: translateX(-100%);
	transition: transform 1s;
	-webkit-transform:translateX(-100%);
	-ms-transform: translateX(-100%);
	-moz-transform: translateX(-100%);
	-webkit-transition: transform 1s;
	-moz-transition: transform 1s;
}

.mobile-list.active {
	transform: translateX(0%);
	transition: transform 1s;
	-webkit-transform:translateX(0%);
	-ms-transform: translateX(0%);
	-moz-transform: translateX(0%);
	-webkit-transition: transform 1s;
	-moz-transition: transform 1s;
}

@media (max-device-width: 768px) {
	#top-nav {
		display: none;
	}
	
	#top-mobile-menu {
		display: block;
	}
}

header {
	padding: 0px 20px;
	background-image: url('./images/header.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	font-size: 45px;
	text-align: center;
	text-shadow: 0px 5px 5px rgba(0,0,0,0.4);
}

#name {
	display: block;
	margin-top: 10%;
}

#profession {
	display: block;
	font-size: 20px;
	font-weight: 300;
}

#scroll-down {
	display: block;
	margin-top: 60px;
	-moz-animation: bounce 1.5s infinite;
	-webkit-animation: bounce 1.5s infinite;
	animation: bounce 1.5s infinite;
}



section {
	padding-top: 65px;
	padding-bottom: 80px;
}

#oferta {
	background-image: url('./images/oferta.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

#oferta img {
	margin-bottom: 10px;
}

#oferta p {
	font-size: 15px;
	font-weight: 400;
	text-align: center;
}

.second-row {
	margin-top: 70px;
}

#omnie {
	color: #151515;
	font-size: 19px;
	padding-bottom: 50px;
}

.divsocial {
	text-align: center;
	margin-top: 50px;
}

.small-circle {
	display: inline-block;
	width: 35px;
	height: 35px;
	background: #ff5252;
	border-radius: 18px;
	margin-right: 5px;
	line-height: 35px;
	font-size: 16px;
	color: white;
}

.small-circle:hover {
	transform: rotateX(-360deg);
	transition: transform 1s;
	-webkit-transform:rotateX(-360deg);
	-ms-transform: rotateX(-360deg);
	-moz-transform: rotateX(-360deg);
	-webkit-transition: transform 1s;
	-moz-transition: transform 1s;
}

#motto {
	padding: 25px;
	background: #ff5252;
	box-shadow: 0px 5px 5px rgba(0,0,0,0.3);
	color:#fff;
	font-size: 18px;
	text-align: center;
}

#motto p {
	margin: 0px;
}

#skill {
	background-image: url('./images/skill.jpg');
	background-size: cover;
	background-position: center;
	color: #151515;
}

.skills > div {
	margin-bottom: 100px;
}

.skill {
	height: 65px;
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
}

.skill img {
	opacity: 0;
	transition: all 0.5s;
}

.skill:hover img, .skill.hover img {
	opacity: 1.0;
	transition: all 0.3s;
}

.skill h3 {
	margin-top: 20px;
	color: rgb(21,21,21);
}

.html {
	background-image: url('./images/html.png');
}

.css {
	background-image: url('./images/css.png');
}

.javascript {
	background-image: url('./images/javascript.png');
}

.jquery {
	background-image: url('./images/jquery.png');
}

.bootstrap {
	background-image: url('./images/bootstrap.png');
}

.rwd {
	background-image: url('./images/rwd.png');
}

.materialize {
	background-image: url('./images/materialize.png');
}

.php {
	background-image: url('./images/php.png');
}

.mysql {
	background-image: url('./images/mysql.png');
}

.photoshop {
	background-image: url('./images/photoshop.png');
}

.wordpress {
	background-image: url('./images/wordpress.png');
}

.wsparcie {
	background-image: url('./images/serwer.png');
}

.laravel {
	background-image: url('./images/laravel.png');
}

.codeigniter {
	background-image: url('./images/codeigniter.png');
}

.angular {
	background-image: url('./images/angular.png');
}

#portfolio {
	width: 100%;
	padding-left: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-top: 65px;
	color: #151515;
}

.port-square {
	width: 33.33%;
	float: left;
	height: 375px;
	background-size: cover !important;
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: scroll;
	color: #fff;
	text-align: center;
}

@media (max-device-width: 765px) {
	.port-square {
		width: 50%;
	}
	.p-third, .port-square:nth-child(3n+1) {
		width: 100% !important;
	}
}
@media (max-device-width: 400px) {
	.port-square {
		width: 100%;
	}
}

.port-title {
	width: 100%;
	height: 100%;
	background: rgba(21,21,21,0.75);
	text-align: center;
	opacity: 0.0;
}

.port-title h1 {
	top: 41%;
	position: relative;
	margin-bottom: 0px;
	text-transform: none;
}

.port-title span {
	display: block;
	top: 41%;
	position: relative;
	font-size: 18px;
	font-weight: 300;
}

.port-more {
	top: 50%;
	position: relative;
}

.port-more a {
	padding: 5px 18px;
	border: 1px solid #fff;
	cursor: pointer;
	transition: 0.2s;
}

.port-more a:hover {
	background: #fff;
	color: #151515;
	transition: 0.3s;
}

@keyframes ciemniej {
	0% {opacity: 0;}
	100% {opacity: 1;}
}

.port-square:hover .port-title {
	opacity: 1.0;
	animation-name: ciemniej;
	animation-duration: 0.5s;
}

.port-square:hover .port-title h1 {
	animation-name: fadeInUp;
	animation-duration: 0.5s;
}

.port-square:hover .port-title span {
	animation-name: fadeInUp;
	animation-duration: 0.5s;
}

#kontakt, #kontakt a, #kontakt a:hover, #kontakt a:visited {
	background: #f5efef;
	color: #151515;
}

#kontakt p {
	font-size: 18px;
	text-align: center;
}

#kontakt p:last-child {
	line-height: 32px;
}

#kontakt p span {
	margin-right: 5px;
	font-size: 22px;
}

#kontakt img {
	margin-right: 5px;
	height: 30px;
}

#kontakt .padding {
	padding: 50px;
}


.skillrow.imgs {
    margin-top: 16px;
	margin-bottom: 25px;
	text-align: center;
}
.skillrow {
    margin-bottom: 5px;
    padding-left: 2em;
}
.skillrow img {
    margin-right: 15px;
    margin-top: 10px;
    height: 50px;
}

h6 {
	font-size: 16px;
	font-weight: 600;
	line-height: 110%;
	margin: .7666666667rem 0 .46rem 0;
	text-align: center;
}

footer {
	padding: 15px;
	background: #ff5252;
	font-size: 14px;
	text-align: center;
}

input, textarea {
	width: 100%;
	margin-bottom: 30px;
	padding: 2px 18px;
	outline: 0;
	box-shadow: none;
	border: none;
	border-bottom: 1px solid #151515;
	background: transparent;
	color: #151515;
	font-size: 15px;
	z-index: 50;
}

textarea {
	padding: 10px 18px;
	border: 1px solid #151515;
}

form div {
	position: relative;
}

form div span {
	position: absolute;
	top: -25px;
	left: 17px;
	right: 0px;
	font-size: 15px !important;
	opacity: 0;
	height: 0px;
	transform: translateY(+100%);
	-webkit-transform: translateY(+100%);
	-ms-transform: translateY(+100%);
	-moz-transform: translateY(+100%);
	z-index: 40;
}

input:focus + span, textarea:focus + span {
	opacity: 0.5;
	height: auto;
	transform: translateY(0%);
	transition: transform 1s;
	-webkit-transform: translateY(0%);
	-ms-transform: translateY(0%);
	-moz-transform: translateY(0%);
	-webkit-transition: transform 1s;
	-moz-transition: transform 1s;
}

input:focus::-webkit-input-placeholder {
	opacity: 0;
}
input:focus::-moz-placeholder {
	opacity: 0;
}
input:focus:-ms-input-placeholder {
	opacity: 0;
}
input:focus:-moz-placeholder {
	opacity: 0;
}
textarea:focus::-webkit-input-placeholder {
	opacity: 0;
}
textarea:focus::-moz-placeholder {
	opacity: 0;
}
textarea:focus:-ms-input-placeholder {
	opacity: 0;
}
textarea:focus:-moz-placeholder {
	opacity: 0;
}

input[type="submit"] {
	width: 140px;
	padding: 5px 18px;
	border: 1px solid #151515;
	font-weight: 700;
	transition: 0.3s;
}

input[type="submit"]:hover {
	background: #151515;
	color: #f5efef;
	transition: 0.3s;
}

#preview {
	position: fixed; 
	top:0; 
	left:0; 
	right:0; 
	bottom:0; 
	overflow-y: scroll;
	overflow-x: hidden;
	padding: 50px 20px;
	z-index: 998;
	background: #fff;
	font-size: 15px;
	color: #151515;
	transform: translateX(+100%);
	-webkit-transform: translateX(+100%);
	-ms-transform: translateX(+100%);
	-moz-transform: translateX(+100%);
}

#preview.visible {
	transform: translateX(0%);
	transition: 1s;
	-webkit-transform: translateX(0%);
	-ms-transform: translateX(0%);
	-moz-transform: translateX(0%);
	-webkit-transition: 1s;
	-moz-transition: 1s;
}

#preview h1 {
	font-size: 36px;
	text-transform: none;
}

#preview hr {
	margin: 40px 0px;
}

#preview img {
	max-width: 100%;
}

#preview-live {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 20px;
	background: #fff;
	border: 2px solid #ff5252;
	color: #ff5252;
	font-weight: 700;
	transition: 0.2s;
}

#preview-live:hover {
	background: #ff5252;
	color: #fff;
	transition: 0.3s;
}

#preview-close {
	position: absolute;
	top: 0px;
	right: 0px;
	padding: 10px 20px;
	background-color: #ff5252;
	cursor: pointer;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	
}

@media (max-device-width: 768px) {
	#oferta .col-sm-4 {
		margin-bottom: 40px;
	}
	
	#motto p:first-child {
		margin-bottom: 15px;
	}
	
	#preview .col-sm-4 {
		text-align: left !important;
	}
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #151515;
  opacity: 1;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #151515;
  opacity: 1;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #151515;
  opacity: 1;
}
:-moz-placeholder { /* Firefox 18- */
  color: #151515;
  opacity: 1;
}

