@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --primary-bg: #000;
  --primary-color: #00aaff;
  --secondary-color: #003366;
  --accent-color: #00aaff;
}

body {
  background-color: var(--primary-bg);
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease-in;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: var(--secondary-color);
  border: 2px solid var(--accent-color);
  border-radius: 15px;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  animation: popIn 0.5s ease-out;
}

.modal-content input,
.modal-content select,
.modal-content button {
  width: 90%;
  padding: 8px;
  margin: 10px 0;
  font-family: 'Press Start 2P', cursive;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  background: transparent;
  color: #fff;
}

.status-window, .quest-window, .player-search-window {
  background-color: var(--secondary-color);
  border: 2px solid var(--accent-color);
  border-radius: 15px;
  padding: 17px;
  margin: 8px;
  width: 90%;
  max-width: 350px;
}

h1 {
  text-align: center;
  color: var(--accent-color);
  font-size: 20px;
}

.status-details p, .quest-window p, .player-search-window p {
  margin: 5px 0;
  font-size: 14px;
}

.quest {
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  animation: glow 1s ease-in-out infinite alternate;
}

button {
  background-color: var(--accent-color);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0077cc;
}

.countdown {
  font-size: 14px;
  margin-top: 10px;
}

.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 1000;
}

/* Add styles for notification permission button */
.permission-button {
  display: block;
  margin: 10px auto;
  padding: 12px 20px;
  background-color: var(--accent-color, #00aaff);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.permission-button:hover {
  background-color: #0088cc;
}

/* Animation for notification indicator */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
  100% { transform: scale(1); }
}

.notify-pulse {
  animation: pulse 0.5s ease-in-out 3;
}

/* In-app notification styles */
.in-app-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 300px;
  background-color: #333;
  color: white;
  border-left: 4px solid var(--accent-color, #00aaff);
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.in-app-notification.show {
  transform: translateX(0);
}

.notification-content {
  flex: 1;
}

.notification-content h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.notification-content p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.close-notification {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 0 0 10px;
  align-self: flex-start;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .permission-button {
    width: 90%;
    padding: 15px;
    font-size: 16px;
  }

  /* Make buttons more touch-friendly on mobile */
  button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .in-app-notification {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes glow {
  from { box-shadow: 0 0 5px var(--accent-color); }
  to { box-shadow: 0 0 20px var(--accent-color); }
}
