:root {
	--head-bg: #f1f1f120;
	--bg-color: #f1f1f1;
	--text-color: #100c08;
	--shadow: #d6d6d6;
	--paragraph: #100c0895;
	--card: #f1f1f1;
	--true: #28cd5c;
	--red-code: #e03737;
	--yellow-code: #e0be37;
	--green-code: #28cd2d;
}

@media (prefers-color-scheme: dark) {
	:root {
		--head-bg: #100c0820;
		--bg-color: #100c08;
		--text-color: #f1f1f1;
		--shadow: #2c2c2c;
		--paragraph: #f1f1f195;
		--card: #100c08;
		--true: #4ae67b;
		--red-code: #e03737;
		--yellow-code: #e0be37;
		--green-code: #28cd2d;
	}
}

* {
	border: 0px solid red;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg-color);
	color: var(--text-color);
	font-family: Rajdhani;
	font-weight: 600;
}

a {
	cursor: pointer;
}
#popupBg {
	position: fixed;
	display: none;
	width: 100%;
	height: 100vh;
	z-index: 998;
}

.heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	margin: auto;
	max-width: 1100px;
	background: var(--head-bg);
	box-shadow: 0 0 5px var(--shadow);
	position: sticky;
	top: 0;
	backdrop-filter: blur(5px);
	z-index: 999;
}

h1 {
	margin: 0;
	font-size: 1.4rem;
}
.nav-pc {
	display: flex;
	gap: 10px;
}
.nav-pc a {
	text-decoration: none;
	color: var(--text-color);
	transition: 0.3s ease;
}
.nav-pc a:hover {
	text-decoration: underline;
	opacity: 0.75;
}
#hamburger {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
#hamburger1,
#hamburger2,
#hamburger3 {
	height: 4px;
	background: var(--text-color);
	border-radius: 1.5px;
	transition: 0.3s ease;
}
#hamburger1 {
	position: relative;
	display: block;
	width: 25px;
	top: -8px;
}
#hamburger2 {
	position: absolute;
	display: block;
	width: 15px;
	right: 0;
	top: 0px;
}
#hamburger3 {
	position: absolute;
	display: block;
	width: 25px;
	top: 8px;
	right: 0;
}

#sidebar {
	position: fixed;
	display: flex;
	flex-direction: column;
	top: 3.8rem;
	right: -40vw;
	width: 40vw;
	height: 100vh;
	z-index: 999;
	background: var(--head-bg);
	border: 1px solid var(--shadow);
	backdrop-filter: blur(5px);
	transition: 0.3s ease;
}
#sidebar span {
	padding: 1rem;
	font-weight: 700;
	font-size: 1.25rem;
	border-bottom: 1px solid var(--shadow);
}
#sidebar a {
	display: flex;
	gap: 5px;
	padding: 1rem 1.5rem;
	align-items: center;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none;
	color: var(--text-color);
	transition: 0.3s ease;
}
#sidebar a:hover {
	background: var(--shadow);
	border-radius: 5px;
}

.main {
	padding: 2rem;
	max-width: 1100px;
	margin: auto;
}

h2 {
	font-family: Poppins;
	font-size: 3rem;
	font-weight: 800;
	line-height: 3.3rem;
	margin-bottom: 0.5rem;
}

p {
	color: var(--paragraph);
}

