@import url("../fonts/index.css");
@import url("./reset.css");
@import url("./common.css");

:root {
	--grey-900: #0f1729;
	--grey-800: #525f7a;
	--grey-700: #7d88a1;
	--grey-600: #94a3b8;
	--grey-500: #cbd5e1;
	--grey-400: #eef3f6;
	--grey-300: #f4f8fc;
	--grey-100: #f8fafc;
	--grey-00: #ffffff;
	--brand-primary: #e5103f;
	--brand-high: #c72235;
	--brand-medium: #ef586b;
	--brand-low: #fff5f6;
	--dangerous-100: #ffebee;
	--dangerous-200: #e53835;
	--dangerous-300: #c62828;
	--info-100: #eff9fe;
	--info-200: #2381ff;
	--info-300: #00579b;
	--warning-100: #fbfaf5;
	--warning-300: #e65000;
	--warning-200: #ffae10;
	--success-100: #e7f5e9;
	--success-200: #009444;
	--success-300: #1a5e20;
	--scrollbar-track: #eef3f6;
	--scrollbar-thumb: #cbd5e1;
	--scrollbar-thumb-hover: #94a3b8;
	--cell-valid: #f9e8e8;
	--cell-success: #e9fdec;
	--cell-warning: #fff000;

	--toastify-toast-width: 400px;
	--toastify-toast-bd-radius: 16px;
	--toastify-color-success: #1e9037;
	--toastify-color-error: #e5103f;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--grey-00);
	color: var(--grey-900);
	font-size: 16px;
	font-family: "Inter", sans-serif;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
	background: var(--scrollbar-track);
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover);
}

.header_and_nav_container {
	position: sticky;
	top: 0;
	background-color: var(--grey-00);
	z-index: 10;
	box-shadow: 0px 0px 8px 0px #0014220a;
}

.header {
	display: flex;
	justify-content: center;
	border-bottom: 1px solid var(--grey-400);
	position: relative;
	z-index: 10;
	background-color: var(--grey-00);
}

.header_container {
	width: 100%;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	height: 80px;
	padding: 12px 60px;
}

.header_menu {
	flex-shrink: 0;
	display: flex;
	gap: 12px;
	width: 255px;
}

.logo {
	height: 50px;
	flex-shrink: 0;
	display: block;
}

.logo img {
	height: 100%;
}

.navbar {
	display: flex;
	justify-content: center;
	position: relative;
	z-index: 10;
}

.navbar_item {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 16px 24px;
	color: var(--grey-600);
}

.navbar_item svg {
	flex-shrink: 0;
}

.navbar_item_active:not([target="_blank"]) {
	color: var(--brand-primary);
	font-weight: 600;
}

.navbar_item:hover {
	color: var(--brand-primary);
}

.download_buttons {
	display: none;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	padding: 12px 16px;
	border-top: 1px solid var(--grey-400);
}

.download_buttons .btn {
	background-color: var(--grey-900);
	color: var(--grey-00);
	align-items: center;
	gap: 8px;
	height: 40px;
	transition: none;
}

.download_buttons .btn:hover {
	background-color: var(--grey-700);
}

.footer {
	padding-top: 80px;
}

