* {
  box-sizing: border-box;
}

html {
  background-color: black;
}

html:has(.profile-card-example) {
  height: 100vh;
}

body:has(.profile-card-example) {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: open sans;
  color: rgb(205, 198, 249);
}

article.profile-card-example {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 50vw;
  max-width: 25em;
  min-width: 20em;
  border-radius: 1rem;
  background: #833ab4;
  background: linear-gradient(
    225deg,
    rgba(131, 58, 180, 1) 0%,
    rgba(253, 29, 29, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  box-shadow: 20px 20px 20px 20px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.1s ease;
}

header.profile-card-example-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-content: flex-end;

  /* Je kunt selectors nesten! */
  h1 {
    margin: 2rem 0 1rem;
    color: rgb(205, 198, 249);
  }
}

.profile-card-example-img {
  position: relative;
  top: 1rem;
  width: 10em;
  height: auto;
  clip-path: circle(35%);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
  transition: 0.25s 0.15s;
}

.profile-card-example-text-box {
  color: black;
}

.profile-card-example-dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "html-dt css-dt js-dt"
    "html-dd css-dd js-dd";
  justify-items: center;
  align-items: start;
  width: 100%;
  margin-top: -3rem;
  margin-bottom: 0;
  padding: 5rem 0 3rem;
  text-align: center;
  background: rgb(255, 255, 255, 0.2);
  color: #202592;

  dt {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-bottom: 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;
      transform: translateY(1rem);
    }
    &:nth-of-type(3) {
      grid-area: js-dt;
    }
  }

  dd {
    margin: 0;
    padding-left: 0.3rem;
    transition: 0.25s 0.3s;
    &:nth-of-type(2) {
      transform: translateY(1rem);
    }
  }
}

.profile-card-example p {
  margin: 0;
}

.profile-card-example > p {
  width: 100%;
  margin-top: 0;
  padding: 3rem 2rem;
  border-radius: 0 0 1rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  color: #202592;
}

/* Deze styles zijn van toepassing als je op de knop klikt */
/* body.is-expanded {
  font-size: 1.15em;
}

body.is-expanded .profile-card-example {
  width: 60vw;
  max-width: 60vw;
}

body.is-expanded .profile-card-example-button svg:first-of-type {
  opacity: 0;
  transition-delay: 0ms;
}

body.is-expanded .profile-card-example-button svg:nth-of-type(2) {
  opacity: 1;
  transition-delay: 0.25s;
}

body.is-expanded .profile-card-example-dl dd {
  font-size: 1.75em;
}

body.is-expanded .profile-card-example-img {
  width: 15em;
} */
