:root {
	--primary-color: #c10000;
	--disabled-color: #f1f1f1;
	
	--fz-xs: 12px;
    --fz-md: 16px;
    --fz-lg: 20px;
    --fz-xl: 24px;
}

*{
	margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: .1px dashed gray; */
}
html, body {
    height: 100%;
    width: 100%;
    font-family: '微軟正黑體';
}
button.btn {
    box-shadow: 1px 1px 3px #aca;
}
button.primary {
    background-color: var(--primary-color);
    color: white;
}
button.primary:hover {
    color: white;
}
button.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
button.secondary:hover {
    color: var(--primary-color);
}
button.btn:disabled {
    opacity: 1;
    background-color: var(--disabled-color);
    box-shadow: 1px 1px 3px #aaa;
    color: white;
    border: none;
}
select {
    padding: 0 5px;
    background: #eee;
    border-radius: 5px;
    height: 2.5rem;
    max-width: 100%;
}
input[type="text"],
input[type="number"],
input[type="password"] {
    padding: 0 10px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #aaa;
    height: 2.5rem;
}
input[type="number"] {
    padding-right: 0; 
}
input[type="text"].error,
input[type="number"].error,
input[type="password"].error {
    border-color: red;
}
input, textarea {
    font-size: initial;
}

.row {
	margin-right: 0;
    margin-left: 0;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* custom scroll bar */
div::-webkit-scrollbar {
	width: 7px;               /* width of the entire scrollbar */
}
div::-webkit-scrollbar-track {
	background: none;         /* color of the tracking area */
}
div::-webkit-scrollbar-thumb {
	background-color: #ccc;   /* color of the scroll thumb */
	border-radius: 3px;       /* roundness of the scroll thumb */
	border: 1px solid #fff;
}
/* custom scroll bar */

/* loading畫面 START */
@keyframes loading {
	0% {transform:rotate(0deg)} to {transform:rotate(1turn)}
}
.loading-block {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.7);
	cursor: wait;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50000;
}
.loading-box {
	display: flex;
	align-items: center;
	justify-content: center;
    cursor: wait;
    margin-right: 1rem;
/*     background: rgba(0,0,0,0.7); */
}
.loading-img {
	width: 3rem;
	height: auto;
	animation: loading 1s infinite steps(8);
	cursor: wait;
}
.loading-text {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
/* loading畫面 END */

/* 自訂訊息框 START */
.alert-block {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, .7);
}
.alert-box {
    /* padding: 1rem; */
    min-width: 250px;
    max-width: 500px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 1px 1px 5px #aaa;
    background-color: white;
    border-radius: 0.5rem;
}
#alert-msg {
    font-size: var(--fz-md);
    padding: 10px 1rem;
    color: #524B49;
}
.alert-btn {
    padding: 5px 10px;
    text-align: right;
    font-size: var(--fz-sm);
}
.alert-btn button {
    color: var(--primary-color);
    border: none;
    background-color: transparent;
    padding: 5px;
}
/* 自訂訊息框 END */

header {
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.6);
}
.logo img {
    height: 2.4rem;
}

.title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.check-list {
    padding: 10px 0;
}
.check-item + .check-item {
    padding-top: 5px;
}
.check-title {
    background-color: #eff5f8;
    padding-top: 5px;
    padding-bottom: 5px;
}
.check-result {
    padding-top: 5px;
    padding-bottom: 5px;
}
.check-title .status,
.check-title .item-name {
    display: flex;
    align-items: center;
    padding: 0 15px;
}
.check-title .status {
	display: none;
}
.check-title .item-name {
	padding-left: 15px;
}

.ics-check-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ics-check-block > * + * {
	margin-top: 5px;
}