

body {

	background: white;
}
.mainbody{
width:80%;
margin-left: 10%;
margin-right: 10%;
}

nav {
	margin: 27px auto 0;
  margin-left: auto;
  margin-right: auto;
	position: relative;
	width: 70%;
	height: 50px;
	background-color: #34495e;
	border-radius: 8px;
	font-size: 0;
}
nav a {
	line-height: 50px;
	height: 100%;
	font-size: 15px;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	color: white;
	cursor: pointer;
}
nav .animation {
	position: absolute;
	height: 100%;
	top: 0;
	z-index: 0;
	transition: all .5s ease 0s;
	border-radius: 8px;
}
a:nth-child(1) {
	width: 100px;
}
a:nth-child(2) {
	width: 110px;
}
a:nth-child(3) {
	width: 100px;
}
a:nth-child(4) {
	width: 160px;
}
a:nth-child(5) {
	width: 120px;
}
nav .start-home, a:nth-child(1):hover~.animation {
	width: 100px;
	left: 0;
	background-color: #1abc9c;
}
nav .start-about, a:nth-child(2):hover~.animation {
	width: 110px;
	left: 100px;
	background-color: #e74c3c;
}
nav .start-blog, a:nth-child(3):hover~.animation {
	width: 100px;
	left: 210px;
	background-color: #3498db;
}
nav .start-portefolio, a:nth-child(4):hover~.animation {
	width: 160px;
	left: 310px;
	background-color: #9b59b6;
}
nav .start-contact, a:nth-child(5):hover~.animation {
	width: 120px;
	left: 470px;
	background-color: #e67e22;
}
#tech{
  width:50%;
  height: 100%;
  margin: inherit;
}
h1 {
	text-align: center;
	margin: 40px 0 40px;
	text-align: center;
	font-size: 30px;
	color: #ecf0f1;
	text-shadow: 2px 2px 4px #000000;

}
h2{
	color:gray;
	text-align: center;
}
h3
	{

  margin: 40px 10px 40px;
   text-align:center;
    font-size: 15px;
    color:  lightcoral;
    text-align: justify
  }

p {
    position: relative;
    text-align: center;
    color: #ecf0f1;
    font-size: 16px;
}
.large{
  color:rgb(57, 60, 63);
  text-align:left;
  padding-top:2em;
  margin-left: 2em;
  margin-bottom: -1em;"
}
.medium{
 color:rgb(57, 60, 63);
 text-align:left;
 margin-left: 3em;
 margin-bottom: 2em;"
}
.small{
  color:rgb(2, 1, 1);text-align:left;margin-left: 3em;margin-bottom: 0em;"

}

.image{
  padding: 1rem;
}

.classroom{
  width:100%;
  float:right;
  padding:2%;
  
}
#portrtait{
  border-radius: 50%;
  width:25em;
}
* {
  box-sizing: border-box;
}

.port{
  width:100%;
  /* float:left; */
  background-image: url(shape.gif);
  background-size:100%;
  height:50%;
  background-repeat: no-repeat, repeat;
}

	}
