#gq-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#gq-modal div {
  background: #111;
  padding: 1em;
  border-radius: 8px;
  text-align: center;
  border: 3px solid #ffd700;
  box-shadow: 0 0 24px #ffd70055;
  position: relative;
}
#gq-close-modal {
  background: none;
  border: none;
  color: #ffd700;
  font-weight: bold;
  font-size: 2em;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 16px;
  z-index: 10001;
}
#gq-modal button,
#gq-modal input {
  margin: 0.5em;
}
#gq-modal input {
  width: 80%;
  padding: 0.5em;
}
#gq-modal button {
  cursor: pointer;
}

#gq-quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

#gq-progress-container {
  margin-bottom: 30px;
  background: #0f0f0b;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1a1a15;
}

#gq-progress-bar {
  height: 20px;
  background: #ffd700;
  width: 0;
  transition: width 0.3s ease;
}

#gq-progress-text {
  text-align: center;
  margin-top: 5px;
  font-weight: bold;
  color: #fff;
}

.gq-question {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
  margin-bottom: 30px;
  padding: 20px;
  background: #0f0f0b;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
  border-bottom: 1px solid #1a1a15;
}

.gq-question.current {
  border-left: 4px solid #ffd700;
}

.gq-question-number {
  font-size: 0.9em;
  opacity: 0.7;
  margin-bottom: 10px;
}

.gq-question:last-child {
  border-bottom: none;
}

.gq-question p {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #fff;
}

.gq-answers {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.gq-btn {
  padding: 10px 20px;
  border: 2px solid #ffd700;
  background: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.gq-btn:hover {
  background: #ffd700;
  color: #0f0f0b;
}

.gq-btn.selected {
  background: #ffd700;
  color: #0f0f0b;
}

#gq-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.gq-nav-btn {
  padding: 10px 20px;
  background: #ffd700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.gq-result {
  text-align: center;
  padding: 40px;
  background: #0f0f0b;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#gq-retake {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1.1em;
  background: #ffd700;
  color: #0f0f0b;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#gq-retake:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#gq-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffd700;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

#gq-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gq-share-buttons {
  margin: 20px 0;
}

.gq-share-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #ffd700;
  color: #0f0f0b;
  transition: all 0.3s ease;
}

.gq-share-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state */
.gq-loading {
  text-align: center;
  padding: 40px;
  color: #fff;
}

.gq-loading:after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #ffd700;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
