html {
  scroll-behavior: smooth;
}
body, html {
  height: 100%;
  margin: 0;
  background-color: #2d2e2d;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../image/bgpic.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.btn {
  border: 2px solid black;
  background-color: #ffffff00;
  color: black;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;	
}
  
.success {
  border-color: #4CAF50;
  color: white;
}

.success:hover {
  background-color: #4CAF50;
  color: white;
}

.info {
  border-color: #2196F3;
  color: dodgerblue
}

.info:hover {
  background: #2196F3;
  color: white;
}


#mySidenav div {
  position: absolute;
  left: -80px;
  transition: 0.3s; 
  padding: 15px; 
  width: 100px; 
  text-decoration: none;
  font-size: 20px;
  color: white; 
  border-radius: 0 5px 5px 0; 
}

#mySidenav div a{
	color: white;
	text-decoration: none;
}

#mySidenav div:hover {
  left: 0;
}

#about {
  top: 20px;
  background-color: #4CAF50; /* Green */
}

#resume {
  top: 80px;
  background-color: #2196F3; /* Blue */
}

#github {
  top: 140px;
  background-color: #f44336; /* Red */
}

#contact {
  top: 200px;
  background-color: #040404 /* Dark Black */
}

.sidenav{
	position: relative;
	top: 30%;
	z-index: 1000;
}

#about-me{
	    display: none;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #ff00008f;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.8);
  z-index: 2;
  cursor: pointer;
  
}

.overlay-text{
  position: absolute;
  left: 50%;
  font-size: 50px;
  color: white;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
}

.overlay-email{
	top:40%;
}

.overlay-comment{
	top:50%;
}

.overlay-read-more{
	top:60%;
}

.overlay-text a{
  color: white;
  text-decoration: none;
}

.w3-container{
	width: 66.66666%;
	margin: 100px auto 100px auto;
    color: white;
    font-size: 1.4vw;
}
/* @keyframes slideInFromLeft {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(50%);
	}
}
 #mySidenav {
	animation: 1s ease-out 0s 1 slideInFromLeft;
 } */

@media screen and (max-width: 600px) {
	.hero-image {
	  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../image/mbgpic.jpg");
	  position: relative;
	}
	.hero-text{
		top: 70%;
	}
	.hero-text h1{
		font-size:35px !important;
	}
	.hero-text P{
		font-size:1.1em !important;
	}
	
	#overlay {
		background-color: rgba(0,0,0,0.9);
	}
	.overlay-text{
		font-size: 26px;
		text-align: center;
	}

	#mySidenav div {
		left: -95px;
		width: 110px; 
		font-size: 20px;
	}
 
 
	.w3-container{
		line-height: 140%;
		width: 90%;
		padding:20px;
		margin: 30px auto 30px auto;
		color: white;
		font-size: 20px;
	}
}