/* Cert.css | Style for the certificate part */

instructions {
  display: block;
  margin-top: 20px;
  font-size: 1.2rem;
}

.quiz-section {
  margin-bottom: 30px;
}

.quiz-card {
  margin: 30px 80px;
  padding: 25px;
  border-radius: 10px;
  background: var(--box);
  border: var(--border);
}

.quiz-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-container summary {
  list-style: none;
  padding: 10px 0;
  cursor: pointer;
}

.quiz-container summary::after {
  content: '▼';
  float: right;
  font-size: 14px;
  color: var(--secondary);
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.quiz-container summary::-webkit-details-marker {
  display: none;
}


.quiz-container[open] summary::after {
  transform: rotate(180deg);
}

.quiz-container p {
  line-height: 31px;
  font-size: 17px;
}

.quiz-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: var(--border);
}


.quiz-container {
  width: 100%;
  position: relative;
  overflow: visible;
}



.quiz-container details {
  width: 100%;
  position: relative;
  max-width: 100;
}


.question-group {
  margin-bottom: 25px;
}



.question-text {
  color: #e6e6e6;
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 1.4;

}



.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;

}



.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;

}



.radio-label:hover {
  background-color: rgba(255, 255, 255, 0.05);

}



.radio-label.correct {
  background-color: rgba(34, 197, 94, 0.2);
}



.radio-label.incorrect {
  background-color: rgba(239, 68, 68, 0.2);
}



.radio-input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #4a5568;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;

}



.radio-input:checked {

  border-color: var(--secondary);

}



.radio-input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--secondary);
  border-radius: 50%;
}



.radio-text {
  color: #b3b3b3;
  font-size: 16px;
}



.submit-button {
  background-color: var(--secondary);
  color: #1a1a1a;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  border: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 20px;
}



.submit-button:hover {
  background-color: color-mix(in srgb, var(--secondary) 70%, black 30%);
}



.certificate-section {
  margin-top: clamp(20px, 4vw, 30px);
  padding: clamp(15px, 3vw, 25px);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}



.certificate-section:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



.certificate-section p {
  color: #e6e6e6;
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: clamp(12px, 2vw, 15px);
  line-height: 1.5;
}



.certificate-section input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(8px, 2vw, 12px);
  margin-bottom: clamp(12px, 2vw, 15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  color: #e6e6e6;
  font-size: clamp(14px, 1.8vw, 16px);
  transition: all 0.2s ease;
}

.certificate-section button {
  background-color: var(--secondary);
  color: #1a1a1a;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  border: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 20px;
}

.certificate-section button:hover {
  background-color: color-mix(in srgb, var(--secondary) 70%, black 30%);
}

.achievement-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #4a5568;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.achievement-checkbox:hover {
  border-color: var(--secondary);
}

.achievement-checkbox:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.achievement-checkbox:checked::after {
  content: "✔";
  color: #1a1a1a;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-weight: bold;
}

.modt {
  margin-top: 20px;
  padding: 15px 20px;
  background: var(--box);
  border-radius: 8px;
  border: var(--border);
  transition: all 0.3s ease;
}

.modt:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modt p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}