* {
	text-decoration: none;
	list-style: none;
	outline: none;
	margin: 0;
	padding: 0;
}
html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}
body {
	font-family: "Microsoft JhengHei", sans-serif;
	font-weight: 700;
	overflow-x: hidden;
	scrollbar-width: none;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: url("../img/bg.jpg") no-repeat;
	background-size: cover;
}
a {
	width: 100%;
	height: 100%;
	display: block;
	color: #fff;
	cursor: pointer;
}
p {
	color: #fff;
}
button {
	border: none;
	background: none;
	cursor: pointer;
}
a:hover,
button:hover {
	filter: brightness(1.15);
	transition: 0.2s filter;
}
.menu-bar li:active,
a:active img,
a:active,
button:active img,
button:active,
.account-btn:active,
.arrow:active img,
.login-btn-2 a:active {
	transform: scale(0.98) translateY(1.5px) translateZ(0);
}
.btn-confirm,
.btn-close {
	transform: scale(.8);
	color: #fff;
	border: 2px solid #fbe4bc;
    border-radius: 5px;
    padding: 8px 16px;
	font-weight: bold;
}
.btn-confirm:hover,
.btn-close:hover {
	background: #fff;
	color: #212121;
	transition: background 0.2s, color 0.2s;
}

.btn-confirm:active,
.btn-close:active {
	transform: scale(0.78) translateY(1.5px) translateZ(0);
}

.disableScroll {
    overflow: hidden;
}

.loading {
	position: absolute;
    top: 50%;
    left: 45%;
}
header {
	width: calc(100% - 40px);
	padding: 0 20px;
	top: 0;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	z-index: 99;
	position: fixed;
}
.topLeft {
	display: flex;
	width: fit-content;
	position: fixed;
	left: 20px;
	top: 0;
	z-index: 99;
}
.topRight {
	display: flex;
	width: fit-content;
	position: fixed;
	right: 20px;
	top: 20px;
	z-index: 99;
}
.user_info {
	background: #412d24;
	padding: 8px 20px;
	border: 2px solid #f7efd1;
	border-radius: 10px;
	box-shadow: 0px 0px 6px 3px rgba(188, 132, 90, 0.9);
	margin-right: 20px;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}
