body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.star {
    color: gold;
    font-size: 1.5rem;
    margin-right: 6px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: #212121;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative; /* Yıldız butonunu konteynıra göre konumlandırabilmek için */
}

h1 {
    text-align: center;
    color: #eeeeee;
}

.question {
    margin-top: 20px 0;
    font-size: 1.5em;
    color: #eeeeee;
    padding-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    color: #eeeeee;
}

label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 50%;
    background: white;
}

label input[type="radio"]:checked + span {
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    padding: 4px 8px;
    border-radius: 5px;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + label:before {
    background: #007bff;
    border-color: #007bff;
}

input[type="radio"]:checked + label {
    color: #007bff;
}

/* Yanlış cevap verildiğinde doğru şıkkı yeşil yap */
label.correct {
    color: #28a745;
}

/* Yanlış cevap verildiğinde yanlış şıkkı kırmızı yap */
label.incorrect {
    color: #dc3545;
}

#submit {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#submit:hover {
    background-color: #0056b3;
}

#result {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center;
    color: #28a745;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #fff;
}

.popup-box {
    background: #121212;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 20px #000;
}

.popup-options button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    background-color: #212121;
    transition: background 0.3s;
    color: #fff;
}

.popup-options button:hover {
    background-color: #121212;
    color: #fff;
}

.feedback {
    margin-top: 15px;
    font-weight: bold;
    color: red;
}

#scoreBoard {
    position: absolute;
    top: 60px;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    line-height: 1.5;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#scoreBoard .stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

/* Seçilen doğru şık */
label.correct input[type="radio"]:checked + span {
    background-color: #198754; /* yeşil */
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
}

/* Seçilen yanlış şık */
label.incorrect input[type="radio"]:checked + span {
    background-color: #dc3545; /* kırmızı */
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
}

/* Doğru şık (seçilmese bile gösterilecekse) */
label.correct input[type="radio"] + span {
    background-color: #198754;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
}

#result {
    display: none !important;
}

#starFilter {
    all: unset; /* Tüm varsayılan button stillerini sıfırla */
    width: 40px;
    height: 40px;
    background-color: #2b2b2b;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Tooltip için */
    margin: 15px auto 0 auto; /* Ortala ve biraz boşluk bırak */
    transition: background-color 0.3s ease;
}

#starFilter:hover {
    background-color: #444;
}

#starFilter.active {
    background-color: #007bff;
    color: #fff;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}