/* === Base Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Sayfa zemin rengi (tek tip) === */
body {
    background-color: #F5F3FF;
}

/* === App Wrapper (Sayfa Ortalaması ve Arka Plan Uyum) === */
#app-wrapper {
    font-family: 'Arial', sans-serif;
    background-color: #F5F3FF;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

/* === App Container === */
#app {
    background: #F5F3FF;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

/* === Header === */
header {
    margin-bottom: 20px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    color: #1F2937;
}

/* === Main Layout === */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Question text */
#question-container {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 15px;
    text-align: center;
}

/* === Answer Options === */
#options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.option-button {
    padding: 10px;
    background-color: #EDE9FE;
    border: 1px solid #C4B5FD;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 1rem;
    color: #1F2937;
}

.option-button:hover:not(:disabled) {
    background-color: #DDD6FE;
    transform: scale(1.01);
}

.option-button:disabled {
    background-color: #E5E7EB;
    cursor: not-allowed;
}

.correct-option {
    background-color: #D1FAE5 !important;
    color: #065F46;
}

.wrong-option {
    background-color: #FECACA !important;
    color: #7F1D1D;
}

/* === Feedback === */
#feedback-container {
    min-height: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #374151;
}

/* === Next Button === */
#next-button {
    padding: 10px 20px;
    background-color: #7C3AED;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    align-self: center;
    display: block;
    transition: background-color 0.2s;
}

#next-button:hover {
    background-color: #6D28D9;
}

/* === Score Container === */
#score-container {
    font-size: 1rem;
    font-weight: bold;
    color: #4B5563;
    text-align: center;
    margin-top: 20px;
}

/* === Accordion === */
#accordion {
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === jQuery UI Progressbar Styling === */
#progressbar-container {
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
}

#progressbar {
    height: 20px;
    width: 100%;
    background-color: #EDE9FE;
    border: 1px solid #C4B5FD;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.ui-progressbar {
    height: 100%;
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.ui-progressbar-value {
    background-color: #7C3AED !important;
    height: 100%;
    transition: width 0.3s ease;
    display: block;
    min-width: 0;
}

/* === Percentage Label Inside Progressbar === */
#progress-label-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #1F2937;
    pointer-events: none;
    z-index: 2;
}

/* === jQuery Confirm Dialog Overlay Styling === */
.jconfirm.jconfirm-modern .jconfirm-bg {
    background-color: rgba(0, 0, 0, 0.2);
}

/* === Game Card === */
#game-app {
    background: #F5F3FF;
    width: 100%;
    max-width: 650px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

#game-app > h1 {
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 25px;
    color: #1F2937;
}

#game-app section,
#game-app #feedback-container,
#game-app #score-container {
    margin-top: 15px;
}

/* ───────── Question + Options Box ───────── */
#question-box.question-card {
    background: #FFFFFF;
    border: 1px solid #DDD6FE;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 323px rgba(124, 58, 237, 0.05);
    text-align: center;
}

#question-box .option-button {
    width: 100%;
    margin-top: 10px;
}
