
#duty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 700px;
}
#duty-bg {
    height: 700px;
    text-align: center;
}

#duty-bg .path-box {
    position: absolute;
    right: 68%;
    top: 387px;
    width: 610px;
    height: 456px;
}
#duty-bg .path-box > .path {
    width: 100%;
    height: 100%;
}
#duty-bg .path-box > .ball {
    display: block;
    position: absolute;
    right: -9px;
    bottom: -7px;
    width: 20px;
    height: 20px;
    background-color: #159cd4;
    border-radius: 100%;
    transform-origin: center;
    transform: rotate(30deg);
    animation: duty-ball 4s;
    animation-play-state: paused;
    transition-timing-function: cubic-bezier(0, 0, 0.1, 1);
}
#duty-bg .path-box > .ball::after {
    display: block;
    position: absolute;
    right: calc(50% - 55px);
    bottom: calc(50% - 55px);
    width: 110px;
    height: 110px;
    opacity: 0;
    content: "";
    background-image: url("../images/ball-glow.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: duty-ball-glow 4s linear;
    animation-play-state: paused;
}
#duty-bg.triggered .path-box > .ball {
    animation-play-state: running;
}
#duty-bg.triggered .path-box > .ball::after {
    animation-play-state: running;
}

@keyframes duty-ball {
    0% {
        opacity: 0;
        right: 490px;
        bottom: 289px;
    }
    5% {
        opacity: 1;
        right: 490px;
        bottom: 289px;
    }
    100% {
        right: -9px;
        bottom: -7px;
    }
}
@keyframes duty-ball-glow {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    35% {
        opacity: 0.2;
    }
    60% {
        opacity: 0.5;
    }
    70% {
        opacity: 1;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

#duty .duty-group {
    display: block;
    position: relative;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow-y: visible;
    overflow-x: auto;
    box-sizing: border-box;
    padding: 0 20px;
    margin-top: 40px;
    -webkit-overflow-scrolling: touch;
}
#duty .duty-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    vertical-align: top;
    width: 360px;
    white-space: normal;
}
#duty .duty-card + .duty-card {
    margin-left: 15px;
}
#duty .duty-card > img {
    display: block;
    width: 100%;
    margin-bottom: 45px;
}
#duty .duty-card > .content {
    display: block;
}
#duty .duty-card > .content .title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}
#duty .duty-card > .content .title > .check-icon {
    display: inline-block;
    position: relative;
    width: 35px;
    height: 35px;
    border: 1px solid #fff;
    border-radius: 13px;
    margin-right: 15px;
}
#duty .duty-card > .content .title > .title-text {
    display: inline-block;
    font-size: 24px;
}
#duty .duty-card > .content > .desc {
    position: relative;
    color: #fff;
    font-size: 16px;
    line-height: 28px;
    text-align: justify;
    box-sizing: border-box;
    padding: 0 25px;
}

#duty .duty-card > .content .title > .check-icon::before {
    display: block;
    position: absolute;
    left: 9px;
    top: 12px;
    width: 15px;
    height: 6px;
    content: "";
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform-origin: center;
    transform: rotate(-45deg);
}

#duty .duty-card.duty-0 .check-icon {
    background-color: #8c42c6;
}
#duty .duty-card.duty-0 .title-text {
    color: #c597ff;
}

#duty .duty-card.duty-1 .check-icon {
    background-color: #129db8;
}
#duty .duty-card.duty-1 .title-text {
    color: #56d9e8;
}

#duty .duty-card.duty-2 .check-icon {
    background-color: #eb9056;
}
#duty .duty-card.duty-2 .title-text {
    color: #f9ae78;
}

.md #duty .duty-card {
    width: 300px;
}

.sm #duty {
    height: 1250px;
}
.sm #duty-bg {
    height: 1250px;
}

.sm #duty-bg .path-box {
    position: absolute;
    right: 68%;
    top: auto;
    bottom: -30px;
}

.sm #duty .duty-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    white-space: normal;
    overflow-y: unset;
    overflow-x: unset;
    box-sizing: border-box;
    padding: 0 40px;
    margin-top: 20px;
}
.sm #duty .duty-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    margin: 0;
}
.sm #duty .duty-card + .duty-card {
    margin-top: 30px;
}
.sm #duty .duty-card > img {
    display: block;
    width: 80%;
    max-width: 350px;
    margin-bottom: 20px;
}
.sm #duty .duty-card > .content {
    display: block;
}
.sm #duty .duty-card > .content .title {
    margin-bottom: 15px;
}
.sm #duty .duty-card > .content .title > .check-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    margin-right: 10px;
}
.sm #duty .duty-card > .content .title > .title-text {
    font-size: 20px;
}
.sm #duty .duty-card > .content > .desc {
    font-size: 15px;
    line-height: 28px;
    white-space: normal;
    padding: 0 15px;
}

.sm #duty .duty-card > .content .title > .check-icon::before {
    left: 8px;
    top: 11px;
}