/* test.css */

.soru-metin {
    /* Kutu Modeli ve Arka Plan */
    background-color: #f8f9fa; /* Hafif kirli beyaz arka plan */
    border: 1px solid #dee2e6; /* İnce, yumuşak bir çerçeve */
    border-radius: 8px; /* Köşeleri yumuşat */
    padding: 24px; /* Geniş iç boşluk */
    margin-bottom: 24px; /* Altındaki seçenek butonlarıyla arayı aç */
    box-shadow: 0 1px 3px rgba(0,0,0,0.03); /* Çok hafif bir gölge */

    /* Tipografi */
    font-size: 1.15rem; /* Okunaklı font boyutu (1rem = 16px ise bu ~18px) */
    line-height: 1.7; /* Geniş satır aralığı */
    color: #212529; /* Okunaklı koyu renk */
    overflow-wrap: break-word; /* Uzun kelimeler varsa satırı kır */
}

/* Soru metni içindeki paragraflar */
.soru-metin p {
    margin-top: 0;
    margin-bottom: 1.2em; /* Paragraflar arası boşluk */
}

/* Soru metnindeki son paragrafın alt boşluğunu kaldır */
.soru-metin p:last-child {
    margin-bottom: 0;
}

/* Soru metni içinde olabilecek Kalın metinler */
.soru-metin strong,
.soru-metin b {
    color: #000;
    font-weight: 600;
}

.yazi-listesi strong {
  display: inline-block;
  margin-top: 6px;
  font-size: 22px;
  color: #1e3c72;
  font-weight: 600;
}

.quiz-header {
    position: relative;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: #fff;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.quiz-header .glow {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    z-index: 0;
    filter: blur(25px);
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quiz-title {
    font-size: 22px;
    font-weight: 660;
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    z-index: 1;
    position: relative;
}

.quiz-progress {
    display: inline-block;
    min-width: 160px;
    margin-top: 4px;
    height: 38px;
    line-height: 38px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(175deg, #000, #333);
    padding: 0 24px;
    border-radius: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    text-align: center;
    vertical-align: middle;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.soru img {
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    margin-top: 8px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    padding-bottom: 10px;
}

.options-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: nowrap;
  overflow-x: hidden; /* Kaydırma istemiyoruz */
  min-height: 60px;
}


.option-button {
  flex: 1 1 0;
  width: 100%;
  max-width: 100%;
  height: 50px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}


.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #00aaff);
}

.option-button.selected-answer {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
    color: #212529;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
    transform: scale(1.05);
}

.question-numbers {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.question-number {
    width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.question-number:hover {
    transform: scale(1.1);
    background-color: #007bff;
    color: white;
}

.question-number.active {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(142, 148, 251, 0.3);
}

.question-number.answered {
    background-color: #28a745;
    color: white;
}

.question-number.empty {
    background-color: #ccc;
    color: black;
}

.question-legend {
    margin-top: 20px;
    padding: 12px;
    background: #fdfdfd;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    gap: 20px;
}

.question-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.question-legend ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.legend-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: inline-block;
}

.legend-circle.answered { background-color: #28a745; }
.legend-circle.active { background: linear-gradient(135deg, #4e54c8, #8f94fb); color: #fff; }
.legend-circle.empty { background-color: #ccc; }

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.quiz-btn-next,
.quiz-btn-finish {
    font-size: 17px;
    font-weight: bold;
    border-radius: 30px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.quiz-btn-next {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
}

.quiz-btn-finish {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.quiz-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 176, 155, 0.4);
}

.quiz-btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 75, 43, 0.4);
}



.result-header {
    position: relative;
    background: linear-gradient(135deg, #3a0ca3, #7209b7, #f72585);
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.result-header h1 {
    font-size: 26px;
    font-weight: bold;
    z-index: 2;
    position: relative;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* Kutlama efekti */
.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.jsdelivr.net/gh/ozh/github-colors@master/colors/confetti.svg');
    background-repeat: repeat;
    opacity: 0.15;
    animation: confettiAnim 20s linear infinite;
    z-index: 1;
}

@keyframes confettiAnim {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* Skor kutuları */

.result-stats {
    margin-left: 3px;
    margin-right: 3px;
}

.result-stats .alert {
    font-size: 24px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.result-stats .alert:hover {
    transform: scale(1.05);
}

.result-stats .col-md-3 {
    padding-left: 3px;
    padding-right: 3px;
}

/* Sonuç mesajı */
.alert-success, .alert-warning, .alert-danger {
    font-size: 18px;
    font-weight: bold;
}

/* Butonlar */
.text-center a.btn {
    font-size: 18px;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.text-center a.btn-primary {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    color: #fff;
}

.text-center a.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.text-center a.btn-primary:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

.text-center a.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.question-frame {
    border: none;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff, #f7f9fc);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.question-frame:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.question-title {
    font-size: 20px;
    font-weight: bold;
    color: #4e54c8;
    background: #eef1ff;
    padding: 12px;
    border-left: 6px solid #4e54c8;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 5px rgba(78,84,200,0.1);
}

.answer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.answer-box,
.correct-answer-box {
    flex: 1;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    background: #f1f1f1;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

/* Doğru cevap */
.correct-answer {
    background: linear-gradient(135deg, #a8ff78, #78ffd6);
    color: #1c4532;
}

/* Yanlış cevap */
.wrong-answer {
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    color: #581c1c;
}

/* Boş cevap (yani seçilmemişse class gelmiyor) */
.answer-box:empty::after {
    content: "Boş";
    color: #aaa;
}

/* Soru görseli */
.question-frame img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Başlık (sayfa başı) */
.category-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(135deg, #3a0ca3, #f72585);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Butonlar */
.result-buttons {
    text-align: center;
    margin-top: 40px;
}

.result-buttons a {
    display: inline-block;
    padding: 14px 28px;
    margin: 10px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.result-buttons a:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}