:root {
	--clr-primary: hsl(225, 100%, 94%);
	--clr-accent: hsl(245, 75%, 52%);
	--clr-accent-h: hsl(245, 75%, 67%);

	--clr-neutral-100: hsl(255, 100%, 100%);
	--clr-neutral-200: hsl(225, 100%, 98%);
	--clr-neutral-300: hsl(224, 23%, 55%);
	--clr-neutral-400: hsl(223, 47%, 23%);

	--clr-link: hsl(228, 45%, 44%);
	--clr-link-h: hsl(228, 45%, 22%);
	--clr-accent-shadow: hsla(245, 75%, 52%, 0.2);
	--clr-neutral-shadow: hsla(0, 0%, 0%, 0.05);

	--fw-medium: 500;
	--fw-bold: 700;
	--fw-black: 900;

	--ff-primary: 'Red Hat Display', sans-serif;
}


/* Override Defaults */
* {
	margin: 0;
	padding: 0;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	background: var(--clr-primary) url(../images/pattern-background-mobile.svg) repeat-x;
	background-size: 100vw;
	color: var(--clr-neutral-400);
	font: 1rem var(--ff-primary);
	font-weight: var(--fw-medium);
	line-height: 1.2;
	min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { 
	font-weight: var(--fw-black);
}

p {
	line-height: 1.5;
}

button {
	font: inherit;
	font-weight: var(--fw-bold);
	cursor: pointer;
}

/* Accessibility */
.sr-only {
	clip: rect(0 0 0 0); 
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap; 
	width: 1px;
}

/* Styles */
.flex {
	display: flex;
}

.flx-col {
	flex-direction: column;
}

.flx-center-xy {
	justify-content: center;
	align-items: center;
}

main {
	background-color: white;
	border-radius: 1rem;
	box-shadow: 0 15px 15px 5px var(--clr-neutral-shadow);
	overflow: hidden;
	width: 90%;
	margin: 2rem 0;
}

.img-decor {
	width: 100%;
}

.details {
	align-items: center;
	row-gap: 1.5rem;
	padding: 2rem;
}

.details-title {
	text-align: center;
}

.details-desc {
	text-align: center;
}

.plan {
	column-gap: 1rem;
	background-color: var(--clr-neutral-200);
	border-radius: 0.8rem;
	width: 100%;
	padding: 1rem;
}

.img-album-cover {
	width: 3rem;
	height: 3rem;
}

.plan-name {
	font-weight: var(--fw-bold);
}

.plan-price {
	color: var(--clr-neutral-300);
}

.btn-text-only {
	background-color: transparent;
	border: none;
}

.btn-change {
	color: var(--clr-accent);
	text-decoration: underline;
	margin-left: auto;
	padding: 0;
}

.btn-change:is(:hover, :active, :focus) {
	color: var(--clr-accent-h);
	text-decoration: none;
}

.btn-pay {
	background-color: var(--clr-accent);
	color: var(--clr-neutral-100);
	border: none;
	border-radius: 1rem;
	box-shadow: 0 10px 15px 5px var(--clr-accent-shadow);
	width: 100%;
	padding: 1rem;
}

.btn-pay:is(:hover, :active, :focus) {
	background-color: var(--clr-accent-h);
}

.btn-cancel {
	color: var(--clr-neutral-300);
}


.btn-cancel:is(:hover, :active, :focus) {
	color: var(--clr-neutral-400);
}

footer {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
	font-size: 0.75rem;
	text-align: center;
	width: 100%;
	margin: 0.5rem 0;
}

p.attribution {
	color: var(--clr-txt-accent);
}

.attribution a:is(:link, :visited) {
	text-decoration: none;
	color: var(--clr-link);
}

.attribution a:is(:hover, :active, :focus) {
	color: var(--clr-link-h);
}

/* Bigger Displays */
@media only screen and (min-width: 426px) {
	body {
		background-image: url(../images/pattern-background-desktop.svg);
	}

	main {
		max-width: 25rem;
	}
}

/* Galaxy Fold and Narrower Displays */
@media only screen and (max-width: 345px) {
	.plan {
		overflow-x: scroll;
	}

	footer {
		font-size: 0.625rem;
	}
}