* {
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
}

body {
	background: black;
	color: white;
	font-family: "tahoma", san-serif;
	text-align: center;
}

.icon_text {
	font-size: 175%;
	line-height: 100%;
	padding: 3% 0;
	font-weight: 400; 
	text-align: center;
	margin: 5% 0 1% 0;
}

h2{
	font-size: 175%;
	line-height: 100%;
	padding: 3% 0;
	font-weight: 400; 
	text-align: center;
	margin: 5% 0 1% 0;
	text-decoration: underline;
}

h3{
	font-size: 150%;
	line-height: 100%;
	padding: 3% 0;
	font-weight: 400; 
	text-align: center;
	margin: 5% 0 1% 0;
	text-decoration: underline;
}

p {
	font-size: 150%;
	line-height: 120%;
	font-weight: 100;
}

header{
	width: 90%;
	display: inline-block;
	margin: 1% 1% 0 1%;
}

header:after {
	content: "";
	display: block;
	clear: both;
}

.banner {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: black;
	margin-bottom: 1%;
	z-index: 1;
}
/*MENU IS ATTACHED TO INPUT CHECKBOX*/
input#menu {
	display: none;
}

input:checked ~ #navigation {
	max-height: 100%;
	background-color: grey;
	padding-top: 1%;
}

#navigation {
	max-height: 0;
	overflow: hidden;
}

h1{
	font-size: 350%;
	font-weight: 1000;
	text-align: center;
	padding: 0;
	border: 5px solid white;
	margin: 1% 1% auto;
	clear: both;
}

#heading:hover {
	transition: ease;
	transition-duration: 0.5s;
	color: yellow;
}

#heading {
	animation-name: flash;
	animation-duration: 0.4s;
	animation-delay: 3s;
	animation-iteration-count: 20;
	animation-direction: alternate;
}

@keyframes flash {
	0%, 100% {
		color: white;
	}
	50% {
		color: yellow;
	}
}

h1 section {
	display: inline-block;
}


h1 i {
	font-size: 100%;
	position: relative;
	
}

.home {
	float: left;
	margin: 0 5%;
	top: 200px;
}

.message {
	float: right;
	margin: 0 5%;
	top: 300px;
}

a, a:link, a:visited {
	text-decoration-color: white;
	color: white;
}

a:active {
	color: yellow;
}

.one-fifth{
	width: 19%;
	float: left;
	text-align: center;
	margin-bottom: 1%;
}

i{
	font-size: 600%;
	transition-duration: 0.8s;
}

i:hover {
	color: yellow;
	transform: rotateY(360deg);
}

.block {
	float: left;
	text-align: center;
	width: 20%;
}

.block i {
	margin-top: 20%;
}

.main {
	width: 60%;
	padding: 1%;
	text-align: center;
}

#content {
	margin-top: 5%;
}

#content:after {
	content: "";
	display: block;
	clear: both;
}

footer {
	margin: 10% 4% 1% 4%;
	width: 90%;
	clear: both;	
}


#one-fourth {
	width: 25%;
	display: inline-block;
}
#list {
	display: inline-block;
	float: right;
	margin-top: 1%;
	line-height: 175%;
	width: 50%;
}
.pic {
	display: inline-block;
	float: none;
	clear: both;
	width: 100%;
	border: 3px solid white;
}

.apps{
	display: block;
	width: 90%;
	height: 100%;
	margin: 8%;
}

#posts ul{
	text-decoration: none;
	float: left;
	width: 100%;
}

#posts li {
	text-decoration: none;
	display: block;
	margin: 1% 2% 1% 1%;
	font-size: 150%;

}

/*HTML5 FORM*/
form {
	margin: 0;
	color: #eee;
}

form p {
	font-size: 150%;
	letter-spacing: 0.1em;
	margin-top: 3%;
	margin-bottom: 2%;
	text-decoration: underline;
}

form label {
	font-size: 120%;
}

/*radio box styles*/
label[for="dev"],
label[for="client"],
label[for="friend"] {
	margin-bottom: 0.1em;
	display: inline-block;
	width: 20%;
}

input:checked + label[for="dev"],
input:checked + label[for="client"],
input:checked + label[for="friend"] {
	color: yellow;
}

/*checkbox styles*/
input#html,
input#css,
input#javascript,
input#php,
input#sql,
input#seo,
input#ui,
input#pwa {
	
}

label[for="html"],
label[for="css"],
label[for="javascript"],
label[for="php"],
label[for="sql"],
label[for="seo"],
label[for="ui"],
label[for="pwa"] {
	margin: 0 auto;
	display: inline-block;
	width: inherit;
	padding: 1%; 
}

input:checked + label[for="html"],
input:checked + label[for="css"],
input:checked + label[for="javascript"],
input:checked + label[for="php"],
input:checked + label[for="sql"],
input:checked + label[for="seo"],
input:checked + label[for="ui"],
input:checked + label[for="pwa"] {
	color: yellow;
}

form div {
	border: 3px solid white;
	margin:3% 0;
	padding: 1%;
}
/*text input & fields styles*/
fieldset {
	padding: 0;
	border: 3px solid white;
	width: 100%;
	margin-top: 5%;
}