.user_info_logout {
	margin-right: 20px;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	width: 300px;
}
.user_info p {
	color: #e8d1a0;
	font-size: 20px;
	font-weight: 400;
}
.user_info span {
	color: #fff;
	background: rgb(0 0 0 / 80%);
	padding: 2px 15px;
	margin-left: 5px;
	font-weight: 400;
}
.func-icon {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.login-btn-2 a {
	background: url("../img/event_login.jpg") no-repeat;
	width: 280px;
	height: 65px;
}
.login-container,
.logout-container {
	display: flex;
}

/* Section */
.section {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	min-height: 960px;
}
.arrow {
	top: 910px;
	position: absolute;
	cursor: pointer;
	transform: scale(1.1);
	filter: brightness(1.5);
	animation: arrowBounce 1.6s infinite;
}

#particles-js {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}
#particles-js > canvas {
	filter: blur(10px); 
	mix-blend-mode: screen; 
	opacity: 0.9;
}
.slogan {
	width: 90%;
	max-width: 900px;
	margin: 120px auto 0;
	position: relative;
	z-index: 1;
	animation: bounceIn 1s ease-in-out;
	animation-fill-mode: forwards;
	transform-origin: center;
	opacity: 0;
}
.eventBtn {
	display: flex;
	justify-content: center;
	margin: 60px 0 20px 0;
}
.eventBtn a {
	margin: 0px 50px;
}
.title {
	margin: 20px;
}
.btn01 a {
	background: url("../img/btn01.jpg") no-repeat;
	width: 340px;
	height: 80px;
}
.btn01.active a {
	background: url("../img/btn01_on.jpg") no-repeat;
	width: 340px;
	height: 80px;
}
.btn02 a {
	background: url("../img/btn02.jpg") no-repeat;
	width: 340px;
	height: 80px;
}
.btn02.active a {
	background: url("../img/btn02_on.jpg") no-repeat;
	width: 340px;
	height: 80px;
}
.event {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.event p {
	text-align: center;
	font-size: 22px;
	line-height: 2.4;
	color: #ffe7c5;
}
.link1 {
	position: absolute;
    right: 285px;
    top: 315px;
	clip-path: polygon(1.4% 47.97%, 25.97% 1.8%, 73.67% 1.8%, 98.72% 48.87%, 74.4% 96.42%, 25.28% 96.42%);
}
.link2 {
	position: absolute;
    top: 403px;
    right: 182px;
	clip-path: polygon(1.4% 47.97%, 25.97% 1.8%, 73.67% 1.8%, 98.72% 48.87%, 74.4% 96.42%, 25.28% 96.42%);
}

/* Mask */
.mask,
.mask1 {
	width: 100%;
	height: 100%;
	background: rgb(0 0 0 / 70%);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	display: none;
}
.mask1 {
	z-index: 100;
}

/* Event01 */
.event01 p {
	margin-bottom: 125px;
}

.btn_others {
	width: 450px;
	height: 56px;
	display: flex;
	text-align: center;
	margin: 50px 0;
}
.event01 .btn_others {
	margin: 140px 0 0 0;
}

/* Event02 */
.event02 {
	display: none;
}
.btn-store {
	margin: 20px auto;
}
.gameBox {
	width: 90%;
	max-width: 1180px;
	height: 610px;
	background: url("../img/eventBox.png") no-repeat rgba(25, 17, 20, 0.8);
	border: 2px solid #fbe4bc;
	border-radius: 30px;
	box-shadow: 0px 0px 6px 3px rgba(188, 132, 90, 0.9);
	margin-top: 20px;
	position: relative;
}
.coin {
	width: 500px;
	height: 58px;
	background: url("../img/coinBg.png") no-repeat;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}
.coin p {
	font-size: 28px;
	color: #f3cb95;
	font-weight: 600;
}
.coin span {
	color: #fff;
	background: #000;
	padding: 0 30px;
	margin: 0 10px;
}
.prizeBox {
	width: 90%;
	max-width: 1180px;
	height: 610px;
	background: url("../img/eventBox.png") no-repeat rgba(25, 17, 20, 0.8);
	border: 2px solid #fbe4bc;
	border-radius: 30px;
	box-shadow: 0px 0px 6px 3px rgba(188, 132, 90, 0.9);
	margin-top: 70px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.btn_s {
	display: flex;
	margin: 40px 0;
}
.btn_s a {
	margin: 0 15px;
}

/* Slots */
.slots {
	display: flex;
	justify-content: space-evenly;
	width: 100%;
	margin: 45px 0 35px 0;
}
.slot1,
.slot2,
.slot3 {
	display: flex;
	justify-content: space-evenly;
	flex-direction: column;
	align-items: center;
}

.slot1 {
	background: url("../img/gamebg01.png") no-repeat;
	width: 290px;
	height: 390px;
}

.slot2 {
	background: url("../img/gamebg02.png") no-repeat;
	width: 290px;
	height: 390px;
}

.slot3 {
	background: url("../img/gamebg03.png") no-repeat;
	width: 290px;
	height: 390px;
}

.slot-btn1,
.slot-btn2,
.slot-btn3 {
	margin: 10px 0px 0 0;
}

.slot-items-box {
	width: 200px;
	height: 200px;
	background: #20120b;
	border: 2px solid #dfb096;
	font-size: 24px;
	text-align: center;
	overflow: hidden;
    display: inline-block;
}
.slot-items {
	color: #fdf0dd;
    position: relative;
    width: 200px;
    height: 200px;
    font-size: 20px;
    line-height: 200px;
    text-align: center;
    transition: transform 0.5s ease-out;
}
.slot-items li {
	display: flex;
	height: 200px;
	line-height: 1.5;
	text-align: center;
	word-wrap: break-word;
	white-space: normal;
	justify-content: center;
	align-items: center;
	font-size: 26px;
}

.prize-container {
	width: 80%;
    height: 530px;
	display: grid;
	align-items: center;
    justify-items: center;
	grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
	margin-top: 10px;
}
.prize-container .prize-item {
	width: 178px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.prize-container .prize-item p {
	color: #fff;
	line-height: 1.2;
	font-size: 18px;
	margin-top: 15px;
}
.prize-container .prize-icon {
	width: 178px;
	height: 178px;
}

.reward-list a span {
	display: inline-block;
	transform: translateX(0);
	transition: transform 0.2s ease;
}
.reward-list:hover a span {
	transform: translateX(2px);
}

/* Popup large */
.pop-large {
	width: 1180px;
	height: 680px;
	background: url("../img/eventBox.png") no-repeat top center rgba(25, 17, 20, 0.8);
	border: 2px solid #fbe4bc;
	border-radius: 30px;
	box-shadow: 0px 0px 6px 3px rgba(188, 132, 90, 0.9);
	position: fixed;
	inset: 0;
	margin: auto;
	z-index: 99;
	color: #fff;
	display: none;
}
.pop-large.pop-reward {
	width: 860px;
}

.pop-large .close {
	position: absolute;
	top: 20px;
	right: 20px;
}

.pop-large .pop-title {
	width: 500px;
    height: 58px;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto;
    background: url("../img/coinBg.png") no-repeat;
}

.pop-large .pop-title p {
	padding-top: 4px;
}

.pop-large .pop-content {
	width: 1070px;
    height: 540px;
    font-size: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
    line-height: 2;
    position: absolute;
    top: 110px;
    left: 70px;
}

.pop-large.pop-notice .pop-content,
.pop-large.pop-record .pop-content {
	width: 1076px;
	top: 95px;
}

.pop-large.pop-gift-shop .pop-content {
	height: 505px;
	top: 150px;
	left: 0;
    width: 100%;
}


.pop-large .pop-content ul {
	width: 960px;
}

.pop-large .pop-content ul li {
	list-style-type: decimal;
	margin-bottom: 10px;
}

.pop-large.pop-record .pop-content img {
	width: 37px;
	height: 37px;
	padding-top: 5px;
}

.pop-large.pop-record .pop-content button img {
	width: 60px;
}

.pop-large.pop-record .pop-content table,
.pop-large.pop-gift-shop .pop-content table, 
.pop-large.pop-reward .pop-content table {
	width: 90%;
	text-align: center;
	border-spacing: 1px;
	border-collapse: collapse;
	margin-right: 35px;
}
.pop-large.pop-gift-shop .pop-content table {
	width: 90%;
	margin-right: 0;
}
.pop-large.pop-reward .pop-content table {
	margin-right: 0;
}
.pop-large .pop-content table th {
	color: #f7e9d6;
	font-size: 26px;
	line-height: 50px;
	background: #694825;
	border: 2px solid #160f11;
}
.pop-large .pop-content table td {
	color: #694825;
	background: #f7e9d6;
	border: 2px solid #160f11;
	padding: 10px 7px;
}

.pop-large.pop-rules .pop-content table td {
	padding: 0;
}
.pop-large.pop-gift-shop .pop-content table td {
	padding: 7px 7px;
}

.cert-link {
	display: inline-block;
}
.cert-link:hover {
	text-decoration: underline;
	color: dodgerblue;
}

.pop-large.notice-2 .pop-content p {
	width: 100%;
}

.pop-large.pop-gift-shop .gift-coin {
    width: 100%;
	color: #f3cb95;
    font-weight: 600;
	font-size: 28px;
	position: absolute;
    text-align: center;
	top: 90px;
}
.pop-large.pop-gift-shop .gift-coin span {
	color: #fff;
	background: #000;
	padding: 0 30px;
	margin: 0 10px;
}

.pop-large.pop-gift-shop .pop-content .exchange-btn {
	border: 2px solid rgb(139 97 67);
    border-radius: 5px;
    padding: 5px 15px;
    color: rgb(139 97 67);
	font-size: 18px;
    font-weight: bold;
}

.pop-large.pop-gift-shop .exchange-btn:hover {
	background: rgb(139 97 67);
	color: #fff;
	transition: background 0.2s, color 0.2s;
}

.pop-large.pop-reward .pop-content {
	height: 500px;
	width: 815px;
	left: 20px;
}

.pop-large.pop-reward ul {
	width: 450px;
	display: flex;
    flex-direction: column;
    align-items: center;
	color: #fbe4bc;
	margin: 10px 0;
	padding: 0;
}
/* reward-1 */
.pop-large.reward-1 ul {
	border: 2px solid #bed9e5;
    border-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgba(190, 217, 229, 0.9);
}
.pop-large.reward-1 .pop-content p {
	border: 2px solid #bed9e5;
    border-bottom: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgba(190, 217, 229, 0.9);
}
/* reward-2 */
.pop-large.reward-2 ul {
	border: 2px solid #e6c1c1;
    border-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgba(230, 193, 193, 0.9);
}
.pop-large.reward-2 .pop-content p {
	border: 2px solid #e6c1c1;
    border-bottom: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgba(230, 193, 193, 0.9);
}
/* reward-3 */
.pop-large.reward-3 ul {
	border: 2px solid #e5bd7d;
    border-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgba(229, 189, 125, 0.9);
}
.pop-large.reward-3 .pop-content p {
	border: 2px solid #e5bd7d;
    border-bottom: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgba(229, 189, 125, 0.9);
}

.pop-large.pop-reward ul li {
	list-style: none;
	padding: 10px;
    border-bottom: 2px solid #666;
	width: 72%;
    text-align: center;
}

.pop-large.pop-reward ul li:last-child {
    border-bottom: none;
}

.pop-large.pop-reward .pop-content p {
	font-size: 30px;
    margin-top: 10px;
    margin-bottom: -10px;
    padding: 0 150px;
}

/* Popup results */
.pop-large.pop-results-one {
	background: rgba(25, 17, 20, 0.8);
	width: 882px;
	height: 624px;
}

.pop-large.pop-results-one {
	text-align: center;
	justify-content: space-around;
	top: 150px;
	left: 82px;
	width: 720px;
	height: 420px;
}

.pop-large.pop-results-one .results-one {
	width: 100%;
	height: 80%;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
}

.pop-large.pop-results-five .results-row{
	display: flex;
	justify-content: space-around;
}

/* Popup small */
.pop-small {
	width: 590px;
	height: 250px;
	background:rgba(25, 17, 20, 0.8);
	border: 2px solid #fbe4bc;
	border-radius: 30px;
	box-shadow: 0px 0px 6px 3px rgba(188, 132, 90, 0.9);
	position: fixed;
	inset: 0;
	margin: auto;
	transform: scale(0.9);
	z-index: 100;
	color: #fff;
	display: none;
	font-size: 28px;
}

.pop-small .close {
	position: absolute;
	right: 20px;
	top: 20px;
}

.pop-small .pop-title {
	font-size: 30px;
	width: 500px;
	text-align: center;
}

.pop-small.pop-once .pop-content {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-content: space-around;
	flex-wrap: wrap;
	align-items: center;
}

.pop-small.pop-msg .pop-content,
.pop-small.pop-msg-2 .pop-content,
.pop-small.pop-error .pop-content,
.pop-small.pop-login .pop-content,
.pop-small.pop-lottery .pop-content,
.pop-small.pop-exchange .pop-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
}

.pop-small.pop-lottery .pop-btns,
.pop-small.pop-login .pop-btns,
.pop-small.pop-billing .pop-btns,
.pop-small.pop-exchange .pop-btns {
	display: flex;
	width: 300px;
	justify-content: space-between;
}

.pop-small.pop-error,
.pop-small.pop-login, 
.pop-small.pop-play {
	z-index: 100;
}

.pop-small.pop-msg-2 .pop-title {
	line-height: 1.3;
}

.text-blue {
	color: dodgerblue;
}

.text-orange {
	color: orange;
}

.text-color-base {
	color: #fdf0dd;
} 

/*----Animation----*/
@keyframes bounceIn {
	0% {
		opacity: 0;
		-webkit-transform: scale3d(0.3, 0.3, 0.3);
		transform: scale3d(0.3, 0.3, 0.3);
	}

	20% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1);
		transform: scale3d(1.1, 1.1, 1.1);
	}

	40% {
		-webkit-transform: scale3d(0.9, 0.9, 0.9);
		transform: scale3d(0.9, 0.9, 0.9);
	}

	60% {
		opacity: 1;
		-webkit-transform: scale3d(1.03, 1.03, 1.03);
		transform: scale3d(1.03, 1.03, 1.03);
	}

	80% {
		-webkit-transform: scale3d(0.97, 0.97, 0.97);
		transform: scale3d(0.97, 0.97, 0.97);
	}

	to {
		opacity: 1;
		-webkit-transform: scaleX(1);
		transform: scaleX(1);
	}
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0) scale(1.1);
    }
    50% {
        transform: translateY(-14px) scale(1.1);
    }
}
/*-----Footer-----*/
footer {
	background: #21161a;
	padding: 20px 0;
	position: relative;
}
.footerbox {
	max-width: 1180px;
	font-family: 微軟正黑體;
	font-size: 14px;
	line-height: 1.2rem;
	margin: 0 auto;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}
.footerbox_logo {
	display: flex;
	justify-content: center;
	align-self: center;
	align-items: center;
}
a.logo_digeam {
	background: url("../img/digeam_logo.png") center center no-repeat;
	width: 235px;
	height: 56px;
	background-size: contain;
}
a.logo_rw {
	background: url("../img/ESTgames_logo.png") center center no-repeat;
	background-size: contain;
	width: 146px;
	height: 17px;
	margin-left: 20px;
	background-size: contain;
}
.spec a {
	color: #fff;
	text-decoration: underline;
	display: inline;
	margin-right: 10px;
}
.spec a:hover {
	color: #e9d2b6;
}
.class-level {
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
}
.class-level img {
	width: 57px;
	height: 57px;
}
.class-level ul {
	padding-left: 10px;
}
.class-level li:nth-child(4) {
	color: #ffcc31;
}
/*-----scrollbar-----*/
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-thumb {
	background: #643212;
}

::-webkit-scrollbar-track {
	background: #3c1f1b;
}
