* {
  box-sizing: border-box;
}

html:has(.visitekaartje) {
  height: 100vh;
}

body:has(.visitekaartje) {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: #000000;
}

article.visitekaartje {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  width: 50vw;
  max-width: 35em;
  min-width: 30em;
  height: 20em;
  border-radius: 4rem;
  background: linear-gradient(0deg, rgb(255, 225, 186) 40%, hsl(324, 100%, 76%) 100%);
  box-shadow: 0 0 20px 20px rgba(0,0,0,.1);
  transition: .25s;
}

  /* Je kunt selectors nesten! */
  h1 {
    color: rgb(0, 0, 0);
    text-align: center;
    margin-left: 142px;
    height: 0em;
    margin-top: 40px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  }

  header p {
    text-align: center;
    height: 100px;
    padding-top: 30px;
    padding-left: 150px;
  }
 
  main p {
    text-align:center;
    padding-right: 310px;
    font-style: italic;
    padding-top: 10px;
  }

.visitekaartje-img {
 position:absolute;
  object-fit: cover;
  top: 50px;
  width: 130px;
  height: 130px;
  border-radius: 10em;
  border: 4px solid #ffffff;
  box-shadow: 0 0 2px 2px rgba(116, 66, 100, 0.278);
  transition: .25s .15s;
  margin-left: 60px;
  margin-bottom: 300px;
}

.visitekaartje-dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "html-dd css-dd js-dd"
    "html-dt css-dt js-dt"
    ;
  justify-items: center;
  align-items: start;
  width: 100%;
  margin-top: 1rem;
  text-align: center;

  dt {
    margin-top: .2rem;
    padding-top: .25rem;
    border-top: 1px solid rgba(0,0,0,0.3);
    font-weight: bold;
    &:nth-of-type(1) {
      grid-area: html-dt;
    }
    &:nth-of-type(2) {
      grid-area: css-dt;
    }
    &:nth-of-type(3) {
      grid-area: js-dt;
    }
  }

  dd {
    margin: 0;
    }
  }

.visitekaartje p {
  margin: 0;
}

.visitekaartje > p {
  width: 100%;
  margin-top: 0;
  padding: 3rem 2rem;
  border-radius: 0 0 1rem 1rem;
  text-align: center;
  background: rgba(255,255,255, 0.5);
}
