@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
* {
  font: inherit;
}

button{
    cursor: pointer;
}

button:focus,
button:active,
input:focus,
textarea:focus {
    outline: none !important;
    border: none !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root{
    --ff: "Work Sans", sans-serif;

    --fw-normal: 400;
    --fw-semi-bold: 600;
    --fw-bold: 700;

    --fs-main: 1em;
    --fs-h1: 3.5em;
    --fs-h2: 1.1em;

    --fs-mobile-h1: 2.5em;

    --clr-white: hsl(0, 0%, 100%);
    --clr-background: hsl(275, 100%, 97%);
    --clr-grayish-purple: hsl(292, 16%, 49%);
    --clr-text: hsl(292, 42%, 14%);
    --clr-hover: hsl(293, 100%, 43%);
}

h1{
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    transition: .3s;
}

h2{
    font-size: var(--fs-h2);
    font-weight: var(--fw-semi-bold);
    transition: .3s;
}

h2:hover{
    color: var(--clr-hover);
    cursor: pointer;
}


/* Styling */
body{
    background-image: url(images/background-pattern-desktop.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-color: var(--clr-background);
    font-family: var(--ff);
    font-size: var(--fs-main);
    color: var(--clr-text);
    display: grid;
    place-items: center;
    font-weight: var(--fw-normal);
}

.container{
    display: grid;
    gap: 1.5em;
    background-color: var(--clr-white);
    place-items: center;
    padding: 2em 2em .5em 2em;
    border-radius: 2.5vh;
    box-shadow: 0 .5em 1.5em -1em rgb(255, 147, 250);
}

.container header{
    display: flex;
    justify-content: start;
    gap: 1.5em;
    align-items: center;
    min-width: 100%;
    padding-left: .5em;
}

.container-main{
    display: grid;
    place-items: center;
    gap: 1.7em;
}

.container-ex p{
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 52ch;
    opacity: .7;
}

.faq-block{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3.5em;
}

.faq-block img{
    cursor: pointer;
}

.container-other-faqs .faq-block{
    padding-block: 1.5em;
    border-top: 1px solid var(--clr-background);
}

@media (width<=44.375em){
    body{
        padding: 1em;
    }

    h1{
        font-size: var(--fs-mobile-h1);
    }

    h2{
        font-weight: var(--fw-bold);
    }
}