@import url("fonts.css");

:root {
	--white: hsl(0, 0%, 100%);
	--light-pink: hsl(275, 100%, 97%);
	--grayish-purple: hsl(292, 16%, 49%);
	--dark-purple: hsl(292, 42%, 14%);
	--font-regular: 400;
	--font-semibold: 600;
	--font-bold: 700;
	font-size: 16px;
}

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

body {
	font-family: "Work Sans", sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: calc(100vh - 8rem);
	gap: 2rem;
	background-color: var(--light-pink);
	position: relative;
	padding: 0 1.5rem;
	margin: 0;
	width: 100%;
	background-image: url("../images/background-pattern-desktop.svg");
	background-position-y: top;
	background-position-x: center;
	background-repeat: no-repeat;
}

h1 {
	display: flex;
	align-items: center;
	font-size: 3.75rem;
	font-weight: var(--font-bold);
	color: var(--dark-purple);
}

h1 svg {
	margin-right: 1.5rem;
}

p {
	line-height: 1.5rem;
}

a {
	color: #0000ff;
}

main {
	width: 100%;
    max-width: calc(600px + 2.5rem);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 1rem;
    margin: 16.75rem 0 0 0;
    align-items: flex-start;
    justify-content: flex-start;
}

.svg-icon-minus {
	display: none;
}

.details-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

details summary {
	list-style: none;
}

details summary::marker {
	display: none;
}

details[open] .svg-icon-plus {
  display: none;
}

details[open] .svg-icon-minus {
  display: flex;
}

details[open] summary {
  border-bottom: 0;
}

.info {
	color: var(--grayish-purple);
}

details[open] .info {
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

details[open]:last-of-type .info {
	border-bottom: 0;
}

summary {
	cursor: pointer;
	font-weight: var(--font-semibold);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
	color: var(--dark-purple);
    gap: 1rem;
	line-height: 1.5rem;
	font-size: 1.22rem;
}

summary svg {
	min-width: 30px;
	height: 31px;
}

details:nth-of-type(4) summary {
	border-bottom: 0;
}

details div {
	padding-bottom: 1rem;
}

summary div {
	padding: 1rem 0;
}

footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-bottom: 4rem;
}

@media (max-width: 375px) {
  body {
	  background-image: url("../images/background-pattern-mobile.svg");
  }
  
  main {
	  margin-top: 8rem;
  }
}