.kuis-container{
    max-width:900px;
    margin:auto;
    padding:40px 20px;
    font-family:Arial, sans-serif;
}

.title{
    text-align:center;
    margin-bottom:30px;
}

.title h1{
    font-size:40px;
    margin-bottom:10px;
}

.title p{
    color:#666;
}

.start-screen{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.start-content{
    background:white;
    padding:50px;
    border-radius:20px;
    text-align:center;
    width:400px;
    animation:popup 0.4s ease;
}

.intro-icon{
    font-size:70px;
    margin-bottom:20px;
}

.start-content h1{
    margin-bottom:15px;
}

.start-content p{
    margin-bottom:30px;
    line-height:1.6;
    color:#666;
}

.start-button{
    padding:15px 30px;
    border:none;
    border-radius:10px;
    background:green;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:0.3s;
}

.back-button{
    padding:15px 30px;
    border:none;
    border-radius:10px;
    background:green;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:0.3s;
}

.start-button:hover{
    transform:scale(1.05);
}

.progress-wrapper{
    margin-bottom:30px;
}

.progress-text{
    margin-bottom:10px;
    font-weight:bold;
}

.progress-bar{
    width:100%;
    height:15px;
    background:#ddd;
    border-radius:20px;
    overflow:hidden;
}

.progress-fill{
    width:0%;
    height:100%;
    background:green;
    transition:0.3s;
}

.card-soal{
    display:none;
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.card-soal h3{
    margin-bottom:20px;
    line-height:1.6;
}

.answer-buttons{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
}

.opsi{
    padding:15px;
    border:none;
    border-radius:12px;
    background:#f5f5f5;
    cursor:pointer;
    transition:0.3s;
    font-size:16px;
    text-align:left;
}

.opsi:hover{
    background:#e5e5e5;
}

.next-button{
    margin: 25px auto 0 auto;
    display: block;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: green;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.next-button:hover{
    transform:scale(1.05);
}

.hasil{
    margin-top:15px;
    font-weight:bold;
}

.correct-anim{
    background:#c8ffd2 !important;
    animation:correctAnim 0.4s;
}

.wrong-anim{
    background:#ffd4d4 !important;
    animation:wrongAnim 0.4s;
}

.finish-card{
    background:white;
    padding:50px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.finish-card h2{
    margin-bottom:20px;
}

.finish-card p{
    margin-bottom:15px;
    font-size:18px;
}

@keyframes popup{
    from{
        transform:scale(0.7);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

@keyframes correctAnim{
    0%{transform:scale(1);}
    50%{transform:scale(1.03);}
    100%{transform:scale(1);}
}

@keyframes wrongAnim{
    0%{transform:translateX(0);}
    25%{transform:translateX(-5px);}
    50%{transform:translateX(5px);}
    75%{transform:translateX(-5px);}
    100%{transform:translateX(0);}
}

.nama-input{
    width:100%;
    padding:12px;
    margin:15px 0;
    border:2px solid #ddd;
    border-radius:10px;
    outline:none;
    font-size:16px;
}

.mode-select {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* tombol mode */
.mode-btn {
    padding: 12px 20px;
    border: 2px solid #2ecc71;
    background: white;
    color: #2ecc71;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    min-width: 120px;
}

/* hover */
.mode-btn:hover {
    background: #2ecc71;
    color: white;
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #2ecc71;
    color: white;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    transform: scale(1.05);
}

.start-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.kategori-info{
    width: fit-content;
    margin: 15px auto;
    padding: 10px 22px;
    background: #e8f5e9;
    border: 2px solid #81c784;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #2e7d32;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

#kategoriText{
    color: #1b5e20;
    text-transform: capitalize;
}

.hasil{
    margin-top:15px;
    font-weight:bold;
    line-height:1.6;
}

/* jawaban salah */
.hasil.salah{
    color:#c62828;
    background:#ffebee;
    padding:10px 14px;
    border-radius:10px;
    border-left:5px solid #e53935;
    animation: shakeFade 0.4s ease;
}

/* teks jawaban benar */
.hasil small{
    display:block;
    margin-top:6px;
    color:#2e7d32;
    font-weight:600;
}

.hasil b{
    color:#1b5e20;
    font-size:15px;
}