@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

/* CSS RESET AND GLOBAL VARIABLES */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--white: rgb(255, 255, 255);
	--slate-light: rgb(214, 226, 240);
	--slate-medium: rgb(104, 119, 141);
	--slate-dark: rgb(31, 50, 81);
	--cerise-light: rgb(238, 217, 217);
}

/* ------------------------------------------------ */

/* TYPOGRAPHY */

h1,
p {
	font-family: Outfit, Arial, Helvetica, sans-serif;
}

h1 {
	font-weight: 700;
	font-size: 1.4rem;
	line-break: auto;
	color: var(--slate-dark);
}

p {
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.6rem;
	line-break: auto;
	color: var(--slate-medium);
}

/* ------------------------------------------------ */

body {
	background: var(--slate-light);
}

/* CARD CONTAINER */
.card-container {
	background-color: var(--white);
	width: 330px;
	height: auto;
	margin: 200px auto;
	border-radius: 20px;
}

/* ------------------------------------------------ */

/* CARD CONTENT */
img {
	width: 100%;
	padding: 20px;
	border-radius: 30px;
}

.card-container h1 {
	padding: 5px;
	margin: 0px 30px 0px 30px;
	text-align: center;
}

.card-container p {
	padding: 10px 10px 45px 10px;
	margin: 0px 25px 0px 25px;
	text-align: center;
}
/* ------------------------------------------------ */

/* FOOTER */
footer {
	margin: 20px 0px 20px 0px;
	background-color: var(--white);
	padding: 8px;
}

.attribution {
	font-family: monospace;
	font-size: 11px;
	text-align: center;
}
.attribution a {
	font-weight: 600;
	color: rgb(49, 57, 88);
	text-decoration: none;
}

.attribution a:hover {
	color: rgb(0, 0, 0);
}

/* ------------------------------------------------ */

/* MEDIA QUERIES */
@media (max-width: 320px) {
	.card-container {
		width: fit-content;
		margin: auto;
	}
	.attribution {
		font-size: 9px;
	}
}

@media (min-width: 375px) {
	.card-container {
		width: 330px;
	}
}
