/* 
	Run after normalize.css 
	Just some basics for my style
*/

/* Preferred box-sizing value */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Fix mobile Safari increase font-size on landscape mode */
html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

ol,
ul {
	padding-left: 1rem;
	margin-left: 0.5rem;
}

/* Remove list styles (bullets/numbers) */
nav ol,
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* For images to not be able to exceed their container */
img,
svg {
	max-inline-size: 100%;
	max-block-size: 100%;
	max-width: 100%;
	max-height: 100%;
}

/* removes spacing between cells in tables */
table {
	border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

.msgBox .signInMain label:has(input[type="checkbox"]) {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(0.85rem, 1vw + 0.5rem, 1.25rem);
}

/* ========================== app ================================= */
.app {
	max-width: 1000px;
	height: calc(100dvh * 2);
	display: grid;
	grid-template-rows: 40px 1fr 40px;
}

/* ========================== main ================================= */
main {
	display: grid;
	grid-template-rows: 50% 50%;
}

/* ========================== Header/Footer ================================= */
header,
footer {
	color: white;
	background-color: black;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

header {
	& .title {
		font-size: 1.5rem;
		font-weight: bold;
	}

	& .subTitle {
		font-size: 0.755rem;
		font-weight: bold;
	}
}

/* ========================== handRank ================================= */
section.handRank {
	display: grid;
	grid-template-rows: 30px 1fr;
	overflow: hidden;

	& > .title {
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.25rem;
	}
}

/* ========================== handChart ================================= */
.handChart {
	display: grid;
	grid-template-rows: repeat(12, 1fr);
	grid-template-columns: 1fr auto;
	overflow: hidden;
	background-color: rgb(94 148 94);
}

/* ========================== hand ================================= */
.hand {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 5px;
	padding: 2px 5px;
}

/* ========================== hand description ================================= */
.handDesc {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5px;

	& .title {
		font-size: 1.1rem;
		font-weight: bold;
	}
}

/* ========================== houseRules ================================= */
section.houseRules {
	display: grid;
	grid-template-rows: 30px 1fr;
	overflow: hidden;

	& .titleWrapper {
		display: flex;
		gap: 5px;
		align-items: center;
		justify-content: center;

		& .title {
			font-size: 1.25rem;
			font-weight: bold;
		}

		& .subTitle {
			font-size: 1rem;
		}
	}

	& .houseRuleList {
		background-color: papayawhip;
		font-size: 1.25rem;
		padding: 1rem;
	}
}

/* ========================== card ================================= */
.card {
	/* aspect-ratio: 224.22508 / 312.80777; */
	/* background-position: center; */
	/* background-size: contain; */
	background-position: top left;
	background-size: 240%;
	background-repeat: no-repeat;
	background-origin: padding-box;
	background-clip: padding-box;
}

@media (min-width: 768px) {
	.card {
		background-size: cover; /* Locks to a fixed pixel width on large screens */
	}
}

@media print {
	.card {
		-webkit-print-color-adjust: exact !important; /* Chrome, Safari, Edge */
		print-color-adjust: exact !important; /* Firefox, Modern Safari */
		background-size: cover; /* Locks to a fixed pixel width on large screens */
	}
}

/* ========================== utility ================================= */
.dimmed {
	opacity: 0.3;
}

/* ========================== test ================================= */
/* * {
	outline: 1px solid blue;
} */