.stat {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.stat div {
	flex: 1;
	min-width: 225px;
	padding: 1rem;
	border: 1px solid var(--shadow);
	background: var(--card);
}

.stat p {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.stat span {
	font-family: Poppins;
	font-size: 2rem;
	font-weight: 800;
	color: var(--text-color);
	margin-top: 0.3rem;
}
#liveLogs {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

#liveLogs .log-card {
	flex: 1;
	min-width: 225px;
	padding: 1rem;
	border: 1px solid var(--shadow);
	background: var(--card);
	font-family: "JetBrains Mono";
}

.log-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.method {
	font-size: 12px;
	opacity: 0.7;
}
.log-top span {
	font-size: 13px;
}

.status {
	font-size: 13px;
	font-weight: bold;
}

.log-top .s-200 {
	color: var(--green-code);
}

.log-top .s-404 {
	color: var(--yellow-code);
}

.log-top .s-400 {
	color: var(--red-code);
}
.log-top .s-403 {
	color: var(--red-code);
}
.log-top .s-500 {
	color: var(--red-code);
}

.log-path {
	font-size: 15px;
	word-break: break-all;
	margin-bottom: 10px;
}

.log-bottom {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	opacity: 0.7;
}
.log-bottom span {
	font-size: 12px;
}

hr {
	border: 1px solid var(--shadow);
}

.button-box {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.button-box a {
	width: 12rem;
	padding: 1rem;
	text-decoration: none;
	text-align: center;
	border: 1px solid var(--shadow);
	color: var(--text-color);
	transition: 0.2s ease;
}

.button-box a:nth-child(1) {
	background: var(--text-color);
	color: var(--bg-color);
}

.main h3 {
	font-family:;
	font-size: 1.8rem;
	line-height: 3.3rem;
	margin-bottom: 0.5rem;
}
.head-code {
	display: flex;
	gap: 1rem;
	padding: 10px 1rem;
	align-items: center;
	font-family: "Jetbrains Mono";
	border: 1px solid var(--shadow);
}

.icon-code {
	display: flex;
	gap: 5px;
}
.icon-code span {
	width: 10px;
	height: 10px;
	border-radius: 1rem;
}
.icon-code span:nth-child(1) {
	background: var(--red-code);
}
.icon-code span:nth-child(2) {
	background: var(--yellow-code);
}
.icon-code span:nth-child(3) {
	background: var(--green-code);
}
.head-code span {
	font-size: 14px;
	color: var(--paragraph);
}
.example pre {
	margin: -1px 0 0 0;
	max-width: 500px;
	font-family: "Jetbrains Mono";
	border: 1px solid var(--shadow);
}

.fungsi-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
.fungsi {
	flex: 1;
	padding: 1rem 2rem;
	min-width: 250px;
	border: 1px solid var(--shadow);
}
.fungsi h4 {
	font-size: 1.25rem;
}
.fungsi p {
	font-size: 14px;
}

.contributor-box {
	margin-top: 3rem;
}
.contributor-box h3 {
	font-size: 1.5rem;
}
.profile-contributor {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 12rem;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--shadow);
	padding: 1rem;
	background: var(--card);
	position: relative;
	overflow: hidden;
}

#ppContributor {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--shadow);
	position: relative;
	flex-shrink: 0;
}

#ppContributor img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: 0.4s ease;
}

#ppContributor img.loaded {
	opacity: 1;
}

.name-contributor h4 {
	margin: 0;
	font-size: 1rem;
}
.name-contributor p {
	margin: 0;
	font-size: 14px;
}

.footer {
	margin-top: 2rem;
	margin-bottom: -2rem;
	border-top: 1px solid var(--shadow);
}
.footer h4 {
	font-size: 1.25rem;
}
.footer p {
	margin-left: 10px;
}
.footer-link {
	display: flex;
	flex-direction: column;
}
.footer-link a {
	margin-left: 10px;
	text-decoration: none;
	color: var(--paragraph);
	transition: 0.3s ease;
}
.footer-link a:hover {
	text-decoration: underline;
	opacity: 0.75;
}
.copyright {
	padding: 1rem;
	margin-top: 1rem;
	border-top: 1px solid var(--shadow);
	text-align: center;
}

/* skeleton */

.skeleton {
	position: relative;
	overflow: hidden;
	background: var(--shadow);
	border-radius: 8px;
}

.skeleton::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.15),
		transparent
	);

	animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
	100% {
		transform: translateX(100%);
	}
}

.hero-title-skeleton {
	width: 350px;
	height: 55px;
	margin-bottom: 1rem;
}

.hero-desc-skeleton {
	width: 280px;
	height: 18px;
}

.latency-skeleton {
	width: 80px;
	height: 35px;
	margin-top: 0.4rem;
}
#latencyRespon::after {
	content: "ms";
	font-size: 1rem;
	color: var(--true);
}

.avatar-skeleton {
	position: absolute;
	inset: 0;
}

.name-skeleton {
	width: 130px;
	height: 22px;
}

.commit-skeleton {
	width: 90px;
	height: 18px;
}

.hidden {
	display: none;
}

@media (max-width: 768px) {
	.nav-pc {
		display: none;
	}
	h2 {
		font-size: 2.3rem;
		line-height: 2.6rem;
	}
	.main {
		padding: 1.5rem;
	}
}
@media (min-width: 769px) {
	#hamburger {
		display: none;
	}
}
