@charset "utf-8";

html {
	min-height: -webkit-fill-available;
}

body {
	font-family: "Noto Sans TC", sans-serif;
	margin: 0;
	padding: 0;
	min-height: -webkit-fill-available;
	overflow: auto;
	overscroll-behavior: none;
	justify-items: center;
}

h1 {
	text-align: center;
}

.logo {
	width: 45%;
	margin: auto;
}

.title {
	align-content: center;
	align-items: center;
	display: flex;
	flex: none;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 48px;
	height: min-content;
	justify-content: center;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

img.title {
    max-width: 70%;
    height: auto;
    padding: 20px;
}

.topBar {
	width: 100%;
	margin: 20px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.container {
	padding: 20px;
	max-width: 500px;
	min-height: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.button-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	justify-items: center;
	gap: 20px;
}

.button-grid a {
	width: 100%;
	max-width: 150px;
	height: 95px;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;

	box-shadow: 0px 0px 8px 0px #00000033;
	border: none;
	border-radius: 16px;

	text-decoration: none;
	text-align: center;
}

.button-grid a:hover {
	color: #ff8844;
}

.round-button {
	aspect-ratio: 1 / 1;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 5;
	background: #ffffff99;
	color: #3D3D3D;
	box-shadow: 0px 0px 8px #0000004d;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.round-button::before {
	content: none;
}

button {
	position: relative;
	width: 95%;
	height: 50px;

	font-size: medium;
	font-weight: 500;
	line-height: normal;
	color: #FF6600;

	cursor: pointer;
	border-radius: 2rem;
	border: none;

	/* 半透明白色本體 */
	background-color: #ffffff99;
}

/* 圓角 + 漸層邊框 */
button::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 2rem;
	padding: 3px;
	background: linear-gradient(#FF6600, #FF9D32);
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
}

/* hover 效果 */
button:hover {
	color: #fff;
	background-image: linear-gradient(#FF6600, #FF9D32);
	/* border: 4px solid transparent; */
	/* border-image: linear-gradient(#FF6600, #FF9D32) 1; */
}

button i {
	margin-right: 6px;
	/* 文字和圖示留點間距 */
}



table {
	width: 100%;
	border-spacing: 0;
	overflow: hidden;
}

th,
td {
	padding: 8px;
}

th:first-child {
	border-top-left-radius: 20px;
}

th:last-child {
	border-top-right-radius: 20px;

}

tr:last-child td:last-child {
	border-bottom-right-radius: 20px;
}

tr:last-child td:first-child {
	border-bottom-left-radius: 20px;
}

@media (prefers-color-scheme: light) {
	body {
		background: #F6F6F6;
	}

	.button-grid a {
		background: #FFFFFF;
		color: black;
	}

	h1 {
		color: #ff6600;
	}

	h2 {
		color: #303030;
	}

	th {
		border: transparent;
		background: #ffe4cc;
		color: #303030;
	}

	td {
		color: #303030;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		background: #1E1E1E;
	}

	.button-grid a {
		background: #3D3D3D;
		color: #FFFFFF;
	}

	h1 {
		color: #FFFFFF;
	}

	h2 {
		color: #dedede;
	}

	th,
	td {
		border: 1px solid #ddd;
	}

	th {
		background: #ff6600;
		color: #fff;
	}

	td {
		color: #dedede;
	}

}

.hidden {
	display: none !important;
}

.invisible {
	visibility: hidden !important
}