body {
  min-height: 100dvh;
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: white;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

.title {
  margin-bottom: 10px;
  font-size: 32px;
}

.streak {
  font-size: 18px;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* Question (no grayscale) */
#question .type-img {
  filter: none !important;
  opacity: 1 !important;
  cursor: default !important;
}

.question-types{
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

/* Card */
.card {
  background: #1e293b;
  padding: 15px;
  font-size: 18px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Grid */
#types {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  justify-items: center;
  margin-bottom: 20px;
}

/* Hover */
.type-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Types */
.type-img {
  width: 70px;
  cursor: pointer;

  opacity: 0.75;
  filter: grayscale(100%);

  transition: opacity 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

/* Selected */
.type-img.selected {
  outline: 3px solid #e0bd28;
  border-radius: 50%;
  filter: grayscale(0%);
  opacity: 1;
}

/* Reveal */
.type-img.reveal {
  opacity: 0.3;
  filter: grayscale(100%);
}

/* Correct */
.type-img.correct {
  outline: 3px solid #439937;
  border-radius: 50%;
  box-shadow: 0 0 12px #439937;
  filter: grayscale(0%);
  opacity: 1;
}

/* Button */
.btn {
  background: #309ae2;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover {
  background: #2577af;
}

/* Feedback */
#feedback {
  font-size: 20px;
  margin: 10px;
  min-height: 30px;
}

/* Popup Result */
#popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
}

#popup-content {
  display: flex;
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

#resultText{
  display: inline-flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.final-label {
  font-size: 18px;
  margin-block-start: 0;
  margin-block-end: 0;
}

.final-score {
  font-size: 40px;
  font-weight: bold;
  color: #439937;
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

.footer a{
    color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
  #types {
    grid-template-columns: repeat(3, 1fr);
  }
  .type-img:hover{
    filter: grayscale(100%);
    opacity: 0.75;
  }
  .type-img.selected:hover {
    filter: grayscale(0);
    opacity: 1;
  }
  .btn:hover {
    background: #309ae2;
  }
}