.fullscreen-container {
  width: 100%;
  height: calc(100vh - 64px);
  overflow: hidden;
  position: relative;
}

.game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: manipulation;
}

.leaderboard-toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.leaderboard-toggle-btn:hover {
  background-color: #f8f8f8;
}

/* Game over leaderboard button */
.gameover-leaderboard-btn {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 20;
}

.gameover-leaderboard-btn:hover {
  background-color: #f8f8f8;
}

.gameover-trophy {
  width: 20px;
  height: 20px;
  color: #f59e0b;
}

.leaderboard {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 380px;
  z-index: 30;
  pointer-events: all;
}

.leaderboard-content {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.leaderboard-title {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.close-btn:hover {
  color: #1f2937;
}

.trophy-icon {
  width: 20px;
  height: 20px;
  color: #f59e0b;
}

.loading-text {
  color: #6b7280;
  text-align: center;
  padding: 16px 0;
}

.no-scores {
  color: #6b7280;
  text-align: center;
  padding: 16px 0;
}

.leaderboard-entries {
  display: flex;
  flex-direction: column;
}

.leaderboard-entry {
  padding: 8px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #000;
}

.current-user-entry {
  background-color: rgba(255, 215, 0, 0.2);
  border-left: 3px solid gold;
}
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem;
    border-top: 1px solid #e0e0e0;
}
.pagination-controls span {
    font-size: 0.9rem;
    color: #555;
}
.user-rank-info {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.top-score {
  color: #f59e0b !important;
  font-weight: bold;
}

.entry-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-rank {
  font-family: monospace;
}

.entry-score {
  font-family: monospace;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.modal-text {
  margin-bottom: 16px;
}

.input-container {
  margin-bottom: 16px;
}

.name-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-button {
  width: 80px;
  height: 40px;
  border-radius: 15px;
  font-weight: 500;
  cursor: pointer;
}

.skip-button {
  background-color: #6b7280;
  color: white;
}

.submit-button {
  background-color: #4CAF50;
  color: white;
}

/* Game over overlay styles */
.game-over-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.game-over-title {
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.game-over-score {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.game-over-image {
  width: 120px !important;
  margin-bottom: 1rem;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.score-value {
  font-weight: bold;
  color: #ffe600;
  font-style: italic;
}

.restart-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 10px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.restart-button:hover {
  background-color: #45a049;
}

.back-button {
  margin-top: 15px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.back-button:hover {
  background-color: rgba(40, 40, 40, 0.8);
  transform: translateY(-2px);
}

.wait-message {
  color: #fff;
  font-size: 18px;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  .game-over-title {
    font-size: 35px;
  }

  .leaderboard-toggle-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .gameover-leaderboard-btn {
    bottom: 80px;
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .leaderboard {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .leaderboard-content {
    padding: 12px;
  }
  
  .leaderboard-title {
    font-size: 1rem;
  }
  
  .leaderboard-entry {
    padding: 6px 0;
    font-size: 0.9rem;
  }
  
  .modal-content {
    padding: 16px;
  }
  
  .modal-title {
    font-size: 1.1rem;
  }
  
  .modal-text {
    font-size: 0.9rem;
  }
}

/* Start screen overlay styles */
.start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer; /* Add cursor pointer to indicate clickable area */
}

.game-title {
  color: #fff;
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.virus-text {
  color: #7eebff;
  background: linear-gradient(45deg, #7eebff, #4CAF50);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.start-instructions {
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
  text-align: center;
}

/* Pause overlay styles */
.pause-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.pause-title {
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.pause-instructions {
  color: #fff;
  font-size: 18px;
  text-align: center;
}

.audio-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(71, 71, 71, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background-color 0.2s;
}

.audio-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.audio-icon {
  width: 18px;
  height: 18px;
}

/* Add character selection styles */
.character-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  padding: 10px 20px;
}

.selection-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 0 5px #000;
}

.character-options {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.character-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);
}

.character-option.selected {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.character-option img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.character-option span {
  color: white;
  font-weight: bold;
  text-shadow: 0 0 3px #000;
}

@media (max-width: 768px) {
  .character-options {
    gap: 15px;
  }
  
  .character-option img {
    width: 50px;
    height: 50px;
  }
  
  .selection-title {
    font-size: 1.2rem;
  }
}
