@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

#lottery,
#lottery_main {
	display: flex;
	flex-direction: column;
	font-family: "Roboto", Kilogram, sans-serif;
	text-align: center;
}

#lottery .title {
	color: #FFF;
}

#lottery_main .title {
	font-size: 32px;
	font-weight: 700;
	color: #000;
}

#lucky_draw .card > div:not(:first-child) {
	font-family: sans-serif;
}

#lottery .badge,
#lottery_main .badge {
	font-weight: 400;
	color: #FFF;
	border-radius: 50px;
	padding: 5px 20px;
	margin: 10px 0;
}

#lottery .badge {
	font-size: 0.9em;
	background-color: #0044C7;
}

#lottery_main .badge {
	font-size: 1.4em;
	background-color: #12A2DF;
}

#lottery .readmore {
	border: 0 !important;

	& a {
		color: #FFF !important;
	}
}

#lottery .header {
	font-size: larger;
	font-weight: bolder;
	margin-top: 15px;
}

#lottery_form .header {
	color: #fff;
}

#lottery > div {
	margin: 0;
}

#lucky_draw {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 20px 10px;
	background: #007DFE url('./img/lotto_bg.png') no-repeat left bottom;
	background-size: 100%;
}

#lucky_draw > div {
	display: flex;
}

#lucky_draw .card,
#lottery_main .card {
	display: block;
	background-color: #FFFFFF;
	width: 100%;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	color: #0C0C0C;
	margin: 4px 0;
}

#lucky_draw .three-digit {
	font-size: 24px;
	line-height: 28px;
}

#lucky_draw .second-prize {
	grid-template-columns: repeat(3, 1fr);
}

#lottery_main .second-prize {
	width: 90%;
	grid-template-columns: repeat(4, minmax(20%, 24%));
}

#lucky_draw .second-prize,
#lottery_main .second-prize {
	display: grid;
	width: 100%;
	grid-gap: 8px;
}

#lottery .card_header,
#lottery_main .card_header {
	display: inline-block;
	white-space: nowrap;
	color: #FFFFFF;
	background-color: #12A2DF;
	padding: 2px 12px;
}

#lottery .jackpot_header,
#lottery_main .jackpot_header {
	font-size: 1.2em;
	padding: 6px 12px;
}

#lottery .sub_jackpot_header,
#lottery_main .sub_jackpot_header {
	font-size: .9em;
}

#lottery .smaller_header,
#lottery_main .smaller_header {
	font-size: 0.6em;
}

#lottery .jackpot_number,
#lottery_main .jackpot_number {
	font-size: 59px;
	font-weight: 700;
	line-height: 1.2;
	margin: 10px auto;
}

#lottery #lottery_form {
	background-color: #0C0C0C;
	padding: 20px;
}

#lottery_form {
	width: 100%;

	& > form {
		width: 100%;
	}
}

#lottery_form > form > div {
	margin: 0 0 12px 0;
}

#lottery_form input {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 4px 16px;
	width: 100%;
	height: 40px;
	border-radius: 40px;
}

#lottery_form input[type="submit"] {
	background: #12A2DF;
}

#lottery_jackpot {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 20px 10px;
	background: #D2F2FF;
	background-size: 100%;
}

.sixtypercent {
	width: 60%;
}

.sub_header {
	margin: 4px;
}

.last_two_digits {
	line-height: 1.3em;
	font-size: 2.7em;
	font-weight: 600;
}

.last_three_digits {
	margin-top: 0.5em;
	font-size: 1.5em;
	font-weight: 600;
}

#lottery_main .bg-gray {
	background: #F0F0F0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	margin: 14px 0;
}

.lottery-number {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6em, 20%));
	width: 100%;
	background: #fff;
	border-radius: 8px;
}

.lottery-number .lottery-number-item {
	border-left: #F0F0F0 1px solid;
	line-height: 68px;
	font-size: 1.3em;
	font-weight: 600;
}

.small-prize {
	margin: 8px;
}

#lottery_jackpot .sub_header {
	font-size: 0.7em;
}

.second-prize .sub_header {
	font-size: 0.9em;
}

.no-word-wrap {
	white-space: nowrap;
}

#checked_lottery {
	font-family: "Roboto", Kilogram, sans-serif;
	padding-bottom: 16px;

	& > div {
		display: grid;
		place-items: center;
		padding: 20px;
	}

	& #win {
		background: #1ABFA1;
	}

	& #fail {
		background: #F95F5F;
	}

	& .announce {
		min-width: 311px;
		max-width: 60%;
		background-color: #fff;
		border-radius: 8px;
		display: flex;
		flex-direction: column;
		text-align: center;
		padding: 16px 28px;

		& .announce-title {
			font-size: 20px;
			font-weight: 600;
		}

		& .announce-prize-name {
			font-size: 32px;
			line-height: 32px;
			font-weight: 700;
			color: #1ABFA1;
			margin-top: 12px;
			margin-bottom: 4px;
		}

		& .announce-number {
			font-size: 20px;

			span {
				font-size: 1.2em;
				font-weight: 600;
			}
		}

		& .announce-period {
			font-size: 0.8em;
			color: #fff;
			background: #12A2DF;
			border-radius: 30px;
			padding: 0 8px;
			width: fit-content;
			margin: 0 auto;
		}
	}
}

#check_lottery_section {
	font-family: "Roboto", Kilogram, sans-serif;
	display: flex;
	flex-direction: column;
	text-align: center;

	& .header {
		font-size: 24px;
		line-height: 30px;
		font-weight: 600;
	}

	& input[type="text"] {
		height: 51px;
		padding: 16px 20px;
		font-size: 16px;
	}

	& input[type="submit"] {
		font-size: 16px;
		font-weight: 600;
		background-color: black;
	}

	& .remark {
		font-size: 0.8em;
		color: white;
	}
}
