/* Start Kazwire Theme */

html[data-bs-theme="kazwire"] body {
	margin: 0;
	background: #121212;
	color: #ffffff;
	font-family: Arial, sans-serif;
	display: flex;
	flex-direction: column;
	height: 100vh;
	text-align: center;
	padding: 50px 20px;
}

html[data-bs-theme="kazwire"] header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #181818;
	padding: 10px 20px;
	border-bottom: 2px solid #333;
}

html[data-bs-theme="kazwire"] header img { height: 45px; }

html[data-bs-theme="kazwire"] nav a {
	margin-left: 15px;
	padding: 10px 18px;
	background: #ffcc00;
	color: #000;
	text-decoration: none;
	border-radius: 10px;
	font-weight: bold;
	transition: 0.3s;
}

html[data-bs-theme="kazwire"] nav a:hover { background: #ffaa00; }

html[data-bs-theme="kazwire"] .container {
	flex: 1;
	display: flex;
	padding: 20px;
	gap: 20px;
	align-items: flex-start;
}

html[data-bs-theme="kazwire"] .game-box {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #181818;
	padding: 15px;
	border-radius: 12px;
	border: 1px solid #333;
	position: relative;
}

html[data-bs-theme="kazwire"] iframe {
	width: 100%;
	height: calc(100vh - 90px - 50px);
	border: none;
	border-radius: 10px;
	background: #000;
	transition: border-radius 0.2s;
}

html[data-bs-theme="kazwire"] .game-title { 
	margin-top: 10px; 
	font-size: 1.8em; 
	text-align: left; 
	flex: none; 
}

html[data-bs-theme="kazwire"] .game-author { 
	margin-top: 10px; 
	font-size: 0.8em; 
	text-align: left; 
	flex: none; 
}

/* Fullscreen button */
html[data-bs-theme="kazwire"] .full-btn {
	position: absolute;
	bottom: 15px;
	right: 15px; /* right-most */
	width: 40px;
	height: 40px;
	background: #ffcc00;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: 0.3s;
	text-decoration: none;
}

html[data-bs-theme="kazwire"] .full-btn:hover {
	background: #ffaa00;
	transform: scale(1.05); /* subtle zoom for both buttons */
}

html[data-bs-theme="kazwire"] .full-btn::after {
	content: '\26F6';
	font-size: 20px;
	color: #000;
}

/* Close button - left of fullscreen */
html[data-bs-theme="kazwire"] .close-btn {
	position: absolute;
	bottom: 15px;
	right: 65px; /* left of fullscreen by 50px */
	width: 40px;
	height: 40px;
	background: #ffcc00;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: 0.3s;
	color: #000;
	font-weight: bold;
	text-decoration: none;
	font-size: 20px;
}

html[data-bs-theme="kazwire"] .close-btn:hover {
	background: #ffaa00;
	transform: scale(1.05);
}

html[data-bs-theme="kazwire"] .ads {
	width: 260px;
	background: #181818;
	border: 1px solid #333;
	border-radius: 12px;
	padding: 15px;
	overflow: hidden;
}

html[data-bs-theme="kazwire"] .export-btn {
    position: absolute;
    bottom: 15px;
    right: 165px;
    width: 40px;
    height: 40px;
    background: #ffcc00;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

html[data-bs-theme="kazwire"] .import-btn {
    position: absolute;
    bottom: 15px;
    right: 115px; 
    width: 40px;
    height: 40px;
    background: #ffcc00;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

html[data-bs-theme="kazwire"] .export-btn:hover,
html[data-bs-theme="kazwire"] .import-btn:hover {
    background: #ffaa00;
    transform: scale(1.05);
}

html[data-bs-theme="kazwire"] .export-btn::after {
    content: '\2913'; /* Download icon */
    font-size: 20px;
    color: #000;
	font-weight: bold;
}

.game-title, .game-author {
  pointer-events: none; /* Clicks pass through text to the box/iframe */
}

html[data-bs-theme="kazwire"] .import-btn::after {
    content: '\2912'; /* Upload icon */
    font-size: 20px;
    color: #000;
	font-weight: bold;
}

html[data-bs-theme="kazwire"] .ad-slot { 
	width: 100%; 
	height: 650px; 
	display: flex; 
	justify-content: center; 
	align-items: center; 
	overflow: hidden; 
	border-radius: 10px; 
}

html[data-bs-theme="kazwire"] .ad-slot img { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
}

/* Footer, logo, topbar, quick games, etc. */
html[data-bs-theme="kazwire"] .logo-header img {
	width: 400px;
	height: auto;
	margin-bottom: 40px;
}

html[data-bs-theme="kazwire"] .topbar {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 50px;
}

html[data-bs-theme="kazwire"] .topbar a {
	text-decoration: none;
	padding: 12px 25px;
	background-color: #ffcc00;
	color: #000;
	font-weight: bold;
	border-radius: 10px;
	transition: background 0.3s;
}

html[data-bs-theme="kazwire"] .topbar a:hover { background-color: #ffaa00; }

html[data-bs-theme="kazwire"] .intro {
	font-size: 1.2em;
	margin-bottom: 50px;
}

html[data-bs-theme="kazwire"] .quick-games-section { text-align: center; margin-bottom: 50px; }
html[data-bs-theme="kazwire"] .quick-games-section h2 { font-size: 1.8em; margin-bottom: 20px; }

html[data-bs-theme="kazwire"] .quick-games {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

html[data-bs-theme="kazwire"] .quick-games a {
	flex: 1 1 150px;
	text-align: center;
	padding: 15px 20px;
	background: #ffcc00;
	color: #000;
	font-weight: bold;
	border-radius: 10px;
	transition: 0.3s;
	text-decoration: none;
}

html[data-bs-theme="kazwire"] .quick-games a:hover { background-color: #ffaa00; }

html[data-bs-theme="kazwire"] .footer-logo {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 200px;
	height: auto;
	z-index: 9998;
	padding: 10px;
}

html[data-bs-theme="kazwire"] .feedback-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #222;
	color: #fff;
	padding: 10px 15px;
	border-radius: 20px;
	text-decoration: none;
	font-size: 14px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	z-index: 9999;
}

html[data-bs-theme="kazwire"] #loginStatus {
  position: absolute;
  top: 10px;
  right: 25px;
  z-index: 10000;
  padding: 5px; /* Added a lil padding */
}

/* Style for both "Log in" and "Username" */
html[data-bs-theme="kazwire"] .auth-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
  background: rgba(30, 30, 30, 0.6);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

html[data-bs-theme="kazwire"] .auth-link:hover {
  opacity: 1;
  color: #ffcc00; /* Using the red from your provided page for hover */
}

.topbar {
  display: flex;          /* Enables flexbox */
  flex-wrap: wrap;       /* Allows buttons to wrap to the next line */
  gap: 10px;             /* Adds spacing between buttons */
  justify-content: center; /* Centers the buttons (optional) */
  padding: 20px;
}

.topbar a {
  white-space: nowrap;   /* Prevents text inside the button from breaking */
  display: inline-block;
  text-decoration: none;
  /* Add your existing button styling (padding, background, etc.) here */
  padding: 10px 20px;
  background-color: #333; 
  color: white;
  border-radius: 5px;
}

/* End Kazwire Theme */
