/* ========================= */
/* === Completion Overlay === */
/* ========================= */

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

.completion-container {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.1);
}

.certificate-display {
  background: white;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.certificate-display h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.certificate-display p {
  color: #34495e;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0.5rem 0;
  font-weight: 500;
}

.overlay-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

#download-cert, 
#restart-quiz {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#download-cert {
  background: #4361ee;
  color: white;
}

#restart-quiz {
  background: white;
  color: #4361ee;
  border: 2px solid #4361ee;
}

#download-cert:hover {
  background: #3a56d4;
  transform: translateY(-2px);
}

#restart-quiz:hover {
  background: #4361ee;
  color: white;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .completion-container {
    padding: 1.5rem;
  }
  
  .overlay-buttons {
    flex-direction: column;
  }
}
