@font-face {
  font-family: 'FSAlbert';
  src: url('./FSAlbert-Thin.otf') format('opentype');
}

/* Container removed - canvas is used directly */

/* .game {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */

body {
  font-family: 'FSAlbert', sans-serif;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  /* Changed from auto to hidden to prevent scrollbars */
  background-color: #000000;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Authentication Styles */
.auth-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
}

.auth-form {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 400px;
}

.auth-form h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 300;
  font-size: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  color: #ffffff;
  font-size: 16px;
  font-family: 'FSAlbert', sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #4a9eff;
}

.form-group input::placeholder {
  color: #888888;
}

.auth-button {
  width: 100%;
  padding: 12px;
  background-color: #041120;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-family: 'FSAlbert', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.auth-button:hover {
  background-color: #052840;
}

.auth-button:active {
  background-color: #1b3b5d;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: #888888;
  font-size: 14px;
}

.auth-switch a {
  color: #4a9eff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: #6ab0ff;
}

.error-message {
  color: #ff4444;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}

/* Main App Container */
#appContainer {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

/* Logout Button */
.logout-container {
  z-index: 1000;
}

.logout-button {
  padding: 5px;
  background-color: #041120;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 12pxx;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #052840;
}

/* Canvas styling */
#giftly {
  border: none;
  outline: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  display: block;
  image-rendering: crisp-edges;
  image-rendering: -webkit-crisp-edges;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Text Editor Styles */
.text-editor-container {
  position: fixed;
  top: 490px;
  left: 50px;
  width: 290px;
  height: 100px;
  z-index: 1000;
}

.toggle-text-btn {
  display: none;
  /* Hide the toggle button since textarea will always be visible */
}

.message-textarea {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  caret-color: transparent;
  /* Hide the cursor */
  -webkit-text-fill-color: transparent;
  /* Hide text in webkit browsers */
}

.message-textarea::placeholder {
  color: transparent;
}

.message-textarea:focus {
  border: none;
  box-shadow: none;
}

/* Remove scrollbar styling since textarea is invisible */
.message-textarea::-webkit-scrollbar {
  display: none;
}

/* File input styles */
.file-input-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.file-input-label {
  display: inline-block;
  padding: 10px;
  background-color: #041120;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.file-input-label:hover {
  background-color: #041120;
}

.file-input-label:active {
  background-color: #1b3b5d;
}