* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

.about {
  /*    background: blue;*/
  overflow-y: auto;
  background-image: url("../img/img_background.jpg");
  /* Full height */
  height: 100vh;
  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.sidebar-button {
  font-size: 2.5em;
  padding-left: 15px;
  position: fixed;
  top: 5px;
  z-index: 3;
  display: none;
}

.contactme-icons {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.contactme-icons a i {
  color: white;
  font-size: 36px;
}

.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.about-me {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#name {
  padding: 15px 0px;
  margin: 0;
}

#intro {
  padding: 0 5px;
}

#info {
  color: darkgoldenrod;
  background: aliceblue;
  margin: 15px 50px 15px 55px;
  padding: 1rem;
}
.heading {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.skills {
  padding: 20px;
  background-color: antiquewhite;
}

.skills-detail {
  display: grid;
  grid-template-columns: 50% 50%;
}

.my-experience {
  margin-left: 5%;
}

.development-skills {
  margin-right: 50px;
  margin-left: 10px;
}

.fields {
  padding: 20px 10px 5px 5px;
}

.projects-card {
  display: grid;
  justify-content: center;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, 315px);
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-action {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.contact {
  background-color: khaki;
  padding-bottom: 20px;
}

.contact-form {
  display: grid;
  grid-template-columns: 65% 25%;
  grid-column-gap: 5%;
  padding-bottom: 50px;
}

form {
  padding: 10px;
}

input {
  width: 90% !important;
}

ul li {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 0px;
}

/*Style for sidenav*/

.avatar {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.card .card-content .card-title {
  font-size: 20px !important;
}

.nav-me {
  padding: 20px;
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
}

.close-sidebar {
  display: none;
  font-size: 2.5em;
  margin-right: 10px;
  color: antiquewhite;
}

ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav ul li {
  padding: 15px;
  text-transform: uppercase;
  color: aliceblue;
  border-bottom: 1px solid #795548;
  width: 100%;
}

ul li:hover {
  background-color: #d7ccc8;
  pointer-events: visible;
}


/*Style for responsiveness*/

@media screen and (min-width:960px) {

  .detail {
    margin-left: 25%;
    width: 75%;
  }

  .nav {
    position: fixed;
    background: #3e2723;
    height: 100vh;
    width: 25%;
    overflow-y: auto;
  }
}

@media screen and (max-width: 960px) {
  .nav {
    position: fixed;
    top: 0;
    background: #3e2723;
    height: 100vh;
    width: 0;
    overflow-y: auto;
    transition: width 0.2s ease-out;
    z-index: 999;
  }

  .nav-active {
    max-height: 100%;
    width: 320px;
    transition: width 0.2s ease-in;
  }

  .content {
    display: grid;
    margin: 0 auto;
    grid-template-columns: 100%;
  }

  .nav-me {
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: 90% 10%;
    justify-content: center;
  }

  .close-sidebar {
    display: block;
  }

  .sidebar-button {
    display: block;
  }
}

@media screen and (max-width: 720px) {

  .skills-detail {
    display: flex;
    flex-direction: column;
  }

  .development-skills {
    margin-left: 5%;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  form {
    padding: 0 20px 20px 20px;
  }

  .contact-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: burlywood;
  }

  .contact-icons li {
    padding: 10px;
  }
}

@media screen and (max-width: 420px) {

  .contact-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: burlywood;
  }

  .contact-icons li {
    padding: 10px;
  }

  #name {
    font-size: 24px;
  }

  #intro {
    font-size: 16px;
  }
}

@media screen and (max-width: 380px) {

  /*changing default width on small screen as provided by materialize framework*/
  .row .col.s6 {
    width: 100%;
  }

  #name {
    font-size: 20px;
  }

  #intro {
    font-size: 16px;
  }

  #info {
    font-size: 14px;
  }
}

@media screen and (orientation: landscape) {
  #name {
    font-size: 28px;
  }

  #intro {
    font-size: 20px;
  }

  #info {
    font-size: 16px;
  }
}

@media screen and (max-height: 380px) {
  .nav ul li {
    padding: 8px;
  }
}

@media screen and (max-height: 320px) {
  .nav ul li {
    padding: 8px;
  }

  #name {
    font-size: 18px;
  }

  #intro {
    font-size: 12px;
  }
}
