@import url('https://fonts.googleapis.com/css2?family=Phudu:wght@300;400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #1a1a2e;
  --foreground: #e1e1e1;
  --accent: #16213e;
  --secondary: #0f3460;
}



body {
  color: var(--foreground);
  background: var(--background);
  font-family: 'Phudu', sans-serif;
}
/* body::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  background: #8C8C8C;
  filter: url(#noiseFilter);
} */

/* .grainy {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
} */
/* Add or update these styles in your globals.css file */

/* Add or update these styles in your globals.css file */

/* html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
} */

main {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.game-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.game-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-container canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.initial-popup {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: 10;
}

/* Adjust these values as needed for your fullscreen button */
.fullscreen-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
}

/* Adjust these values as needed for your pause button */
.pause-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: 'Geist Sans', Arial, sans-serif;
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}
/* Ensure the game container has full height and width and is visible */
#game-container {
  width: 100%;
  height: 100%;
  background-color: black; /* Ensure the container has a background */
  position: relative;
  display: block; /* Ensure it's not hidden */
}

/* Phaser canvas styles to ensure it takes up full space within the game container */
canvas {
  display: block; /* Make sure the canvas is visible */
  width: 100% !important; /* Ensure canvas takes full width */
  height: 100% !important; /* Ensure canvas takes full height */
  outline: none; /* Remove any borders or outlines */
}

/* Style for full screen button */
button.fullscreen-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  z-index: 10;
}




/* .game-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */

/* .game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
} */

.interact-text {
  background-color: rgba(22, 33, 62, 0.8);
  border: 2px solid #0f3460;
  border-radius: 5px;
  padding: 5px 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: #e1e1e1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }
  .dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

@layer utilities {
  .bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
  }
}

:root {
  --color-background: #121212;
  --color-surface: #1E1E1E;
  --color-primary: #BB86FC;
  --color-secondary: #03DAC6;
  --color-error: #CF6679;
  --color-on-background: #FFFFFF;
}




