body {
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    box-sizing: border-box;
}

main {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 95%;
    max-width: 550px;
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-box {
    background-color: #eaf6ff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.header-box h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #007bff;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.header-box p.intro {
    color: #444;
    font-size: 0.95em;
    margin-bottom: 0;
}

/* Akordiyon Stilleri */
.question-accordion {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px; /* Her akordiyon arasında boşluk */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden; /* İçerik taşmasını engellemek için */
    transition: all 0.2s ease-in-out;
}

.question-accordion:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.accordion-summary {
    display: block; /* Tam genişlikte olması için */
    padding: 15px 20px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 1em;
    outline: none; /* Odaklandığında çıkan çerçeveyi kaldırır */
    user-select: none; /* Metin seçmeyi engeller */
    position: relative;
    padding-right: 40px; /* Ok ikonu için boşluk */
}

/* Ok ikonu */
.accordion-summary::-webkit-details-marker,
.accordion-summary::marker {
    display: none; /* Varsayılan oku kaldır */
}

.accordion-summary::after {
    content: '+'; /* Kendi ok ikonumuzu ekliyoruz */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #007bff;
    transition: transform 0.2s ease;
}

.question-accordion[open] > .accordion-summary::after {
    content: '-'; /* Açıkken eksi işareti */
    transform: translateY(-50%) rotate(0deg); /* Animasyon için */
}

.accordion-content {
    padding: 15px 20px;
    padding-top: 5px; /* Seçenekler ile başlık arasında daha az boşluk */
    text-align: left; /* İçerideki metinler sola hizalı olsun */
}

.accordion-content label {
    display: flex;
    align-items: flex-start; /* Metinleri en üste hizala */
    margin-bottom: 8px;
    cursor: pointer;
    color: #444;
    font-size: 0.95em;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.accordion-content label:hover {
    color: #007bff;
}

.accordion-content input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #999;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    outline: none;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px; /* Radyo butonunu metnin ilk satırının tepesine hizalar */
}

.accordion-content input[type="radio"]:checked {
    border-color: #007bff;
}

.accordion-content input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

button#submitQuiz {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 30px;
    letter-spacing: 0.5px;
}

button#submitQuiz:hover {
    background-color: #007bff;
    transform: translateY(-2px);
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background-color: #eaf6ff;
    border: 2px solid #007bff;
    border-radius: 8px;
    text-align: center;
    font-size: 1.05em;
    color: #1a1a1a;
    font-weight: 600;
    display: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

footer {
    text-align: center;
    padding: 15px;
    color: #777;
    font-size: 0.85em;
    width: 100%;
    max-width: 550px;
    margin-top: 15px;
}

footer .footer-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer .footer-text a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Duyarlı Tasarım */
@media (max-width: 600px) {
    main {
        padding: 20px;
        width: 98%;
        margin: 15px 0;
    }

    .header-box {
        padding: 15px;
        margin-bottom: 25px;
    }

    .header-box h1 {
        font-size: 1.8em;
    }

    .header-box p.intro {
        font-size: 0.85em;
    }

    .question-accordion {
        margin-bottom: 10px;
    }

    .accordion-summary {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .accordion-summary::after {
        right: 15px;
    }

    .accordion-content {
        padding: 12px 15px;
        padding-top: 5px;
    }

    .accordion-content label {
        font-size: 0.9em;
    }

    button#submitQuiz {
        font-size: 1em;
        padding: 10px;
    }

    .result-box {
        font-size: 0.95em;
        padding: 15px;
    }

    footer {
        font-size: 0.75em;
        padding: 10px;
    }
}