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

:root {
	/* background gradient */
	--softViolet: hsl(273, 75%, 66%);
	--softBlue: hsl(240, 73%, 65%);

	/* primary text */
	--darkSatblue: hsl(238, 29%, 16%);
	--softRed: hsl(14, 88%, 65%);

	/* divider */
	--lightGrayishBlue: hsl(240, 5%, 91%);

	/* neutral text */
	--veryDarkGrayishBlue: hsl(237, 12%, 33%);
	--darkgrayishblue: hsl(240, 6%, 50%);

	--kumbh: "Kumbh Sans", sans-serif;
}

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

body {
	height: 100vh;
	width: 100vw;
	font-family: var(--kumbh);
	font-size: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: linear-gradient(var(--softViolet), var(--softBlue));
}

.card-container {
	background-color: white;
	background-image: url(./images/bg-pattern-mobile.svg);
	background-repeat: no-repeat;
	background-position: center 0;
	width: 325px;
	margin-top: 7rem;
	border-radius: 15px;
	display: flex;
	flex-direction: column;
}

.left-side-container {
	position: relative;
	height: 100px;
}

.img-box {
	display: none;
}

.img-woman {
	width: 266px;
	height: 196px;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-55%, -55%);
	background-image: url(./images/illustration-woman-online-mobile.svg);
	background-repeat: no-repeat;
	animation: floating-mobile 3s ease-in-out infinite;
}

.right-side-container {
	display: flex;
	height: 390px;
	flex-direction: column;
	/* justify-content: center; */
	padding: 2rem 1.25rem;
}

.heading-container {
	text-align: center;
}

.question-answer-container {
	border-bottom: var(--lightGrayishBlue) solid 1px;
}

.question-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 1rem 0;
	color: var(--veryDarkGrayishBlue);
	cursor: pointer;
}

.question-container:hover h3 {
	color: var(--softRed);
}

.answer-container {
	display: none;
}

h3 {
	font-size: 13px;
	font-weight: 400;
}

p {
	line-height: 1.5;
}

@keyframes floating-mobile {
	0% {
		transform: translate(-55%, -55%);
	}
	50% {
		transform: translate(-55%, -58%);
	}
	100% {
		transform: translate(-55%, -55%);
	}
}

@media (min-width: 988px) {
	.card-container {
		flex-direction: row;
		height: 509px;
		width: 920px;
		margin-top: 0;
		background-image: url(./images/bg-pattern-desktop.svg);
		background-repeat: no-repeat;
		background-position: 1260% 65%;
	}

	.left-side-container {
		height: 100%;
		width: 50%;
	}

	.img-box {
		display: block;
		position: absolute;
		top: 42%;
		left: -25%;
		animation: floating-PC-box 3s ease-in-out infinite;
		z-index: 1;
	}

	.img-woman {
		background-image: url(./images/illustration-woman-online-desktop.svg);
		height: 379px;
		width: 472px;
		top: 0;
		left: 0;
		transform: translate(-19%, 20%);
		background-repeat: no-repeat;
		background-position: 120% center;
		animation: floating-PC-woman 3s ease-in-out infinite;
		z-index: 0;
	}

	.right-side-container {
		width: 50%;
		height: 100%;
		padding: 5rem 7rem 2rem 1.25rem;
	}

	.heading-container {
		text-align: left;
		font-size: 17px;
		margin-bottom: 2.5rem;
	}
}

@keyframes floating-PC-woman {
	0% {
		transform: translate(-19%, 20%);
	}
	50% {
		transform: translate(-19%, 17%);
	}
	100% {
		transform: translate(-19%, 20%);
	}
}

@keyframes floating-PC-box {
	0% {
		top: 42%;
	}
	50% {
		top: 39%;
	}
	100% {
		top: 42%;
	}
}
