body {
  background-color: #D6D6D6;
  scroll-behavior: smooth;
}

#navbarNav {
  float: right;
}

#ash{
  font-family: 'Amatic SC', cursive;
  font-weight: bold;
  font-size: 2rem;
  margin-top: -0.6rem;
}

.bg-dark {
  background-color: rgba(17,17,17,.95) !important;
  transition: 200ms ease;
  max-height: 55px;
  min-height: 55px;
}

#git{
  font-family: 'News Cycle', sans-serif;
  color: rgb(204,222,240);
  list-style: none;
  position: relative;
  display: inline;
  margin-right: 15px;

}

#git:hover{
  text-decoration: none;
  transition: 2s;
  color: #D2E1ED;
}

#git::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0px;
  height: 1.5px;
  background: white;
  transition: all 0.45s;
}

#git:hover::after {
  width: 100%;
  left: 0;
}

.nav-item{
  font-family: 'News Cycle', sans-serif;
  font-size: 1.1rem;
}

.btn-light{
  font-family: 'News Cycle', sans-serif;
  font-size: 1.3rem;
  background-color: transparent !important;
  color: white;
  border-width: 2px;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: 2rem;
  border-radius: 1rem;
}

.btn-light:hover{
  color:white;
  text-decoration: underline;
}

#icon{
  padding-right: 2.9rem;
  opacity: 0.93;
  transition: all 0.3s;
}

#icon:hover{
  opacity: 0.5;
}

#navbar {
  transition: 1s;
  margin-top: 1.2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}


#navbar2 {
  transition: 1s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* fadeIn */
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

.gifs{
  height: 70%;
  border-radius: 0.4rem;
}

#delay, #delay2, #delay3, #delay4{
  color: white;
  animation: fadeIn 2s;
}


/* to bring back the navbar */
.bg-dark.scrolled {
  display: block !important;
}

.bg1 {
  background: linear-gradient(rgba(0.3, 0, 0.4, 0.6),
  rgba(0.3, 0, 0.4, 0.6)), url("resources/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 700px;
  /* width:auto; */
}

.bg2{
  background: linear-gradient(rgba(0.3, 0, 0.4, 0.6),
  rgba(0.3, 0, 0.4, 0.6)), url("resources/background.png");
  background-size: cover;
  background-position: center;
  height: 1500px;
  width:auto;
}

/* Ash Mohseni */
.ml11 {
  margin-top: 2rem;
  margin-left: 3rem;
  font-weight: 700;
  font-size: 4.5em;
  font-family: 'Amatic SC', cursive;
  letter-spacing: 0.36rem;
  color: #F6F6F6;
}

.ml11 .text-wrapper {
  position: relative;
  display:inline-block;
  padding-top: 0.1em;
  padding-right: 0.05em;
  padding-bottom: 0.15em;
}
.ml11 .line {
  opacity: 0;
  position: absolute;
  left: 0;
  height: 100%;
  width: 3px;
  background-color: #fff;
  transform-origin: 0 50%;
}
.ml11 .line1 {
  top: 0;
  left: 0;
}
.ml11 .letter {
  display: inline-block;
  line-height: 1em;
}
/* End Ash Mohseni */

/* Start Junior Developer */
.ml12 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 4.8em;
  margin-left: 3rem;
  font-weight: 300;
  color: #F6F6F6;
}
.ml12 .text-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 0.1em;
  padding-right: 0.05em;
  padding-bottom: 0.15em;
}
.ml12 .line {
  opacity: 0;
  position: absolute;
  left: 0;
  height: 100%;
  width: 3px;
  background-color: #fff;
  transform-origin: 0 50%;
}
.ml12 .line1 {
  top: 0;
  left: 0;
}
.ml12 .letter2 {
  display: inline-block;
  line-height: 1em;
}
/* End Junior Developer */


/* Start About Me */
.ml6 {
  position: relative;
  font-weight: 300;
  font-size: 3.9em;
  font-family: 'Source Sans Pro', sans-serif;
margin-top: -3rem;
}

