@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --White: hsl(0, 0%, 100%);
  --Light-pink:hsl(275, 100%, 97%);
  --Grayish-purple: hsl(292, 16%, 49%);
  --Dark-purple: hsl(292, 42%, 14%);
}

body {
  font-family: 'Work Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-image: url(../images/background-pattern-desktop.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top;
  background-color: hsl(275, 100%, 97%);
  font-size: 16px;
}

.container {
  width: 40%;
  background-color: var(--White);
  border-radius: 10px;
  padding: 20px;
  position: absolute;
  top: 200px;
}

.container h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.box:not(:last-child) {
  border-bottom: 1px solid var(--Light-pink);
  padding: 20px 0;
}

h2 {
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 20px;
}

h2 + p {
  height: 0;
  font-weight: 500;
  overflow: hidden;
  color: var(--Grayish-purple);
  line-height: 1.4;
  transition: .5s;
}

.active {
  height: 100px;
}

@media (max-width: 995px) {
  .container {
    width: 400px;
    top: 100px;
  }
}

@media (max-width: 776px) {
  .container {
    width: 340px;
    top: 50px;
  }

  .container h1 {
    font-size: 25px;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  h2 + p {
    line-height: 1.2;
    transition: .5s;
  }
  
}