.resume {
  width:70%;
  height:100%;
  float:right;
  margin: auto;
  display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
.contact{
  width:70%;
  margin-left: 15%;
  margin-right: 15%;
  align-items: center;
   height:100%;
  background-repeat: no-repeat, repeat;
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}
/*nave bar code ended*/

/*slider code */
.slider {
  max-width: 700px;
  height: 400px;
  margin: 20px auto;
  position: relative;
}
.slide1,.slide2,.slide3,.slide4,.slide5 {
  position: absolute;
  width: 100%;
  height: 100%;
}
.slide1 {
  background: url(/image/painting1.jpg)no-repeat center;
      background-size: cover;
    animation:fade 8s infinite;
-webkit-animation:fade 8s infinite;
}
.slide2 {
  background: url(image/painting2.jpg)no-repeat center;
      background-size: cover;
    animation:fade2 8s infinite;
-webkit-animation:fade2 8s infinite;
}
.slide3 {
    background: url(image/painting4.jpg)no-repeat center;
      background-size: cover;
    animation:fade3 8s infinite;
-webkit-animation:fade3 8s infinite;
}
.slide4 {
    background: url(image/painting5.jpg)no-repeat center;
      background-size: cover;
    animation:fade3 8s infinite;
-webkit-animation:fade3 8s infinite;
}
@keyframes fade
{
  0%   {opacity:1}
  33.333% { opacity: 0}
  66.666% { opacity: 0}
  100% { opacity: 1}
}
@keyframes fade2
{
  0%   {opacity:0}
  33.333% { opacity: 1}
  66.666% { opacity: 0 }
  100% { opacity: 0}
}
@keyframes fade3
{
  0%   {opacity:0}
  33.333% { opacity: 0}
  66.666% { opacity: 1}
  100% { opacity: 0}
}
.container{
  width:100%;
  display:grid;
  grid-auto-flow: dense;
  grid-template: "1fr 1fr 1fr 1fr 1fr " 33.33vh
                  "1fr 1fr 1fr 1fr 1fr " 33.33vh
                  "1fr 1fr 1fr 1fr 1fr " 33.33vh;
  grid-gap: 5px;
}
.container .box img{
  position:absolute;
  top: 0;
  left:0;
  width:100%;
  height:100%
  object-fit:cover;
}

.container .box{
  position: relative;
  background: #ccc;
}

.container .box.a {
  grid-row:span 2;
}
.container .box.e {
  grid-row:span 2;
}

.container .box.b
  {
  grid-column: span 2;
}
.container .box.f
  {
  grid-column: span 2;
}
.container .box.i {
  grid-row:span 2;
}
@media (max-width:991px){
.container{
  grid-template: "1fr 1fr 1fr 1fr 1fr " 350px
                  "1fr 1fr 1fr 1fr 1fr "  350px
                  "1fr 1fr 1fr 1fr 1fr "  350px;
  grid-gap: 5px;
}

}
@media (max-width:760px){
.container{
  grid-template: "1fr 1fr 1fr 1fr 1fr " 250px
                  "1fr 1fr 1fr 1fr 1fr "  250px
                  "1fr 1fr 1fr 1fr 1fr "  250px
                    "1fr 1fr 1fr 1fr 1fr "  250px
                    "1fr 1fr 1fr 1fr 1fr "  250px;
  grid-gap: 5px;
}

}

.social-menu ul {
  position: absolute;
  /* top: 50%; */
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  margin: 2%;
  display: flex;
}
.social-menu ul li {
  list-style: none;
  margin: 0 10px;
}
.social-menu ul li .fa {
  color: #000000;
  font-size: 25px;
  line-height: 50px;
  transition: .5s;
}
.social-menu ul li .fa:hover {
  color: #ffffff;
}
.social-menu ul li a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  text-align: center;
  transition: 0.5s;
  transform: translate(0,0px);
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.5);
}
.social-menu ul li a:hover {
  transform: rotate(0deg) skew(0deg) translate(0, -10px);
}
.social-menu ul li:nth-child(1) a:hover {
  background-color: #3b5999;
}
.social-menu ul li:nth-child(2) a:hover {
  background-color: #55acee;
}
.social-menu ul li:nth-child(3) a:hover {
  background-color: #e4405f;
}
.social-menu ul li:nth-child(4) a:hover {
  background-color: #cd201f;
}
.social-menu ul li:nth-child(5) a:hover {
  background-color: #0077B5;
}
*{
  margin: 0;
  padding: 0;
  font-family: "montserrat",sans-serif;
  box-sizing: border-box;
}

.gallery-section{
  width: 80%;
  padding: 10px;
  background: #f1f1f1;
  margin-left: auto;
  margin-right: auto;
}

.inner-width{
  width: 80%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.gallery-section h1{
  text-align: center;
  text-transform: uppercase;
  color: #333;
}

.gallery-section .gallery{
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

.gallery-section .image{
  flex: 25%;
  overflow: hidden;
  cursor: pointer;
}

.gallery-section .image img{
  width: 100%;
  height: 100%;
  transition: 0.4s;
}

.gallery-section .image:hover img{
  transform: scale(1.4) rotate(15deg);
}

@media screen and (max-width:960px) {
  .gallery-section .image{
    flex: 33.33%;
  }
}

@media screen and (max-width:768px) {
  .gallery-section .image{
    flex: 50%;
  }
}

@media screen and (max-width:480px) {
  .gallery-section .image{
    flex: 100%;
  }
}
span {
    color: gray;
}


.footer {
	float:inherit;
  position: fixed;
  bottom: 0;
  width: 80%;
  color: white;
  text-align: center;
}
