/**
 * Positive Lens Game - CSS Styles
 */

/* Reset all styles within our container to prevent theme interference */
.positive-lens-game-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Main container */
.positive-lens-game-container {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin: 40px auto;
  max-width: 1000px;
  z-index: 9999 !important; /* Force highest z-index */
}

/* Create a background shield to block text */
.positive-lens-container::before,
.positive-lens-game::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: -1;
}

.positive-lens-container,
.positive-lens-game {
  position: relative;
  z-index: 9999 !important;
  background: #fff;
  padding: 20px;
}

/* Create a full overlay for the page during gameplay */
.positive-lens-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000 !important;
}

/* Image grid with absolute positioning to keep it clean */
.positive-lens-images-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin: 20px 0;
  z-index: 9999 !important;
  background: #fff;
}

/* Rest of styles remain the same */
.positive-lens-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  z-index: 9999 !important;
}

.positive-lens-subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  z-index: 9999 !important;
}

.positive-lens-status {
  margin-bottom: 30px;
  color: #555;
  position: relative;
  z-index: 9999 !important;
}

.positive-lens-difficulty-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 9999 !important;
  background: #fff;
}

.positive-lens-difficulty-btn {
  padding: 15px;
  border-radius: 5px;
  border: 2px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 9999 !important;
}

.positive-lens-difficulty-btn.active {
  border-color: #3b82f6;
  background-color: #dbeafe;
}

.positive-lens-difficulty-btn .difficulty-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.positive-lens-difficulty-btn .difficulty-info {
  font-size: 14px;
  color: #555;
}

.positive-lens-sound-btn {
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  position: relative;
  z-index: 9999 !important;
}

.positive-lens-start-btn {
  padding: 15px;
  border-radius: 5px;
  border: none;
  background-color: #3b82f6;
  color: white;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  z-index: 9999 !important;
}

.positive-lens-start-btn:hover {
  background-color: #2563eb;
}

.positive-lens-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 9999 !important;
  background: #fff;
}

.positive-lens-stats {
  text-align: left;
}

.positive-lens-score-container {
  display: flex;
  gap: 20px;
  font-size: 16px;
}

.positive-lens-game-info {
  text-align: right;
  font-size: 16px;
}

.positive-lens-best-time {
  color: #22c55e;
}

.positive-lens-instructions {
  text-align: center;
  font-size: 20px;
  color: #3b82f6;
  margin-bottom: 15px;
  position: relative;
  z-index: 9999 !important;
  background: #fff;
}

.positive-lens-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 9999 !important;
  background: #fff;
}

.positive-lens-timer-container {
  width: 200px;
  height: 10px;
  margin-bottom: 5px;
}

.positive-lens-timer-background {
  width: 100%;
  height: 100%;
  background-color: #e5e5e5;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.positive-lens-timer-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #22c55e;
  border-radius: 5px;
  transition: width 0.1s, background-color 0.3s;
}

.positive-lens-timer-text {
  font-weight: bold;
  font-size: 20px;
}

.positive-lens-image {
  background-color: #f0f0f0;
  border: 2px solid #666;
  height: 350px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 9999 !important;
}

.positive-lens-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.positive-lens-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.positive-lens-image-loading {
  font-size: 18px;
  color: #666;
}

.positive-lens-feedback {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10001 !important;
}

.positive-lens-feedback-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.positive-lens-feedback-title.correct {
  color: #22c55e;
}

.positive-lens-feedback-title.wrong,
.positive-lens-feedback-title.timeout {
  color: #ef4444;
}

.positive-lens-feedback-bonus {
  font-size: 20px;
  color: #eab308;
  margin-bottom: 10px;
}

.positive-lens-feedback-text {
  font-size: 18px;
  margin-bottom: 5px;
}

.positive-lens-insight {
  font-size: 18px;
  color: #3b82f6;
  margin-top: 20px;
}

.positive-lens-controls {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
  position: relative;
  z-index: 9999 !important;
  background: #fff;
}

@media (max-width: 768px) {
  .positive-lens-header {
    flex-direction: column;
    align-items: center;
  }
  
  .positive-lens-stats, 
  .positive-lens-game-info {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .positive-lens-score-container {
    justify-content: center;
  }
  
  .positive-lens-images-grid {
    grid-template-columns: 1fr;
  }
}