* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', Arial, sans-serif;
	background: #1e1212;
	color: #ffffff;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: url('comic.cur'), auto;
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: var(--highlight) var(--bg-alt);
}

:root {
	--glow-color: #ffffff;
	--glow-amount: 10px;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 41px 41px;
	z-index: -999;
	pointer-events: none;
}

#loading-screen {
	position: fixed;
	inset: 0;
	background: #1e121280;
	backdrop-filter: blur(20px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 1;
	transition: opacity 1s ease-out;
}

.loader-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 200px;
}

#logo {
	width: 200px;
	height: 200px;
}

#loading-bar-container {
	width: 100%;
	height: 8px;
	background: #444;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 15px;
}

#loading-bar {
	height: 100%;
	width: 0;
	background: #fff;
	border-radius: 4px;
	transition: width 1s ease;
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #341f1f;
	backdrop-filter: blur(20px);
	padding: 0 25px;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.4);
	height: 75px;
	border-radius: 8px;
}

.navbar h1 {
	font-size: 2rem;
	color: #e0e0e0;
}

.navbar-right.top {
	display: flex;
	align-items: center;
	gap: 20px;
}

.navbar-right a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: white;
	font-size: 1.2rem;
	font-weight: 500;
	transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
	padding: 10px;
	border-radius: 8px;
	width: 50px;
	height: 50px;
}

.navbar-right a:hover {
	color: #ff0000;
	transform: scale(1.15);
	opacity: 0.8;
}

.navbar-right img {
	width: 28px;
	height: 28px;
	filter: invert(1);
	transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-right img:hover {
	transform: scale(1.15);
	filter: invert(0.7);
}

.navbar-right .label {
	position: absolute;
	top: 55px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(43, 43, 43, 0.9);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 12px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	white-space: nowrap;
}

.navbar-right a:hover .label {
	opacity: 1;
}

.index-page .content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin-top: 120px;
	gap: 20px;
}

.index-page h1 {
	font-size: 4rem;
	color: #e0e0e0;
	margin-bottom: 10px;
}

.index-page p {
	font-size: 1.5rem;
	color: #b3b3b3;
}

.index-page .search-bar {
	padding: 10px 20px;
	width: 450px;
	border-radius: 25px;
	border: 2px solid transparent;
	outline: none;
	background-color: #2d1b1b;
	color: #ffffff;
	text-align: center;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
	font-size: 1rem;
	transition: all 0.4s ease;
}

.index-page .search-bar:focus {
	width: 470px;
	box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5), 0 0 var(--glow-amount) var(--glow-color);
	border-color: var(--glow-color);
	transform: scale(1.02);
}

.game-gallery {
	padding: 0;
	margin: 40px auto;
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	justify-content: center;
}

.game {
	background-color: transparent;
	border: none;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	display: inline-block;
	margin: 10px;
}
#roddyrichhesbox {
  position: relative;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  background: black;
  box-shadow: 0 0 20px #ff3333, 0 0 30px #ff3333;
  text-align: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.game-link {
  display: block;
}

.game-thumbnail {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    transition: ease .2s;
    border: 5px solid transparent;
}

.game-thumbnail:hover {
    scale: 1.2;
    transition: ease .2s;
    border: 5px solid #ffffff;
}

@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

.game-link::before {
	content: attr(data-name);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 1.3rem;
	font-weight: bold;
	text-align: center;
	width: 100%;
	padding: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.game:hover .game-link::before {
	opacity: 1;
}

::-webkit-scrollbar {
	width: 12px;
	height: 0;
}

::-webkit-scrollbar-thumb {
	background-color: #411e1e;
	border-radius: 10px;
	border: 3px solid #1f1f1f;
}

::-webkit-scrollbar-thumb:hover {
	background-color: #411e1e;
}

::selection {
	background-color: #602121;
	color: white;
}

.iframe-page {
	background: #1e1212;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gayframe {
	width: 75%;
	height: 65vh;
	margin-top: 100px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
	position: relative;
	background: #000;
}

.gayframe iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.idkbuttonsonaframe {
	margin: 0 auto;
	width: 5%;
	height: 6.7vh;
	background-color: var(gray);
	backdrop-filter: blur(3px);
	color: var(gray);
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	padding-right: 15px;
	margin-bottom: 25px;
}

.idkbuttonsonaframe button {
	background-color: transparent;
	border: none;
	color: var(--text-color);
	font-size: 2rem;
	margin-left: 10px;
	cursor: pointer;
	transition: color 0.3s ease;
}

.idkbuttonsonaframe button:hover {
	color: var(--icon-color);
}

#fullscreenBtn i,
#refreshBtn i {
	pointer-events: none;
}


.error-msg {
	color: #ccc;
	font-size: 1.5rem;
	margin-top: 150px;
	text-align: center;
}
#ad-container {
  position: fixed;
  right: 10px;
  top: 120px;
  width: 160px;
  height: 600px;
  z-index: 999;
}
#featured {
  width: 90%;
  max-width: 1600px;
  margin: 120px auto 60px auto;
  text-align: center;
  background: rgba(30, 18, 18, 0.6);
  border-radius: 15px;
  padding: 30px;
}

#featured h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 25px;
}

.featured-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.featured-game {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    transition: ease .2s;
    border: 5px solid transparent;
}

.featured-game img {
    width: 150px;
    height: 150px;
    border-radius: 15.2px;
    transition: ease .2s;
    border: 5px solid transparent;
}

.featured-game:hover {
    scale: 1.1;
    transition: ease .2s;
    border: 5px solid #ffffff;
}

@media (max-width: 768px) {
  .featured-grid {
    flex-direction: column;
    align-items: center;
  }
}
