@charset "utf-8";

html {
    height: -webkit-fill-available;
}

body {
    background-image: url("./Image/background.png");
    background-color: #fff5b5;
    background-repeat: no-repeat;
    background-size: cover;
    color: #333;
}

.container {
    width: -webkit-fill-available;
    /* height: -webkit-fill-available;  */
}

h1 {
    max-width: 500px;
    margin-top: 2em;
    margin-bottom: 1em;
}

.topBar{
    margin: 20px 0;
}

.start {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#start-btn {
    max-width: 100%;
    width: 90vw;
    height: 50vh;
    border: none;
    background: url(Image/start.png) no-repeat center / contain;
    cursor: pointer;
}

#start-btn::before {
    content: none !important;
}

#start-btn:hover {
    filter: brightness(0.9);
    /* 滑過變暗一點 */
}

#start-btn:active {
    transform: scale(0.95);
    /* 按下去縮小一點 */
}

.quiz {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: -webkit-fill-available;
    padding: 3em 20px;
}

#question,
#index {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.step-progress {
    height: 35px;
    padding: 0;
    margin: 40px 0;

    position: relative;
    display: flex;
    justify-content: space-between;
    list-style: none;
    align-items: center;
}

/* 連線獨立控制 */
.step-line {
    flex: 1;
    height: 2px;
    background-color: #B0B0B0;
    transition: background 0.3s;
}

.step-point {
    width: 12px;
    height: 12px;
    background-color: #B0B0B0;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

/* 已完成節點 */
.step-point.completed {
    background: #FF6600;
    color: white;
}

/* 已完成連線 */
.step-line.completed {
    background: #FF6600;
}

/* 當前節點 */
.step-point.current {
    width: 36px;
    height: 36px;
    background: url(./Image/step.png) no-repeat center / contain;
}

#answers {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#answers button{
    width: 100%;
}

#result {
    display: flex;
    position: relative;
    max-width: 500px;

    line-height: 1.6;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

#result-img {
    width: 100%;
    margin-bottom: 24px;
}