:root {
  interpolate-size: allow-keywords;

  --White: hsl(0, 0%, 100%);
  --Pink: hsl(275, 100%, 97%);
  --Purple: hsl(292, 16%, 49%);
  --DarkPurple: hsl(292, 42%, 14%);
}

html {
  background-color: var(--Pink);
  background-image: url(../images/background-pattern-desktop.svg);
  background-repeat: repeat-x;
  background-position: top;
  margin: auto;
  height: 100vh;
  color: var(--DarkPurple);
  font-family: "Work Sans", sans-serif;
  font-style: normal;
}

body {
  background-color: var(--White);
  position: relative;
  max-width: 525px;
  margin: auto;
  margin-top: 50px;
  padding-top: 2px;
  padding-bottom: 25px;
  padding-inline: 40px;
  top: 120px;
  border-radius: 15px;
  box-shadow: 5px 30px 50px rgba(41, 15, 58, 0.15);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 13px;
  margin-left: 4px;
}

h1 img {
  margin-right: 8px;
}

.accordion {
  background-color: var(--White);
  color: var(--DarkPurple);
  display: block;
  font-size: 18px;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 5px;
  width: 95%;
  text-align: left;
  border: none;
  outline: none;
  transition: all 0.4s;
}

.panel {
  margin-top: -5px;
  margin-inline: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s;
}

.accordion:hover {
  color: #9d30d1;
}

.accordion:after {
  content: "";
  position: absolute;
  left: 88.5%;
  height: 31px;
  width: 30px;
  background-image: url(../images/icon-plus.svg);
  margin-top: -5px;
  margin-right: -2px;
}

.active:after {
  content: "";
  position: absolute;
  left: 88.5%;
  height: 31px;
  width: 30px;
  background-image: url(../images/icon-minus.svg);
}

p {
  color: var(--Purple);
  line-height: 1.5;
}

hr {
  opacity: 0.05;
}

a {
  text-decoration: none;
  color: var(--Black);
}

@media only screen and (max-width: 375px) {
  html {
    background-image: url(../images/background-pattern-mobile.svg);
  }

  body {
    max-width: 275px;
    padding-inline: 25px;
    padding-bottom: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  h1 img {
    margin-right: 12px;
    height: 25px;
  }

  .accordion {
    font-size: 16px;
    max-width: 100%;
  }

  .accordion:after {
    left: 85%;
    margin-top: -8px;
  }

  p {
    font-size: 14px;
  }
}
