
.show-popup {
    font-size: 16px;
    color: #00a19b;
    text-decoration: underline;
    display: block;
}

.active-body {
    overflow: hidden;
}

.overlay-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1000;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.7);
}

.popup {
    display: block;
    background: #fff;
    position: absolute;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    max-width: 800px;
    top: 50%;
    left: 50%;
    width: 80%;
    max-height: 100vh;
    padding: 20px 40px;
    height: auto;
    word-break: break-all;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    cursor: default;
    z-index: 10001;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

.popup .scrollAreaWrapper {
    max-height: 70vh;
    background-color: transparent;
    padding: 20px;
    padding-left: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
    margin: 20px 0px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #acacac #f0f0f0;
}

.popup .scrollAreaWrapper::-webkit-scrollbar {
    width: 6px;
}

.popup .scrollAreaWrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.popup .scrollAreaWrapper::-webkit-scrollbar-thumb {
    background: #acacac;
    border-radius: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    cursor: pointer;
    right: 10px;
    font-size: 28px;
    color: #666;
}

.close-btn:hover {
    color: #000;
}

/* 主容器樣式 */
body {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.container-quiz {
    /* background: white; */
    /* border-radius: 15px; */
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.2); */
    padding: 40px;
    width: 95%;
    opacity: 0;
}
/* 顯示時的狀態 */
.container-quiz.show {
    display: block ;
    opacity: 1;
    transform: translateY(0);
}
.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #00a19b;
    padding-bottom: 20px;
}

.quiz-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.quiz-header p {
    color: #666;
    font-size: 14px;
}

.progress-bar-custom {
    height: 8px;
    background: #ffffff;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
    width: 50%;
    text-align: center;
    margin: 0 auto;

}

.progress-bar-custom .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a19b, #667eea);
    transition: width 0.3s ease;
}

.question-container {
    margin-bottom: 30px;
}

.question-num {
    color: #00a19b;
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    color: #333;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 20px 0;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-item {
    position: relative;
    cursor: pointer;
}

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label {
    display: block;
    padding: 15px;
    border-radius: 80px;
    border: 3px solid #ADE0DF;
    background: #FFF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #F25290;
    text-align: center;
    font-weight: 700;
    line-height: normal;
}
@media (max-width: 430px) {
.option-label{
    font-size: 1rem;
}
}
.option-item input[type="radio"]:checked + .option-label {
    background: #e0f7f6;
    border-color: #00a19b;
    font-weight: 600;
    color: #00a19b;
}

.option-label:hover {
    border-color: #00a19b;
    background: #f0f5f5;
}

.btn-group-quiz {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: space-between;
}

.btn-quiz {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #e9ecef;
    color: #333;
}

.btn-prev:hover {
    background: #dee2e6;
}

.btn-next {
    background: #00a19b;
    color: white;
}

.btn-next:hover {
    background: #03c4b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,161,155,0.3);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result styles */
.result-content {
    text-align: center;
}

.result-title {
    color: #00a19b;
    font-size: 24px;
    font-weight: bold;
}

.result-type {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #00a19b;
    padding: 2px 0px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: bold;
    margin: 0.6rem 0;
}

.result-description {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    margin: 4px 0 0 0 ;
    text-align: center;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.stat-item {
    background: #ffffff;
    padding: 8px;
    border-radius: 30px;
     box-shadow:1px 3px 6px 1px rgb(0 0 0 / 6%);
}

.stat-label {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    color: #00a19b;
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container-quiz {
        padding: 20px;
    }

    .quiz-header h1 {
        font-size: 24px;
    }

    .question-text {
        font-size: 18px;
    }

    .result-type {
        margin: 0;
        font-size: 24px;
        img{
            max-width: 40%;
            height: 100%;
        }
    }

    .result-stats {
        grid-template-columns:1fr 1fr;
    }
}

.personality-icon {
    width:300px;
    height:300px;
    margin-right: 15px;
    object-fit: contain;
    border-radius: 10px;
}

.result-type {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}
#restartBtn{
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    &:hover{
color: #fff;
    }
}