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

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: "Quicksand", sans-serif;
	font-weight: 700;
}

::-webkit-scrollbar {
    width: 8px;
    outline: 1px solid #000;
}
  
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
  
::-webkit-scrollbar-thumb {
    background: #98daff;
      border-radius: 20px;
      outline: 1px solid #000;
}
::selection {
    background-color: #98daff;
    color: #0d0d0d;
}  

body {
	background: linear-gradient(to bottom, #0d0d0d, #000);
	color: #fff;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#particles-js {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

#navbar {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 520px;
	max-width: 90vw;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	z-index: 100;
}

#navbar-right {
	display: flex;
	align-items: center;
	gap: 4px;
}

#navbar a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 1.5rem;
	padding: 6px 10px;
	display: inline-flex;
	align-items: center;
	position: relative;
	transition: 0.2s;
}

#navbar a:hover {
	transform: scale(1.2);
	color: #fff;
}

#nav-logo {
	display: flex;
	align-items: center;
	padding: 0 4px;
}

#logo-img {
	height: 40px;
	width: auto;
}

#nav-tooltip {
	position: fixed;
	background: #111;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 16px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s;
	z-index: 9999;
}

.hidden {
	display: none;
}


body.browsing #navbar {
	display: none;
}

#top-bar {
	display: none;
	flex-shrink: 0;
	align-items: center;
	gap: 16px;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	position: relative;
	z-index: 1;
}

#back {
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	font-size: 0.8rem;
	white-space: nowrap;
	transition: color 0.15s;
}

#back:hover {
	color: #fff;
}

#sj-form-top {
	flex: 1;
	display: flex;
	justify-content: center;
}

#sj-address-top {
	width: 460px;
	max-width: 90%;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	color: #fff;
	font-size: 16px;
	padding: 5px;
	border-radius: 15px;
	outline: none;
	height: 38px;
	text-align: center;
	transition: 0.2s;
}

#sj-address-top::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

#sj-address-top:hover,
#sj-address-top:focus {
	background: rgba(255, 255, 255, 0.09);
	outline: 3.5px solid #fff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
	width: 540px;
	max-width: 95%;
}

main {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 600px;
	padding: 0 20px;
	margin: 0 auto;
}

h1 {
	font-size: 4rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}

main > p {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0.5px;
}

#sj-form {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 8px;
}

#sj-address {
	width: 535px;
	max-width: 90vw;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	color: #fff;
	font-size: 16px;
	padding: 5px;
	border-radius: 15px;
	outline: none;
	height: 45px;
	text-align: center;
	transition: 0.2s;
}

#sj-address::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

#sj-address:hover {
	background: rgba(255, 255, 255, 0.09);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.705);
	width: 550px;
	max-width: 95vw;
}

#sj-address:focus {
	background: rgba(255, 255, 255, 0.09);
	outline: 3.5px solid #fff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
	width: 600px;
	max-width: 95vw;
}

#sj-error {
	font-size: 0.85rem;
	color: #ff5555;
	white-space: pre-wrap;
}

#sj-error-code {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	font-family: monospace;
}

#frame-container {
	display: none;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

#sj-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

body.browsing {
	height: 100vh;
	overflow: hidden;
}

body.browsing #top-bar {
	display: flex;
}

body.browsing main {
	display: none;
}

body.browsing #frame-container {
	display: block;
	flex: 1;
}


main.g-page,
main.a-page {
	display: block;
	width: 1008px;
	max-width: 100%;
	padding: 120px 24px 60px;
	margin: 0 auto;
	text-align: center;
}

main.g-page h1,
main.a-page h1 {
	font-size: 3rem;
	letter-spacing: 0;
	margin-bottom: 24px;
}

#g-search-wrap,
#a-search-wrap {
	margin-bottom: 36px;
	display: flex;
	justify-content: center;
}

#g-search,
#a-search {
	width: 535px;
	max-width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	color: #fff;
	font-size: 16px;
	padding: 5px;
	border-radius: 15px;
	outline: none;
	height: 45px;
	text-align: center;
	transition: 0.2s;
}

#g-search::placeholder,
#a-search::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

#g-search:hover,
#g-search:focus,
#a-search:hover,
#a-search:focus {
	background: rgba(255, 255, 255, 0.09);
	outline: 3.5px solid #fff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
	width: 600px;
}

