/* Global Styles */
body {
  background-color: #1e1e1e;
  color: #f4f4f4;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background-image: url('');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(15px);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: min(90%, 500px);
}

.header {
  font-size: 48px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FFFF00;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.icon {
  height: 48px;
  width: 48px;
}

.description {
  font-size: 18px;
  color: #d1d1d1;
  line-height: 1.6;
}

.input {
  width: 100%;
  max-width: 450px;
  background-color: transparent;
  border: 2px solid rgb(100, 100, 100);
  font-size: 16px;
  padding: 14px;
  text-align: center;
  color: #f2fa00;
  outline: none;
  border-radius: 50px;
  transition: border-color 200ms, box-shadow 200ms;
}

.input::placeholder {
  color: #a1a1a1;
}

.input:focus {
  border-color: #f7dc0c;
  box-shadow: 0 0 10px rgba(104, 93, 255, 0.6);
}

.input:disabled {
  color: #757575;
}

.logo {
  height: 60px;
  width: 60px;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 30px #685dff);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  bottom: 0;
  color: #fafa00;
  backdrop-filter: blur(10px);
}

.footer a,
.footer a:visited {
  color: #fafa00;
  font-size: 16px;
  text-decoration: none;
  text-underline-offset: 2.5px;
  transition: color 200ms, text-decoration 200ms;
}

.footer a:hover {
  text-decoration: underline;
  color: #fafa00;
}

.footer div {
  display: flex;
  gap: 30px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: #fafa00;
  z-index: 1000;
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

  display: flex;
  align-items: center; /* Ensures buttons & Discord icon align */
  justify-content: left;
  gap: 10px; /* Adds spacing between buttons and Discord icon */
}

/* Navbar buttons */
.navbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--button-text) !important;  /* Now follows the theme */
  text-align: center;
  padding: 12px 18px;
  text-decoration: none;
  transition: background-color 300ms, color 300ms;
  border-radius: 10px;
  background-color: var(--button-bg);
}


.navbar a:hover {
  background-color: #fafa00;
  color: black;
}

/* Style buttons */
.button {
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  margin: 5px;
  background-color: #3b3b3b; /* Slightly lighter gray */
  border-radius: 10px;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* Matches Discord button */
  cursor: pointer;
}

/* Hover effect for buttons */
.button:hover {
  background-color: #555; /* Lighter gray on hover */
}

/* Fix Discord Icon Alignment */
.discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #5865F2; /* Discord brand color */
  border-radius: 10px;
  width: 40px;
  height: 40px; /* Matches button size */
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

/* Resize Discord Icon */
.discord-icon {
  width: 24px;
  height: 24px;
}

/* Hover Effect for Discord Button */
.discord-button:hover {
  background-color: #4752C4;
  transform: scale(1.1);
}

/* Games Page Styles */
.game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.game-card {
  background-color: #3b3b3b;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.game-card:hover {
  background-color: #fafa00;
  color: black;
  transform: scale(1.05);
}

/* Game Display Area */
.game-container {
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: black;
  position: relative;
}

iframe#game-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Full-Screen Exit Button */
.fullscreen-button {
  display: none;
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: red;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 9999;
}

.fullscreen-button:hover {
  background-color: darkred;
}


/* Settings Page */
.setting {
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
}

.setting label {
  font-size: 18px;
}

.setting input, .setting select {
  padding: 8px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Default Theme */
:root {
  --background-color: #1e1e1e;
  --text-color: #f4f4f4;
  --button-bg: #3b3b3b;
  --button-hover: #555;
  --button-text: white;
  --header-color: #FFFF00;
}

/* Cyber Theme */
[data-theme="cyber"] {
  --background-color: black;
  --text-color: cyan;
  --button-bg: #00ffea;
  --button-hover: #00ccbb;
  --button-text: black;
  --header-color: #00ffff;
}

/* Solarized Theme */
[data-theme="solarized"] {
  --background-color: #fdf6e3;
  --text-color: #657b83;
  --button-bg: #b58900;
  --button-hover: #cb4b16;
  --button-text: white;
  --header-color: #b58900;
}

/* Ocean Theme */
[data-theme="ocean"] {
  --background-color: #2b3e50;
  --text-color: #a0cfff;
  --button-bg: #007acc;
  --button-hover: #005f99;
  --button-text: white;
  --header-color: #00aaff;
}

/* Midnight Theme */
[data-theme="midnight"] {
  --background-color: #121212;
  --text-color: #bb86fc;
  --button-bg: #3700b3;
  --button-hover: #6200ea;
  --button-text: white;
  --header-color: #bb86fc;
}

/* Forest Theme */
[data-theme="forest"] {
  --background-color: #2c5d3f;
  --text-color: #d4e157;
  --button-bg: #558b2f;
  --button-hover: #76ff03;
  --button-text: black;
  --header-color: #76ff03;
}

/* Retro Theme */
[data-theme="retro"] {
  --background-color: #ffcc00;
  --text-color: #ff3366;
  --button-bg: #ff6600;
  --button-hover: #ff0033;
  --button-text: black;
  --header-color: #ff0033;
}

/* Apply Theme Variables */
body {
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Apply Theme to Header */
.header {
  color: var(--header-color);
  font-size: 48px;
  font-weight: 600;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  text-align: center;
}

/* Apply Theme to Buttons */
.button, .app-card, .game-card {
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.button:hover, .app-card:hover, .game-card:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}



/* Panic Button */
.panic-button {
  margin-top: 20px;
  padding: 10px 15px;
  font-size: 16px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.panic-button:hover {
  background-color: darkred;
}

/* Apps Page Styles */
.app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.app-card {
  background-color: #3b3b3b;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.app-card:hover {
  background-color: #fafa00;
  color: black;
  transform: scale(1.05);
}

/* App Display Area */
.app-container {
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: black;
  position: relative;
}

iframe#app-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Full-Screen Exit Button */
.fullscreen-button {
  display: none;
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: red;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 9999;
}

.fullscreen-button:hover {
  background-color: darkred;
}

#home-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 9999; /* Stays on top of games & apps */
}

#home-button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}
