.content { 
  margin: 1rem 0 1rem 0;
/* Space ubove heading when clicking nav link */
  scroll-margin-top: 4rem;
  background-color: var(--bg-color);

  h2,
  h3,
  h4,
  h5,
  p,
  a .btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  ul {
    margin-left: 2.5rem;
  }

  h2, h3, h4, h5, h6 {
    font-family: "code-saver", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  p {
    max-width: 85ch;
  }
}
form {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
  width: 50%;
}
input, button, textarea, select {
  font: inherit;
  border: 1px solid var(--border-color);
  border-radius: 1px;
  padding: 0.2rem;
}
/* Main button Stylin */
.button-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: max-content;
}

.button-group a {
  padding: 15px 30px;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

.button-empty {
  background-color: var(--bg-color);
  color: var(--heading-color);
  border: 2px solid var(--heading-color);
}

.button-empty:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
  border: 2px solid var(--secondary-color);

}

.button-filled {
  background-color: var(--heading-color);
  color: var(--bg-color);
  border: 2px solid var(--heading-color);
}

.button-filled:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
  border: 2px solid var(--secondary-color);
}
.content .btn {
  margin-top: 10px;
}

/* Section 1 */
#intro {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Article grid */
.home-article {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 0.5rem;
  margin: 1rem 0 1rem 0;
}

.tile {
  min-height: 37rem;
  max-height: 37rem;
  display: grid;
  grid-template-rows: 30% max-content 35% max-content 20%;
  padding: 1em;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s;

  box-shadow: var(--box-shadow-tile);
}
.tile:hover {
  transform: translateY(-5px);
}
.project-img-container {
  width: 100%; /* Full width */
  display: flex; 
  justify-content: center; 
  align-items: center;
  overflow: hidden; 
  position: relative; 
}

.project-img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
  border: 1px solid var(--border-color);
}
.project-img-fit {
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  object-position: center; 
  border: 1px solid var(--border-color);
}

.tile h5 {
  font-size: 18px;
  text-align: center;
  margin: 0 ;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: bold;
}

.tile p a {
 height: inherit;
}


@media (max-width: 600px) {
  #intro {
    height: 85vh;
  }
  .home-article {
    display: flex;
    flex-direction: column;
  }
  .content {
    width: 100%;
  }
  #contact {
    height: 70vh;
  }
  p {
    max-width: auto;
  }
  #left {
    padding: 0;
  }
  #main {
    padding: 0 1rem 0 2.5rem;
  }
  form {
    width: 100%;
    padding: 0.2rem;
  }

}