fieldset p {
	margin-top: 5%;
}

legend {
	font-size: 150%;
	letter-spacing: 0.1em;
	padding: 0 5%;
}

input[type="email"],
input[type="text"] {
	display: block;
	margin: 5% auto;
	padding: 3%;
	font-size: 120%;
	border-radius: 4%;
}


.comment {
	display: block;
	margin: 0 auto;
	padding: 3%;
	font-size: 120%;
	border-radius: 4%;
	height: 200px;
	width: 38%;
	resize: none;
	margin-bottom: 2%;
}

/*select box styles*/
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	-o-appearance: none;
	-ms-appearance: none;
	appearance: none;

	display: block;
	margin: 1% auto;
	padding: 1%;
	background-color: black;
	color: white;
	font-size: 120%;
	border-radius: 4%;
	border: 0.2em solid white;
}

input[type="submit"] {
	background: yellow;
	color: black;
	font-size: 120%;
	border-radius: 4%;
	border: 0.2em solid white;
	padding: 0.5%;
	letter-spacing: 0.1em;
	width: 40%;
	margin-top: 5%;
}
/*Validation */
input[type="email"]:valid,
input[type="text"]:valid,
textarea:valid {
	border: 0.3EM solid yellow;
}/*end validation*/


table {
	font-size: 140%;
	text-align: left;
}

.success {
	margin-top: 8%;
	color: yellow;
	font-size: 120% !important;
}

.error {
	margin-top: 8%;
	color: red;
	font-size: 120% !important;
}

.warning {
	margin-top: 8%;
	color: red;
	font-size: 320% !important;
}

/*MEDIA QUERIES*/

/*TABLETS*/
@media screen and (max-width: 800px) {
i{
	font-size: 500%;
}

.icon_text {
	font-size: 100%;
	line-height: 100%;
	padding: 3% 0;
	font-weight: 400; 
	text-align: center;
	margin: 5% 0 1% 0;
}

#content {
	margin-top: 10%;
}

.main {
	float: right;
	margin: 0 auto;
	width: 75%;
}

.main p {
	text-align: left;
}

.side {
	width: 20%;
	display: inline-block;
	float: left;
	clear: left;
}

.contacts {
	display: inline-block;
	float: left;
	clear: left;
	width: 100%;
}


#pic1 {
	display: block;
	width: 100%;
	border: 5% solid white;
	margin: 10% auto;
	clear: both; 
}

#list {
	display: inline-block;
	margin: 2% 0 auto;
	float: none;
	line-height: 120%;
	text-align: center;
}

input:checked ~ #navigation {
	padding-top: 5%;
}

h1 {
	font-size: 300%;
}

h1:hover {
	transition: none;
	color: white;
}

h1:active {
	color: yellow;
}

.home {
	margin: 0 1%;
}

.message {
	margin: 0 1%;
}

form p{
	text-align: center !important; 
}

input[type="email"],
input[type="text"] {
	width: 55%;
}

.comment {
	width: 55%;
}

label[for="dev"],
label[for="client"],
label[for="friend"] {
	margin-bottom: 0.1em;
	display: inline-block;
	width: initial;
}
/*END OF TABLETS*/

/*MOBILEPHONES*/
@media screen and (max-width: 500px) {

i{
	font-size: 250%;
}

.icon_text {
	font-size: 60%;
	line-height: 100%;
	margin-left: 5%;
	padding: 3% 0;
	font-weight: 300; 
	text-align: center;
}

.main {
	display: block;
	clear: both;
	float: none;
	margin: 0 auto;
	width: 100%;
}

.main p {
	text-align: center;
}


#content {
	position: relative;
	margin-top: 12%;
}

.right {
	position: absolute;
	top:0;
	float: right;
}

.side {
	width: 50%;
	display: inline-block;
	float: left;
	clear: none;
}

.contacts {
	display: inline-block;
	float: left;
	clear: none;
	width: 50%;
}

#list {
	display: inline-block;
	margin: 2% 0 auto;
	float: none;
	line-height: 150%;
	text-align: center;
}

h1:hover {
	font-size: 250%;
}

h1 i {
	font-size: 100%;
}

h1 i {
	display: inline-block;
	position: absolute;
	right: 0;
	margin: 0 auto;
	background: yellow;
	color: black;
	width: 12%;
}


.home i {
	top: 300px;
}

.message i {
	top: 350px;
	
}

label[for="dev"],
label[for="client"],
label[for="friend"] {
	margin-bottom: 0.1em;
	display: inline-block;
	width: initial;
}

input[type="email"],
input[type="text"] {
	width: 75%;
}

.comment {
	width: 75%;
}
}

/* phones wider than 400 px*/ 
@media screen and (max-width: 400px){
#content {
	margin-top: 15%;
}

h1{
	font-size: 250%;
}
}

@media screen and (min-height: 600px){
	.home i {
	top: 500px;
}

.message i {
	top: 550px;	
}
}
/*END OF MOBILEPHONE*/
@media screen and (min-height: 900px){
h1 i {
position: relative;
}

.home i {
top: 0px;
}

.message i {
	top: 0px;	
}

}