* {
  box-sizing: border-box;
}

body

{ background-image: url(../assets/illusionbg2.gif);background-repeat: no-repeat;background-size: cover;
}

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

@font-face {
  font-family: Montserrat;
  src: url(../assets/montserrat1/Montserrat-Regular.ttf);
}
p
{
font-family: Montserrat;
font-size: x-small;
}

@font-face {
  font-family: Montserrat;
  src: url(../assets/Montserrat/Montserrat-Regular.ttf);
}
dt
{
  font-family: Montserrat;
  font-size: smaller;
}

body:has(.profile-card-example) {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: Montserrat;
  color: #ffffff;
}

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: rgb(0,239,255);
  background: linear-gradient(0deg, rgb(79, 2, 2) 40%, #5431ff 100%);
  box-shadow: 0 0 50px 50px rgba(0,0,0,.1);
  transition: .25s;
}

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(0, 0, 0);
  }

    p {
    margin: 2rem 0 1rem;
    color: rgb(255, 255, 255);
  }

}
    dt {
    margin: 2rem 0 1rem;
    color:rgb(42, 42, 42);
  }
  



button.profile-card-example-button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: .25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0,239,255,1);
  transform: scale(.8);
  transition: .25s;
}
button.profile-card-example-button:focus {
  outline: none;
  background: #202592;
}
button.profile-card-example-button svg {
  position: absolute;
  top: calc(1.25rem - 12px);
  left: calc(1.25rem - 12px);
  stroke: #2027a9;
  transition-delay: .25s;
}
button.profile-card-example-button:focus svg {
  stroke: rgb(255, 255, 255);
}
button.profile-card-example-button svg:nth-of-type(2) {
  opacity: 0;
  transition-delay: 0ms;
}

.profile-card-example-img {
  position: relative;
  
  width: 10em;
  height: auto;
  border: 5px solid #ffffff;
  border-radius: 10em;
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
  transition: .25s .15s;
}

.profile-card-example-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: -3rem;
  margin-bottom: 0;
  padding: 5rem 0 3rem;
  text-align: center;
  background: rgb(255, 255, 255);

  dt {
    margin-top: .25rem;
    padding-top: .25rem;
    border-top: 1px solid rgba(255, 255, 255, 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: .3rem;
    transition: .25s .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: rgb(42, 42, 42);
}

/* Deze styles zijn van toepassing als je op de knop klikt !deze knop staat uit!*/
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: .25s;
}

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

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

/*hieronder een rollover(hover) functie voor het portret van mijn gezicht*/

.profile-card-example-img-wrapper {
  display: grid;
  img {
    grid-area: -1 / 1;
    transition: none;
  }
  img:last-child {
    order: -1;
  }
}

.profile-card-example-img-wrapper:hover {
  img:first-child {
    visibility: hidden;
  }
}