.footer_container {
	background: linear-gradient(263.23deg, #fa687b -1.88%, #b70c20 99.22%);
	border-radius: 32px 32px 0 0;
}

.footer_logo {
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.footer_logo img {
	height: 52px;
}

.footer_info {
	padding: 32px 60px 24px 60px;
	gap: 32px;
	border-radius: 32px 32px 0px 0px;
	display: flex;
	background: var(--grey-00);
}

.footer_about {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer_about_des {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 620px;
}

.footer_about_des_title {
	font-weight: 600;
}

.footer_about_contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer_about_contact_item {
	display: flex;
	gap: 8px;
	align-items: center;
	color: var(--grey-800);
}

.footer_about_contact_item .network {
	color: var(--grey-900);
	font-weight: 600;
}

.footer .link:hover {
	color: var(--brand-primary);
}

.footer_about_contact_item img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.footer_col {
	min-width: 240px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.footer_menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer_menu_title {
	font-weight: 600;
}

.footer_menu_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--grey-800);
}

.footer_menu_social {
	display: flex;
	gap: 16px;
}

.footer_menu_social img {
	width: 36px;
	height: 36px;
}

.footer_notice {
	padding: 16px 60px;
	display: flex;
	gap: 16px;
	align-self: center;
	background-color: var(--grey-00);
	font-size: 14px;
	border-block: 1px solid var(--grey-400);
	color: var(--grey-800);
}

.footer_notice_logo {
	height: 48px;
	flex-shrink: 0;
}

.footer_notice_logo img {
	height: 100%;
}

.footer_copyright {
	background-color: var(--grey-00);
	padding: 16px 60px;
	color: var(--grey-800);
	font-weight: 600;
	font-size: 14px;
	text-align: center;
}

.input {
	width: 100%;
	outline: none;
}

.input::placeholder {
	color: var(--grey-600);
}

.input_code {
	padding: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
}

.container_search {
	flex: 1 1 auto;
}

.input_search {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 544px;
	background: var(--grey-00);
	padding: 4px;
	border-radius: 999px;
	gap: 8px;
	box-shadow: 0px 0px 24px 0px #ca2c5c14;
	margin-inline: auto;
}

.search_icon {
	background-color: var(--brand-primary);
	display: grid;
	place-items: center;
	height: 48px;
	width: 48px;
	border-radius: 999px;
}

.search_icon:hover {
	background-color: var(--brand-high);
}

.toggle-menu {
	display: none;
}

.toggle-search {
	display: none;
}

.footer_nav {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	flex: 1 1 auto;
}

.scroll-top {
	width: 32px;
	height: 32px;
	border-radius: 9999px;
	background-color: var(--grey-600);
	display: grid;
	place-items: center;
	cursor: pointer;
	position: fixed;
	z-index: 1;
	bottom: 24px;
	right: 24px;
	transition: all 0.3s ease-in-out;
	opacity: 0;
	visibility: hidden;
}

.scroll-top.show {
	opacity: 1;
	visibility: visible;
}

.scroll-top:hover {
	background-color: var(--grey-800);
}

@media (width <=1024px) {
	.header_container {
		padding: 0;
	}

	.header_container_mobile {
		padding: 12px 0 12px 32px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		align-self: stretch;
		flex: 1 1 auto;
		position: relative;
		background-color: var(--grey-00);
	}

	.logo {
		height: 40px;
	}

	.navbar {
		font-size: 14px;
		line-height: 20px;
		gap: 8px;
		position: static;
		justify-content: space-between;
		padding-inline: 32px;
	}

	.navbar_item {
		padding: 16px 0;
	}

	.navbar_item svg {
		display: none;
	}

	.header_menu {
		padding: 12px 32px 12px 0;
		background: var(--grey-00);
		align-self: stretch;
		align-items: center;
	}

	.header_menu .btn {
		height: 40px;
		font-size: 14px;
		padding: 10px 16px;
	}

	.container_search {
		opacity: 0;
		transform: translateY(-200%);
		position: absolute;
		top: 80px;
		width: 100%;
		left: 0;
		padding: 20px 32px;
		background-color: var(--grey-00);
		border-top: 1px solid var(--grey-400);
		transition:
			transform 0.5s,
			opacity 0.5s;
		z-index: -2;
	}

	.container_search .input_search {
		box-shadow: none;
		border: 1px solid var(--grey-400);
	}

	.input_search {
		height: 44px;
		max-width: 100%;
		font-size: 14px;
	}

	.search_icon {
		width: 36px;
		height: 36px;
	}

	.toggle-search {
		flex: 1 1 auto;
		display: flex;
		justify-content: end;
	}

	.mask {
		position: fixed;
		background-color: #00000066;
		top: 132px;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: -1;
	}

	.footer_info {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		padding: 32px;
		gap: 24px;
		font-size: 14px;
		line-height: 20px;
	}

	.footer_notice {
		padding: 16px 32px;
	}

	.footer_about {
		grid-area: 1 / 1 / 1 / 3;
	}
}

@media (width <=640px) {
	.header_container {
		padding: 0;
		height: auto;
	}

	.header_container_mobile {
		padding: 8px 16px;
	}

	.header_menu {
		display: none;
	}

	.navbar {
		opacity: 0;
		padding: 0;
		transform: translateY(-200%);
		display: grid;
		grid-template-columns: 1fr;
		justify-content: start;
		position: absolute;
		background-color: var(--grey-00);
		width: 100%;
		transition:
			transform 1s,
			opacity 0.5s;
		z-index: 1;
		gap: 0;
	}

	.navbar_item {
		width: 100%;
		padding: 12px 16px;
		justify-content: start;
	}

	.navbar_item svg {
		width: 16px;
		height: 16px;
		display: block;
	}

	.container_search {
		top: 48px;
		padding: 16px;
	}

	.toggle-search {
		flex: unset;
	}

	.mask {
		top: 0px;
	}

	.download_buttons {
		display: grid;
	}

	.logo {
		height: 32px;
	}

	.toggle-menu {
		display: block;
	}

	.footer {
		padding-top: 40px;
	}

	.footer_container {
		border-radius: 24px 24px 0 0;
	}

	.footer_logo {
		height: 72px;
	}

	.footer_logo img {
		height: 40px;
	}

	.footer_info {
		border-radius: 24px 24px 0 0;
		padding: 24px 16px;
		gap: 24px;
		grid-template-columns: 1fr;
	}

	.footer_about {
		width: 100%;
		grid-area: unset;
	}

	.footer_notice {
		display: grid;
		padding: 16px;
		gap: 8px;
	}

	.scroll-top {
		right: 16px;
		bottom: 16px;
	}
}

.open-menu {
	transform: translateY(0);
	opacity: 1;
}