#account_profile
{
	position: fixed;
	overflow-y: auto;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(12px);
	z-index: 10000;
	display: flex;
	justify-content: center;
}

#account_profile .profile
{
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	align-items: center;	
	max-width: 90vw;
}

#account_profile .profile .input_section
{
	width: 100%;
}

#account_profile .profile .input_group
{
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	max-width: 400px;
}

/*2x2 with checkbox on right side*/
#account_profile .profile .input_group.options
{
	display: grid;
	grid-template-columns: 1fr auto;		
}

/* Show checknbox as switches */
#account_profile .profile .input_group input[type="checkbox"]
{
	appearance: none;
	width: 40px;
	height: 20px;
	background-color: #ccc;
	border-radius: 10px;
	position: relative;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	margin-bottom: 1rem;
}
#account_profile .profile .input_group input[type="checkbox"]::before
{
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease-in-out;
}
#account_profile .profile .input_group input[type="checkbox"]:checked
{
	background-color: #af1e23;
}
#account_profile .profile .input_group input[type="checkbox"]:checked::before
{
	transform: translateX(20px);
}

#account_profile .profile .input_group label
{
	font-family: 'Wood Heinz No4 Regular', sans-serif;
	font-size: 0.9em;
	color: #edbd87;
}

#account_profile .profile .input_group input[type="text"],
#account_profile .profile .input_group input[type="email"],
#account_profile .profile .input_group select
{
	width: 100%;
	padding: 0.5rem;
	margin: 0;
}

/*Email looks disabled since it can't be changed, but show it anyway*/
#account_profile .profile .input_group input[type="email"]
{
	background-color: #333;
	color: #555;
	cursor: not-allowed;
	pointer-events: none;
}
#account_profile .profile .input_group span
{
	font-size: 0.8em;
	color: #af1e23;
	text-align: center;
}

#account_profile .profile #account_bio
{
	font-family: 'Wood Heinz No4 Regular', sans-serif;
	font-size: 1em;
	height: 150px;
	border-radius: 0.25em;
}

#account_profile .birthday_inputs
{
	display: flex;
	gap: 0.5rem;
}
#account_profile .profile select
{
	font-family: 'Wood Heinz No4 Regular', sans-serif;
	font-size: 1em;
	width: 50%;
	border-radius: 0.25em;	
}

#account_profile .profile input:focus,
#account_profile .profile select:focus,
#account_profile .profile textarea:focus
{
	outline: none;
	outline: 2px solid #af1e23;
}

#account_profile .profile .family_grid
{
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.25rem;
	width: 100%;
}

#account_profile .profile .family_card
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	padding: 0.5rem;
	margin: 0;
	/* border: 1px solid rgba(237, 189, 135, 0.3); */
	border-radius: 0.5em;
	background-color: #fff;
	color: #edbd87;
	cursor: pointer;
	transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

#account_profile .profile .family_card:hover,
#account_profile .profile .family_card:focus-visible
{
	border-color: #edbd87;
	border-width: 2px;
	transform: translateY(-2px);
	outline: none;
}

#account_profile .profile .family_card.selected
{
	border-color: #af1e23;
	background-color: #edbd87;
	box-shadow: 0 0 0 1px rgba(175, 30, 35, 0.35);
	
}

#account_profile .profile .family_card_clear_mark
{
	font-family: 'Wood Heinz No4 Regular', sans-serif;
	font-size: 1.1em;
	line-height: 1;
	color: #000;
}

#account_profile .profile .family_card_icon
{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#account_profile .profile .family>span
{
	text-justify: center;
}

#account_profile .profile button
{
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 0.5em;
	background-color: #af1e23;
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	text-transform: uppercase;
	transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
	margin-top: 2em;
	margin-bottom: 2em;
}

#account_profile .profile #cancel
{
	background-color: #ccc;
	color: #333;
}

body.no-scroll
{
	overflow: hidden;
}

@media (max-width: 1000px)
{
	#account_profile .profile
	{
		justify-content: flex-start;
	}

	#account_profile .profile .input_group
	{
		margin-top: 0.5em;
	}

	#account_profile .profile .family_grid
	{
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}
@media (min-width: 1001px)
{
	#account_profile .profile
	{
		height: calc(100vh - 2rem);
		justify-content: flex-start;
	}

	#account_profile .profile .input_section
	{
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		align-content: center;
		align-items: stretch;
		gap: 1rem;
		flex: 1 1 auto;
		min-height: 500px;
		justify-content: flex-start;
	}

	#account_profile .profile .input_section .input_group
	{
		flex: 0 0 auto;
	}
}