@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');

img {
	width: 100%;
}
@font-face {
	font-family: 'SF PRO';
	src: url('../font/SfPro_Regular.OTF');
}

.full-width {
	width: 100%;
}

.relative {
	position: relative;
}

/*containers */
.mobile-color-game-container {
	width: 100%;
	margin: auto;
	display: flex;
	flex-direction: column;
	padding-bottom: 0.5rem;
	gap: 0.5rem;
}
.mobile-color-game-content {
	padding: 0 0.3rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

/* button */
.mobile-play-button {
	position: absolute;
	bottom: 4.1%;
	left: 50%;
	transform: translateX(-50%);
	width: 54.65%;
	height: 1.2rem;
	cursor: pointer;
	border-radius: 1rem;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.mobile-hide-header {
	background-color: #ffdc19;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1rem;
}
.mobile-join-now-button {
	position: absolute;
	bottom: 3.1%;
	left: calc(39% - 8px);
	transform: translateX(-50%);
	width: 19.2%;
	height: 0.47rem;
	cursor: pointer;
	border-radius: 0.09rem;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Section Header */
.mobile-section-header {
	display: flex;
	align-items: center;
	gap: 0.1rem;
}

.mobile-section-header-icon {
	width: 10%;
	height: auto;
}

.mobile-section-header-title {
	width: 90%;
	height: auto;
}

/* Online event */
.mobile-online-event-grid {
	margin-top: 0.2rem;
	display: flex;
	gap: 16px;
	max-width: 100%;
	overflow: hidden;
}

.mobile-online-event-grid img {
	width: calc(50% - 8px); /* 50% minus half the gap on each side */
	height: auto;
}

/* timeline */
.mobile-timeline-container {
	display: flex;
	flex-direction: column;
	max-height: 10.5rem;
	overflow-y: auto;
}

.mobile-timeline-content {
	position: relative;
	display: flex;
}

.mobile-timeline-banner-container {
	margin-top: 0.2rem;
	display: flex;
}

.mobile-timeline-banner-container img {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.mobile-clock-icon-container {
	z-index: 100;
	position: relative;
	display: flex;
	padding-top: 0.2rem;
	align-items: start;
}

.mobile-clock-icon-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 100%;
	opacity: 0.3;
	background-color: #fbffa6;
}

.mobile-clock-icon-container img {
	width: 0.3rem;
	height: auto;
}

.mobile-timeline-card {
	margin-inline: auto;
	width: 90%;
}

.mobile-timeline-date-badge {
	background: #ffd600;
	color: #000;
	border-radius: 0.1rem;
	padding: 0 0.1rem;
}
.mobile-timeline-title {
	display: flex;
	align-items: center;
	font-size: 0.2rem;
	gap: 0.1rem;
	padding-top: 0.25rem;
}

.mobile-timeline-content:first-child .mobile-clock-icon-container,
.mobile-timeline-content:first-child .mobile-timeline-title {
	padding-top: 0;
}

/* Footer */
.mobile-color-game-footer {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.mobile-color-game-footer img {
	width: 39.33%;
	height: auto;
	margin: 0.1rem auto;
}

/* WEB VERSION */

#web-container {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-image: url('../img/web-bg.png');
	background-size: cover;
	background-position: top;
	background-repeat: no-repeat;
	margin: auto;
	position: relative;
}

#web-container > * {
	position: relative;
}

.web {
	height: 100%;
	width: 100%;
	min-width: 760px;
}

.web-page-wrapper {
	max-width: 1440px;
	margin: auto;
	height: 100%;
	position: relative;
	overflow-x: hidden;
}

.web-content {
	overflow: hidden;
}

/* WEB NAVIGATION */
.nav-web {
	display: flex;
	width: 100%;
	height: 110px;
	img {
		width: 100%;
	}
}

.web-top-content {
	box-sizing: border-box;
	justify-content: space-between;
	display: grid;
	grid-template-columns: 75% 25%;
	padding-left: 120px;
	padding-right: 120px;
	align-items: center;
	height: auto-fit;
	gap: 10px;

	.web-play-now {
		width: 100%;
		height: 100%;
		.play_now {
			cursor: pointer;
			position: relative;
			border-radius: 32px;
			width: 100%;
			height: 100%;
			overflow: hidden;
			transition: transform 0.8s cubic-bezier(0.15, 0.83, 0.66, 1);
			border: 1px solid transparent;
			display: flex;
			justify-content: center;

			.web-playnow_boxshadow {
				position: absolute;
				bottom: 0;
				left: 0;
				width: 100%;
			}

			.web-playnow_btn {
				position: absolute;
				bottom: 13%;
				left: 50%;
				transform: translateX(-50%);
				width: 40%;
				z-index: 2;
			}
			&:hover {
				transform: scale(1.02);
				transform-origin: center;
			}
		}

		.web-playnow_hovered {
			display: none;
		}

		.web-playnow_default {
			display: block;
		}
	}

	.web-win-now {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-content: space-between;
		align-items: center;
		gap: 20px;

		.web-win-now-bigwin,
		.web-win-now-morewins {
			cursor: pointer;
			max-width: 278px;
			max-height: 278px;
			display: block;
			transition: all 0.8s cubic-bezier(0.15, 0.83, 0.66, 1);

			img {
				width: 100%;
				height: 100%;
				object-fit: contain;
				display: block;
			}

			&:hover {
				transform: scale(1.05);
			}
		}
	}
}

.web-bottom-content {
	position: relative;
	margin-top: 20px;
	padding-left: 120px;
	padding-right: 120px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	justify-content: center;
	gap: 20px;
	z-index: 2;
	div {
		cursor: pointer;
		max-width: 275px;
		max-height: 275px;
		transition: all 0.8s cubic-bezier(0.15, 0.83, 0.66, 1);

		img {
			min-width: 100%;
			display: block;
			border: 1px solid transparent;
		}

		&:hover {
			transform: scale(1.05);
		}
	}

	.no-hover {
		cursor: default;
		&:hover {
			transform: none;
		}
	}
}

.web-pagcor {
	position: relative;
	z-index: 2;
	margin: 0 auto;
	max-width: 332px;
	img {
		width: 100%;
	}
}

.web-footer {
	position: relative;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	font-family: 'SF PRO';
	font-size: 0.065rem;
	font-weight: 274;
	color: #ffffffb2;
	text-align: center;
	margin: 0.3rem 0;
	gap: 0.1rem;
	display: flex;
	flex-direction: column;
}

.web-footer img {
	width: 29.05%;
}

.web-footer-bg {
	display: flex;
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
}

@media screen and (min-width: 761px) {
	.mobile-color-game-container {
		display: none;
	}
	.web-page-wrapper {
		display: flex;
	}
	html,
	body {
		padding: 0;
		margin: 0;
		height: 100vh;
		font-family: sans-serif;
		background: black;
	}
}
@media screen and (min-width: 1281px) {
	body {
		height: auto;
	}
}

@media screen and (max-width: 760px) {
	.mobile-color-game-container {
		display: flex;
	}
	#web-container {
		display: none;
	}
	html,
	body {
		color: white;
		background: #000438;
		font-family: 'Montserrat', sans-serif;
		height: 100%;
		width: 100%;
		margin: 0;
	}
}
