/* @import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f9f5f4;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  color: #2e3c40;
}
nav {
  position: sticky;
  top: 0;
  padding: 0 5%;
  height: 60px;
  background-color: #d9e6ff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
nav a {
  text-transform: uppercase;
  background-color: #d9e6ff !important;
  margin-right: 20px;
  padding: 10px 10px;
  transition: 0.4s;
}
nav a:hover {
  color: #462d74 !important;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.landing-info {
  margin-top: 30px;
  width: 100%;
  padding: 0 170px;
  display: flex;
  flex-direction: row;
}
.description {
  flex: 2;
  padding: 0 10px;
}
.description h1 {
  margin-top: 30px;
  font-size: 30px;
}
.description p {
  margin-top: 40px;
  font-size: 22px;
  line-height: 30px;
  text-align: justify;
  text-justify: inter-word;
  letter-spacing: 2px;
}
.description a {
  font-weight: bold;
}
.landing-img {
  flex: 3;
  padding-left: 100px;
}
.landing-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.js-projects {
  margin-top: 30px;
  padding-top: 10px;
  background-color: #d9e6ff;
}
.js-projects h1 {
  background-color: #d9e6ff;
  text-align: center;
}
.project-container {
  background-color: #d9e6ff;
  margin-bottom: 10px;
  padding: 40px 0;
  display: grid;
  row-gap: 80px;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  justify-items: center;
}
.project-item {
  display: flex;
  flex-direction: column;
  height: 340px;
  width: 420px;
  overflow: none;
  border-radius: 0.5em;
  box-shadow: 0 1.5em 2.5em -0.5em rgba(#000000, 0.1);
  transition: all 0.3s linear;
}
.project-preview {
  position: relative;
  height: 80%;
  border-radius: 0.5em 0.5em 0 0;
}
.project-preview img {
  height: 100%;
  width: 100%;
  border-radius: 0.5em 0.5em 0 0;
  object-fit: cover;
}
.demo-code {
  opacity: 0;
  position: absolute;
  background-color: #9aa2d66b;
  bottom: -40px;
  width: 100%;
  border: 2px solid black;
  /* border-radius: 5px; */
  transition: all 0.3s linear;;
  border: none;
}
.demo-code a {
  background-color: transparent;
}
.demo-code button {
  padding: 15px 20px;
  background-color: transparent;
  cursor: pointer;
  font-size: 20px;
  width: 49.5%;
  border: none;
  transition: 0.3s;
  outline: none;
  text-transform: uppercase;
  /* border-radius: 5px; */
  /* background-color: white; */
}
.demo-code button:hover {
  background-color: rgb(54, 55, 58);
  color: white;
}
.project-item:hover img {
  opacity: 0.8;
  transition: 0.45s;
}
.project-item:hover .demo-code {
  opacity: 1;
  /* transition: 0.3s; */
  bottom: 0;
}
.project-title {
  display: flex;
  height: 20%;
  align-items: center;
  justify-content: center;
  background-color: #838fd5;
  border-radius: 0 0 0.5em 0.5em;
}
.project-item:hover {
  transform: scale(1.1);
}
.project-title h2 {
  color: white;
  background-color: transparent;
}
.footer {
  width: 100%;
  bottom: 0;
  /* position: fixed; */
  text-align: center;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  /* color: #6f6f71; */
}
#user-name {
  background-color: transparent;
}
@media (max-width: 1200px) {
  .landing-info {
    flex-direction: column;
    padding: 0;
  }
  .landing-img {
    display: none;
  }
  .description h1 {
    margin-top: 0;
  }
  .project-container {
    row-gap: 30px;
  }
}
@media (max-width: 450px) {
  nav a {
    font-size: 15px;
    margin-right: 5px;
  }
  .description h1 {
    margin-top: 0px;
    font-size: 28px;
  }
  .description p {
    margin-top: 20px;
    font-size: 20px;
  }
  .project-container {
    grid-template-columns: 1fr;
  }
  .project-item {
    /* height: 170px; */
    /* width: 250px; */
    height: 70vw;
    width: 90%;
  }
  .project-title h2 {
    font-size: 15px;
  }
  .js-projects h1 {
    font-size: 20px;
  }
  .demo-code {
    display: none;
  }
}