.content {
  /* height: 600px; */
  background: linear-gradient(rgba(0.3, 0, 0.4, 0.6),
  rgba(0.3, 0, 0.4, 0.6)), url("resources/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #F6F6F6;
  height: 700px;
  width:auto;
}

.skill {
  /* height: 600px; */
  background: linear-gradient(rgba(0.3, 0, 0.4, 0.6),
  rgba(0.3, 0, 0.4, 0.6)), url("resources/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #F6F6F6;
  height: 840px;
  width:auto;
}

.projects {
  /* height: 600px; */
  background: linear-gradient(rgba(0.3, 0, 0.4, 0.6),
  rgba(0.3, 0, 0.4, 0.6)), url("resources/background.png");
  background-size: cover;
  background-position: center;
  background-position: center;
  color: #F6F6F6;
  height: 900px;
  width:auto;
}

span{
  font-weight: bold;
}
.aboutMe{
  font-size: 1.5rem;
  font-family: 'News Cycle', sans-serif;
  color: white;
  margin-left: 20rem;
  margin-right: 20rem;
  margin-top: -5rem;
  text-align: justify;
  background-color: rgba(199, 201, 200, 0.3);
  padding: 1rem;
  border-radius: 1rem;
}
/* End About Me */


/* second affect */
.about {
  max-width: 600px;
  padding: 100px 0;
  transform-style: preserve-3d;
  transform: perspective(800px);
}


/* Navbar underline */
#underline {
  list-style: none;
  position: relative;
  display: inline;
  margin-right: 15px;
}

#underline::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0px;
  height: 1.3px;
  background: white;
  transition: all 0.35s;
}

#underline:hover::after {
  width: 100%;
  left: 0;
}

/* Start Skills */
.ml13 {
  font-size: 3.9em;
  font-family: 'Source Sans Pro', sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  margin-left: 2rem;
  margin-top: -3rem;
}

.ml14 {
  font-size: 3.9em;
  font-family: 'Source Sans Pro', sans-serif;
  text-transform: uppercase;
  /* letter-spacing: 0.5em; */
  font-weight: 300;
  margin-left: 2rem;
  margin-top: -4rem;
  margin-bottom: 1rem;
}

.ml21 {
  font-size: 3.9em;
  font-family: 'Source Sans Pro', sans-serif;
  text-transform: uppercase;
  /* letter-spacing: 0.5em; */
  font-weight: 300;
  margin-left: 2rem;
  margin-top: -4rem;
  margin-bottom: 1rem;
}

.project-margin{
  margin-top: -5rem;
}

h3{
  font-family: 'News Cycle', sans-serif;
}
hr{
  border: 0;
   clear:both;
   display:block;
   width: 70%;
   background-color:#EEE;
   height: 2px;
   border-radius: 0.4rem;
}
.projects h3{
  font-family: 'Oswald', sans-serif;
}

.projects p{
  font-family: 'BenchNine', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

h1{
  font-weight: bold;
}

.ml13 .letter {
  display: inline-block;
  line-height: 1em;
}

.skill-img{
  width:25%;
  transition: all 1.5s ease;
}

.skill-img:hover{
    transform: scale(1.3);
    transition: all 1.5s ease;
}

.skill-img2{
  border-radius:0.45rem;
  border-style: solid;
  border-width: 3px;
  width:100%;
  transition: all 1.0s ease;
  cursor: pointer;
  border-color: #F2F2F2;
}

.skill-img2:hover{
    border-style:solid;
    border-color: #171717;
    transform: scale(1.1);
    transition: all 1.0s ease;
}

#skill-img2{
  transition: all 1.0s ease;
}

#skill-img2:hover{
  transform: scale(1.1);
  transition: all 1.0s ease;
}


.container{
  margin-top:-6rem;
}
/* End Skills */

@media only screen and (max-width: 968px) {
.aboutMe{
  margin-left: 0rem;
  margin-right:0rem;
  font-size: 1rem;
}
.ml12, .ml11, .ml6, .ml13, .ml14, .ml21{
  font-size: 2rem;
}
h3{
  font-size: 1.1rem;
}
h1{
  font-size: 1.4rem;
}

#navbar{
  min-height: 60px;
  max-height: 300px;
}

#icon{
  width:15vw;
}

.projects{
  height: 840px;
}
.content{
  height: 600px;
}
.skill{
  height: 750px;
}

#icon{
  padding-right: 0.4rem;
  /* height:20%; */
}

}


#myBtn {
  animation: fadeIn 2s;
  height: 10%;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  transition: all 1.0s ease;
}

#myBtn:hover {
  transform: scale(1.4);
  transition: all 1.0s ease;
}
