body {
  /* color: white; */
  margin: 0px;
  background-color: whitesmoke;
  font-family: Arial, Helvetica, sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
}

#width {
  margin: 7%;
}

#nav-menu {
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0px;
  transition: all 0.5s ease-out;
  padding: 3px;
  max-width: 100%;
  z-index: 1;
}
/* #resume-button-1 {
  padding: 2px;
   border-radius: 7px;
  border: 2px solid #111D42; 
  
  background-color: #898c94;
 

  
} */
#resume-button-1 {
  /* background-color: white; */
  /* font-weight: bolder; */
  font-size: larger;
  text-decoration: none;
  border-radius: 6px;
  padding: 2% 2%;
  color: #010234;
}
.nav-colored {
  background-color: #636e7b;
  /* width: 100%; */
  z-index: 2;
  top: 0px;
  /* position: fixed;
  overflow: hidden; */

  padding: 10px;
}

#nav-menu > div {
  display: flex;
  vertical-align: middle;
  align-items: center;
}

.name {
  font-size: larger;
}

#nav-menu > div > a {
  padding: 6px 11px;
  font-size: 21px;
  margin: 4px 10px;
  color: black;
  text-decoration: none;
}

.nav-link:hover {
  background-color: whitesmoke;
  border-radius: 5px;
  cursor: pointer;
}

#home {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  height: max-content;
  overflow: hidden;
}

#home > img {
  width: 300px;
  margin: 0% 7%;
  border-radius: 5%;
  transition: transform 0.6s;
  top: 30%;
  left: 50%;
}

#home > img:hover {
  transform: scale(1.05);
}

#user-detail-name {
  color: black;
  justify-content: center;
  width: 100%;
  font-size: 40px;
  padding-left: 5%;
}

hr {
  width: 80%;
  margin-bottom: 7%;
}

#demo {
  color: black;
  font-size: 50px;
  margin: 5% 0%;
}

#resume-button-2 {
  /* background-color: white; */
  font-weight: bolder;
  font-size: larger;
  text-decoration: none;
  border-radius: 6px;
  padding: 2% 2%;
  color: #010234;
}

#resume-button-2:hover,
#resume-button-1:hover {
  background-color: whitesmoke;
  border-radius: 7px;
  color: burlywood;
  cursor: pointer;
}

#con > a > * {
  width: 36px;
  margin: 26px 8px 0px 8px;
}

#con {
  display: flex;
  justify-content: space-between;
}

#about {
  width: 85%;
  font-size: larger;
  display: block;
  margin: 10% auto;
  text-align: center;
  margin-bottom: 16%;
}

#aboutflex {
  display: flex;
  justify-content: space-around;
  margin-top: 5%;
}

#grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9% 8%;
  width: 60%;
  justify-content: center;
  margin: auto;
}

#grid > div {
  vertical-align: middle;
  text-align: center;
  transition: transform 0.2s;
}

#grid > div:hover {
  transform: scale(1.2);
}

#grid p {
  font-size: larger;
}

#grid img {
  width: 80%;
}

.mid {
  display: flex;
  justify-content: center;
  font-size: 37px;
  color: #111d42;
  padding: 10px;
}

#projects {
  margin: 250px 4%;
}
#tools {
  margin: 250px 4%;
}
#projects > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4%;
}

.project-card {
  background-color: #b2dfdb;
  padding: 6%;
  border-radius: 8px;
}

.project-card > img {
  width: 100%;
  height: 260px;
}

.project-card *:hover {
  color: #111d42;
}
.project-title {
  font-size: 30px;
}

.techstack {
  display: flex;
}

/* .project-tech-stack{
color: white;

} */
.flex {
  display: flex;
  justify-content: space-around;
}

.flex img {
  width: 40%;
  border-radius: 3%;
  margin-left: 0%;
}

.projectlinks > a {
  text-decoration: none;
  color: #010234;
  font-weight: bolder;
  border: 2px solid r#111D42;
  padding: 7px;
  border-radius: 5px;
  margin: 7px;
  /* background-color: rgb(250, 250, 250); */
}

.projectlinks > a:hover {
  background-color: #111d42;
  color: white;
}

#stats > div {
  display: flex;
  margin-left: 5%;
  margin-bottom: 15%;
}
#stats img {
  width: 67%;
  transition: transform 0.3s;
}
#statsimg > img {
  width: 85%;
  margin-left: 5%;
}
#stats img:hover {
  transform: scale(1.1);
}

.calendar {
  padding: 1%;
}

#contact {
  /* color: white; */
  display: block;
  margin: auto;
  margin-top: 13%;
  text-align: center;
  font-size: x-large;
}

.contactflex > * {
  text-decoration: none;
  color: black;

  /* transition: width 2s; */
}
.contactflex > *:hover {
  color: #111d42;
}
/* -------------hamburger----------------*/
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background-color: #2087a7;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidebar a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: x-large;
  font-weight: bold;
  color: white;
  display: block;
  transition: 0.3s;
}
.sidebar > div {
  margin-top: 51px;
}
.sidebar a:hover {
  color: rgb(19, 19, 87);
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: f51cb3;
  color: rgb(13, 20, 90);
  padding: 10px 15px;
  border: none;
  display: none;
}

.openbtn:hover {
  background-color: f51cb3;
}

#main {
  padding: 10px;
  margin-top: 6px;

  margin-bottom: 50px;
  width: 100%;
  position: fixed;
  top: 0px;
  left: 0px;
  transition: all 0.5s ease-out;
  z-index: 1;
}

@media only screen and (max-width: 670px) {
  .sidebar {
    padding-top: 15px;
  }
  .sidebar a {
    font-size: 18px;
  }
  #user-detail-name {
    font-size: 25px;
  }
  #home {
    padding-top: 80px;
  }
  #home h1 {
    font-size: 25px;
  }

  #nav-menu > div {
    display: none;
  }
  .openbtn {
    display: block;
  }
  /* #resume-button-1{
border: none;
color: #080947;
background-color: white;
} */
  .name {
    font-family: cursive;
    display: block;
    right: 0;
  }
}

@media only screen and (max-width: 900px) {
  #user-detail-name {
    font-size: 30px;
  }
  #home h1 {
    font-size: 30px;
  }
  #width {
    margin: 4%;
  }
  .name {
    font-family: cursive;
    display: none;
  }
  #nav-menu > div {
    right: 0;
    left: initial;
  }
  #nav-menu > div {
    margin-left: auto;
    margin-right: auto;
  }

  #projects > div {
    grid-template-columns: repeat(1, 1fr);
    gap: 2%;
  }
  .project-title {
    font-size: 25px;
  }
  #home {
    flex-direction: column;
    padding-left: 60px;
    margin: auto;
    text-align: center;
    justify-content: center;
  }
  #home > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }
  #stats > div {
    flex-direction: column;
  }
  #stats > div > img {
    margin-left: 13%;
    margin-bottom: 3%;
  }
  #grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 1065px) and (min-width: 900px) {
  #home img {
    width: 320px;
    margin: 0% 4%;
  }
  #width {
    margin: 5%;
  }
}
.tech__row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.skill__box {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem 0.5rem 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, auto));
}
.skill__box div {
  text-align: center;
}

.skill__box:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.skills__container {
  row-gap: 0;
}

/* everything should be taken care */