@font-face {
  font-family: WorkSans;
  src: url("./assets/fonts/WorkSans-VariableFont_wght.ttf");
}
*,
::before,
::after {
  margin: 0;
  box-sizing: border-box;
}

:root {
  font-family: WorkSans, sans-serif;
}

body {
  background-color: hsl(275, 100%, 97%);
  display: grid;
  place-content: center;
  grid-template-columns: 1fr;
  justify-content: center;
  position: relative;
  width: 100%;
}

body > picture {
  width: 100%;
}
body > picture > img {
  width: 100%;
}

@media only screen and (min-width: 40rem) {
  body > picture > img {
    width: auto;
    object-fit: cover;
  }
}
.card {
  background-color: hsl(0, 0%, 100%);
  position: absolute;
  top: 10rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 16px;
  padding: 1.5rem;
  width: calc(100% - 2 * clamp(1rem, 5vw, 3rem));
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

header {
  font-size: 2em;
  font-weight: 800;
  color: hsl(292, 42%, 14%);
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

header > img {
  height: 0.75em;
}

.section-label {
  font-size: 0.75em;
  font-weight: 600;
  color: hsl(292, 42%, 14%);
  padding: 0.5rem 0rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: start;
}

.section-label img {
  height: 1.75em;
  margin-left: auto;
}

.plus-icon {
  display: inline-block;
}

.minus-icon {
  display: none;
}

.section-label:hover, .section-label:focus {
  color: #AD28EB;
  cursor: pointer;
}

.section-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 1rem;
}
@media only screen and (min-width: 40rem) {
  .section-question {
    font-size: 1.1rem;
  }
}

.section-desc {
  font-size: 0.9rem;
  color: hsl(292, 16%, 49%);
  margin-block: 0.75rem;
  display: none;
}
@media only screen and (min-width: 40rem) {
  .section-desc {
    font-size: 1rem;
  }
}

input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}

input[type=checkbox]:focus ~ img {
  opacity: 0.5;
}

label:has(input[type=checkbox]:checked) .section-desc {
  display: block;
}

label:has(input[type=checkbox]:checked) .plus-icon {
  display: none;
}

label:has(input[type=checkbox]:checked) .minus-icon {
  display: inline-block;
}

hr {
  border: none;
  height: 1px;
  background-color: hsl(295, 50%, 95%);
}/*# sourceMappingURL=style.css.map */