
:root {
    /* Colors */
    --White: hsl(0, 0%, 100%);
    --LightPink: hsl(275, 100%, 97%);
    --GrayishPurple: hsl(292, 16%, 49%);
    --DarkPurple: rgb(47, 21, 51);

    /* Fonts */
    --WorkSans-Bold: "Work Sans", sans-serif;
    --WorkSans-Normal: "Work Sans", sans-serif;;
}

body {
    margin: 0;
    background-color: var(--LightPink);
    align-items: center;
    justify-items: center;
    position: relative;
}

.background-pattern {
    width: 100%;
    position: absolute; /* La fijamos */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0; /* Se manda al fondo */
    background-size: cover;
    background-repeat: no-repeat;
}

.container {
    display: flex;
    justify-items: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem 0 2rem;
    width: 36rem;
    min-height: 36rem;
    border-radius: 1rem;
    box-shadow: 0px 10px 30px rgba(42, 21, 51, 0.4);
    background-color: var(--White);
    position: relative;
    z-index: 2;
}

.title {
    display: flex;
    font-family: var(--WorkSans-Bold);
    font-weight: 800;
    font-size: 32px;
    color: var(--DarkPurple);
}

.faq-question {
    align-items: center;
    font-family: var(--WorkSans-Bold);
    color: var(--DarkPurple);
}

.faq-question:hover {
    color:  hsl(293, 100%, 71%);
    cursor: pointer;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-btn {
    border: none;
    background-color: var(--White);
    cursor: pointer;
}

hr {
    border: solid 1px var(--LightPink);
    margin: 20px 0;
}

.faq-answer {
    font-family: var(--WorkSans-Normal);
    color: var(--DarkPurple);
}

.active { display: block; padding: 1rem 0; }
.hidden { display: none; }

.attribution { 
    font-family: var(--WorkSans-Normal);
    font-size: 11px; 
    text-align: center; 
}

.attribution a { color: hsl(277, 76%, 34%); }

@media (width <= 431px) {
    .container {
        padding: 0 1rem 0 1rem;
    }

    .content-container {
        width: 100%;
        min-height: 100%;
    }
    .title {
        font-size: 24px;
        margin: 0 0 1rem 0;
    }

    .background-pattern img {
        display: none;
    }
    
}