:root {
    /* Colors */
    --white: hsl(0, 0%, 100%);
    --light-pink: hsl(275, 100%, 97%);
    --grayish-purple: hsl(292, 16%, 49%);
    --dark-purple: hsl(292, 42%, 14%);
    --strong-purple: #aa27e5;
    /* Typography */
    --font-family: 'Work Sans', sans-serif;

    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 700;

    /* Font Sizes */
    --font-size-body: 16px;
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
    text-align: left;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;

}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}


/* 9. Create a root stacking context */
#root,
#__next {
    isolation: isolate;
}

body {
    min-height: 100svh;
    font-family: var(--font-family);
    background: var(--light-pink) url(https://louisverch.github.io/FEM-Accordion/images/background-pattern-mobile.svg) center top/100% 13.5rem no-repeat;
}

main {
    padding: 8.875rem 1.563rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    max-width: 37.5rem;
    border-radius: 0.5rem;
    padding: 1.2rem 1.563rem 0 1.563rem;
    box-shadow: rgb(155, 155, 155) 1px 1px 5px;
}

.header {
    display: flex;
    gap: 2rem
}

.header img {
    max-width: 1.5rem;
}

h1 {
    color: var(--dark-purple);
    font-weight: var(--font-weight-bold);
}

button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 0.92rem;
    border-top: 1px solid rgb(235, 235, 235);
    border-bottom: 1px solid rgb(235, 235, 235);
    border-left: none;
    border-right: none;
    background: #fff;
    padding: 1rem 0;
    font-weight: var(--font-weight-medium);
}

button:first-of-type {
    border-top: none;
}

button:last-of-type {
    border-bottom: none;
}

button:hover {
    cursor: pointer;
    color: var(--strong-purple);
}

.active {
    border: none;
}

.icon-minus {
    display: none;
}

.active .icon-plus {
    display: none;
}

.active .icon-minus {
    display: block;
}

.panel {
    color: var(--grayish-purple);
    font-size: 0.85rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

p {
    padding: 0.9rem 0;
}

button img {
    padding-left: 3rem;
}

@media screen and (min-width:48em) {

    .main-container {
        padding: 2rem 2.6rem 2rem 2.6rem;
    }

    body {
        background: var(--light-pink) url(https://louisverch.github.io/FEM-Accordion/images/background-pattern-desktop.svg) center top/100% 20rem no-repeat;
    }

    h1 {
        font-size: 3rem;
    }

    .header img {
        max-width: 2rem;
    }

    button {
        font-size: 1.1rem;
    }

    p {
        font-size: 1rem;
    }

}