#g-grid,
#a-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	width: 100%;
}

.g-card,
.a-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	transition: 0.2s;
}


.g-card:hover img,
.a-card:hover img {
	border-color: #fff;
	box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
	transform: scale(1.06);
}

.g-card span,
.a-card span {
	display: none;
}

#i-gameframe {
	position: relative;
	z-index: 1;
	margin-top: 5vw;
	margin-bottom: 6vw;
	margin-right: 23vw;
	display: flex;
	align-items: center;
}

#i-gameframe .i-display {
	margin: auto;
	outline: 0.2vw solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.24);
	width: 72.5vw;
	height: 38.5vw;
	background-color: rgba(255, 255, 255, 0.04);
	border-radius: 0.5vw;
	overflow: hidden;
}

#i-gameframe .i-game {
	margin: auto;
	width: 72.5vw;
	height: 34vw;
	position: relative;
}

#i-gameframe .i-game #sj-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

#i-gameframe .i-options {
	width: 100%;
	height: 4.5vw;
	display: flex;
	align-items: center;
	padding: 0 1vw;
	background: rgba(10, 10, 10, 0.9);
}

#i-gameframe .i-options .i-left,
#i-gameframe .i-options .i-right {
	width: 50%;
	height: 100%;
	display: flex;
	align-items: center;
}

#i-gameframe .i-options .i-right {
	justify-content: flex-end;
}

.i-icon {
	border-radius: 0.5vw;
	width: 2.6vw;
	height: 2.6vw;
	object-fit: cover;
	flex-shrink: 0;
}

.i-margin {
	margin-left: 0.7vw;
}

#i-title {
	font-size: 1.1vw;
	color: #fff;
}

.i-addisplay {
	position: absolute;
	left: 80vw;
	width: 160px;
	height: 600px;
	background-color: #272727;
	border-radius: 0.5vw;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: 0.2vw solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.24);
	overflow: hidden;
}

.i-reload,
.i-fullscreen {
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	margin-left: 1.2vw;
	font-size: 1.6vw;
	transition: transform 0.3s ease-in-out, color 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.i-reload:hover,
.i-fullscreen:hover {
	color: #fff;
}

.i-fullscreen:hover {
	transform: scale(1.2) rotate(-10deg);
}

.i-reload:hover {
	transform: scale(1.2) rotate(360deg);
}

@media screen and (max-width: 1366px) {
	#i-gameframe {
		flex-direction: column;
		margin-right: 0;
		margin-top: 6.5vw;
	}

	#i-gameframe .i-display {
		width: 90vw;
		height: auto;
	}

	#i-gameframe .i-game {
		width: 100%;
		height: 55vw;
	}

	#i-gameframe .i-options {
		height: 8vw;
	}

	.i-icon {
		width: 4vw;
		height: 4vw;
	}

	#i-title {
		font-size: 2vw;
	}

	.i-reload,
	.i-fullscreen {
		font-size: 3vw;
	}

	.i-addisplay {
		position: relative;
		left: auto;
		margin: 4vw auto 0;
	}
}

@media screen and (max-width: 768px) {
	#i-gameframe .i-game {
		height: 60vw;
	}

	#i-gameframe .i-options {
		height: 10vw;
	}

	.i-icon {
		width: 5vw;
		height: 5vw;
	}

	#i-title {
		font-size: 2.5vw;
	}

	.i-reload,
	.i-fullscreen {
		font-size: 4vw;
	}
}

main.credits {
	max-width: unset;
	flex: 1;
	justify-content: center;
	gap: 28px;
	padding: 0 20px;
	margin: 0 auto;
}

.credit-row {
	text-align: center;
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.75);
}

.credit-row .label {
	color: rgba(255, 255, 255, 0.35);
	display: block;
	margin-bottom: 4px;
}

#discord {
	font-size: 1.2em;
	padding: 10px 20px;
	margin: 10px;
	background-color: #000;
	color: #fff;
	border-radius: 8px;
	outline: 2px solid #0f0f0f;
	border: 4px solid transparent;
	transition: all 0.2s ease-in-out;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
	text-decoration: none;
	display: inline-block;
}

#discord:hover {
	border: 4px solid #98daff;
	box-shadow: 0 0 10px #63A0C2, 0 0 20px #63A0C2, 0 0 30px #63A0C2;
	outline: 2px solid transparent;
}