/* styles/picture-to-word.css */

/* General body/layout tweaks */
body {
  background-color: var(--bg);
  font-family: 'KGPrimaryPenmanship', 'Nunito', sans-serif;
}

/* Logo */
.logo-header {
  text-align: center;
  margin-top: 2rem;
}
.logo-header img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* Level select screen */
#level-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
}
#level-selection h1 {
  font-size: 2rem;
  margin-bottom: 2.2rem;
  color: var(--text-dark);
  font-family: 'KGPrimaryPenmanship', 'Nunito', sans-serif;
}
.levels {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.level-btn {
  min-width: 220px;
  padding: 1.1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 1rem;
  border: 2.5px solid #23405c;
  background: var(--primary);
  color: #fff;
  margin: 0 auto;
  transition: background 0.15s, border 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  letter-spacing: 0.5px;
}
.level-btn:focus,
.level-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  outline: none;
}

/* Bubble-like back/return button */
.bubble-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 2.5rem;
  border: 2.5px solid #23405c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  letter-spacing: 0.5px;
  margin: 1.5rem 0 1rem 0;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, color 0.18s, box-shadow 0.18s;
}
.bubble-btn:focus,
.bubble-btn:hover {
  background: var(--primary-light);
  color: #fff;
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 4px 18px rgba(0,100,180,0.09);
}

/* In-game picture display area */
.image-container {
  margin: 1.5rem auto 1.5rem auto;
  max-width: 260px;
  padding: 0.75rem;
  background: #fff;
  border-radius: 1rem;
  border: 2px solid #e1e1e1;
  position: relative;
  min-height: 150px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}
.image-container img {
  width: 100%;
  height: auto;
  display: block;
}
#feedback-icon {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2.3rem;
  display: none;
  pointer-events: none;
  z-index: 10;
}
.image-container.correct #feedback-icon {
  display: block;
  color: #22bb33;
  content: "✓";
}
.image-container.incorrect #feedback-icon {
  display: block;
  color: #ff4444;
  content: "✕";
}

/* Bigger, friendlier word choice buttons */
#options-container {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.option-btn {
  min-width: 120px;
  padding: 1.3rem 2.2rem;
  font-size: 2rem;
  background: #e1f4ff;
  border: 3px solid var(--primary);
  border-radius: 1.2rem;
  color: var(--primary);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, border 0.2s, color 0.2s;
  margin: 0.4rem;
  letter-spacing: 1px;
}
.option-btn:hover,
.option-btn:active,
.option-btn:focus {
  background: var(--primary-light);
  color: #fff;
  border-color: var(--primary-light);
}

/* Drag-over highlight */
.drop-target.drag-over {
  border: 2.5px dashed #22bb33 !important;
  background: #f7fdf7;
}

/* Result screen */
#result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}
#result-message {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #22bb33;
  font-family: 'KGPrimaryPenmanship', 'Nunito', sans-serif;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .logo-header {
    margin-top: 1.1rem;
  }
  #level-selection {
    margin-top: 1.1rem;
  }
  .level-btn {
    min-width: 90vw;
    font-size: 1.1rem;
    padding: 1rem 0.5rem;
  }
  .levels {
    gap: 1rem;
  }
  .image-container {
    max-width: 95vw;
    min-height: 120px;
  }
  #options-container {
    flex-direction: column;
    gap: 1rem;
  }
  .option-btn {
    font-size: 1.3rem;
    padding: 1rem;
    min-width: 0;
    width: 100%;
    margin: 0.3rem 0;
  }
  .bubble-btn {
    width: 100%;
    font-size: 1.03rem;
    padding: 0.7rem 1rem;
    margin-top: 1.2rem;
  }
}
