:root {
    --viewport-width: 1080px;
    --viewport-height: 1920px;
    --bs-body-font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    letter-spacing: -3%;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: auto;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    background: #1a1a1a;
}

h1, h2, h3, h4, h5, h6, p, span {
    margin-top: 0;
    margin-bottom: 0;
}

.main-header {
    height: 100px;
    border-bottom: 1px solid #D8DADF;
    padding-left: 30px;
    background-color: #fff;
}

.header-date {
    color: #9A9A9A;
}
.header-time {
    padding-right: 30px;
}

.btn-home {
    border-left: 1px solid #D8DADF;
    height: 100%;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-viewport {
    width: var(--viewport-width);
    height: var(--viewport-height);
    min-width: var(--viewport-width);
    min-height: var(--viewport-height);
    max-width: var(--viewport-width);
    max-height: var(--viewport-height);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #fff;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
}

main {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar {
        display: none;
    }
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.ls-m5 {
    letter-spacing: -5% !important;
}

.fs-30px {
    font-size: 30px;
}
.fs-36px {
    font-size: 36px;
}
.fs-50px {
    font-size: 50px;
}
.fs-60px {
    font-size: 60px;
}
.fs-64px {
    font-size: 64px;
}
.fs-80px {
    font-size: 80px !important;
}
.fs-96px {
    font-size: 96px !important;
}
.fs-128px {
    font-size: 128px;
}

.mt-m30px {
    margin-top: -30px !important;
}
.mt-45px {
    margin-top: 45px !important;
}
.mt-50px {
    margin-top: 50px !important;
}
.mt-70px {
    margin-top: 70px !important;
}
.mt-90px {
    margin-top: 90px !important;
}
.mt-100px {
    margin-top: 100px !important;
}
.mt-130px {
    margin-top: 130px !important;
}
.mt-200px {
    margin-top: 200px !important;
}
.mt-250px {
    margin-top: 250px !important;
}
.mt-300px {
    margin-top: 300px !important;
}
.mb-150px {
    margin-bottom: 150px !important;
}
.ms-50px {
    margin-left: 50px !important;
}

.px-70px {
    padding-left: 70px !important;
    padding-right: 70px !important;
}

.text-blue {
    color: #0D3A88;
}
.text-gray {
    color: #747474;
}
.text-light-gray {
    color: #C4C4C4;
}

.btn-close {
    font-size: 30px;
}

.modal-dialog {
    max-width: 980px !important;
}

.modal-content {
    border-radius: 30px;
}

.modal-body {
    padding: 80px;
    max-height: 1600px;
    overflow-y: scroll;
}

.modal-footer {
    padding: 0;
}


@keyframes marker-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.start-curating-marker {
    display: block;
    margin-left: auto;
    margin-right: auto;
    animation: marker-float 1.6s ease-in-out infinite;
}

.next-curating-marker {
    display: block;
    margin-left: 642px;
    animation: marker-float 1.6s ease-in-out infinite;
}

.moving-marker {
    position: relative;
    z-index: 2;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -64px;
    animation: marker-float 1.6s ease-in-out infinite;
}

.moving-background {
    position: relative;
    z-index: 0;
}

.moving-background-dot {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: -170px;
}

.moving-line {
    position: relative;
    width: 100%;
    height: 20px;
    background-image: url('../../static/images/moving_line.png');
    background-repeat: repeat-x;

    margin-top: -93px;
    z-index: 1;

    animation: moveLeft 1.6s linear infinite; 
}

.gray-moving-line {
    position: relative;
    width: 100%;
    height: 20px;
    background-image: url('../../static/images/moving_line_gray.png');
    background-repeat: repeat-x;

    margin-top: -53px;
    z-index: 1;

    animation: moveLeft 1.6s linear infinite; 
}

@keyframes moveLeft {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -47px 0; 
    }
}


/* survey_stepper.html ------------------------------------------------------------ */
.survey-stepper {
    border-bottom: 1px solid #D8DADF;
}
.survey-stepper-item-container {
    background-color: #0D3A88;
}
.survey-stepper-item-container.selected {
    background-color: #ffffff;
}
.survey-stepper-item-container:last-child {
    flex-grow: 1;
}
.survey-stepper-item {
    display: flex;
    height: 150px;
    filter: drop-shadow(5px 0 5px rgba(0, 0, 0, 0.2));
    clip-path: inset(0 -20px 0 -1px);
}
.survey-stepper-item-container:last-child .survey-stepper-item {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) ;
}
.survey-stepper-item > .survey-stepper-content {
    flex: 1;
    background-color: #0D3A88;
    color: white;
    padding-left: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
.survey-stepper-item:first-child > .survey-stepper-content {
    padding-left: 30px;
}
.survey-stepper-item.selected > .survey-stepper-content {
    background-color: #fff;
}
.survey-stepper-item > .step-arrow {
    flex-shrink: 0;
    width: 60px;
    height: auto; 
    display: block;
}
.survey-stepper-item > .step-arrow > polygon {
    fill: #0D3A88;
}
.survey-stepper-item.selected > .step-arrow > polygon {
    fill: #fff;
}
.survey-stepper-item h2 {
    color: #688CCC;
    font-weight: 800;
    font-family: "Paperlogy", serif;
    font-size: 32px;
}
.survey-stepper-item.selected h2 {
    color: #0D3A88;
}
.survey-stepper-item h5 {
    color: #3968BA;
    font-size: 20px;
    margin-top: 6px;
}
.survey-stepper-item.selected h5 {
    color: #747474;
}
/* /survey_stepper.html ------------------------------------------------------------ */

/* survey.html ------------------------------------------------------------ */
.survey-container {
    padding-bottom: 50px;
}


/* footer */
.btn-survey-prev {
    width: 26%;
    height: 140px;
    background-color: #000;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}
.btn-survey-prev:hover {
    color: #fff;
}
.btn-survey-next {
    width: 74%;
    height: 140px;
    background-color: #0D3A88;
    color: #fff;
    font-size: 32px;
    border: 0;
    border-radius: 0;
    font-weight: 800;
}
.btn-survey-next:hover {
    background-color: #0D3A88;
    color: #fff;
}
.btn-survey-next[disabled] {
    width: 74%;
    background-color: #3D3D3D;
    color: #9D9D9D;
}
.btn-survey-stop {
    height: 140px;
    background-color: #000;
    color: #fff;
    font-size: 32px;
}


/* step 1 */
.survey-options {
    margin-top: 90px;
    padding: 0 50px;
}

button.survey-option {
    border: 1px solid #D8DADF;
    box-shadow: 0px 0px 20px 0px #0000001A;
    border-radius: 20px;
    background-color: #fff;
    width: 478px;
    height: 470px;
}
button.survey-option > .survey-option-desc {
    margin-top: 10px;
    font-size: 24px;
    color: #B5B5B5;
}
button.survey-option > .survey-option-title {
    font-size: 40px;
    color: #000;
    font-weight: 900;
}


#styleModal .tag-container {
    margin-top: 60px;
    gap: 15px;
}
#styleModal .style-tag-item {
    background-color: #F3F3F3;
    color: #0D3A88;
    font-size: 32px;
    font-weight: bold;
    padding: 30px 35px;
    border-radius: 60px;
    white-space: nowrap;
}

#styleModal textarea {
    height: 530px;
    background-color: #F3F3F3;
    border: 1px solid #D8DADF;
    border-radius: 20px;
    padding: 50px;
    font-size: 40px;
    resize: none;
}

#styleModal .btn-footer-close
, #subjectModal .btn-footer-close {
    background-color: #000;
    color: #fff;
    height: 140px;
    width: 26%;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    border-radius: 0 0 0 27px;
}
.selected-style-description {
    white-space: pre-line;
}

#styleModal .btn-select-style
, #subjectModal .btn-select-subject {
    background-color: #0D3A88;
    color: #fff;
    height: 140px;
    width: 74%;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    border-radius: 0 0 27px 0;
}


/* step 2 */
.survey-subjects {
    padding: 0 50px;
    margin-top: 90px;
}
.survey-subject {
    background-color: #F3F3F3;
    border: 1px solid #D8DADF;
    padding: 50px;
    border-radius: 20px;
    color: #000;
    width: 100%;
    margin-bottom: 14px;
}
.survey-subject.selected {
    background-color: #000;
    color: #fff;
}

#subjectModal .subject-list {
    width: 100%;
    margin-top: 90px;
}
#subjectModal .subject-item {
    width: 820px;
    height: 140px;
    border: 1px solid #D8DADF;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    background-color: #fff;
    color: #000;
    margin-top: 24px;
    cursor: pointer;
}
#subjectModal .subject-item h1 {
    font-size: 36px;
    font-weight: 900;
}
#subjectModal .subject-item.selected {
    background-color: #000;
    color: #fff;
}
#subjectModal .subject-item-detail {
    width: 820px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
    gap: 15px;
    margin-top: 15px;
}
#subjectModal .subject-item-detail button {
    background-color: #F3F3F3;
    color: #000;
    border: 1px solid #D8DADF;
    border-radius: 15px;
    padding: 0 40px;
    font-size: 32px;
    height: 100px;
}
#subjectModal .subject-item-detail button.selected {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}


/* step 3 */
.selected-subject-description {
    padding: 0 50px;
}
.recommended-items {
    padding: 0 50px;
    margin-top: 70px;
}
.recommended-item {
    width: 310px;
    margin-bottom: 70px;
    position: relative;
}
.recommended-item:nth-child(3n+2) {
    margin: 0 25px;
}
.recommended-item-image {
    width: 310px;
    height: 310px;
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recommended-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.recommended-item.active .recommended-item-image::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;

    position: absolute;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    background-color: #0D3A88;
    border: 5px solid white;
    border-radius: 15px;
}
.recommended-item h4 {
    width: 100%;
}
.recommended-time {
    display: flex;
    align-items: center;
    height: 130px;
    justify-content: space-between;
    margin: 0 50px;
    border: 1px solid #D8DADF;
    border-radius: 20px;
    overflow: hidden;
}
.recommended-time button {
    width: 222px;
    height: 100%;
    border: 0;
    font-size: 32px;
    font-weight: 800;
}
#btnSubtractTime {
    border-right: 1px solid #D8DADF;
}
#btnAddTime {
    border-left: 1px solid #D8DADF;
}
#btnSubtractTime[disabled], #btnAddTime[disabled] {
    color: #1A396E;
    background-color: #F3F3F3;
}
#btnSubtractTime:not([disabled]), #btnAddTime:not([disabled]) {
    color: #fff;
    background-color: #1A396E;
}


/* step 4 */
.wating-swiper {
    width: 950px;
    height: 570px;
    padding: 0 125px;
    margin-top: 170px;
    transform-style: preserve-3d;
}
.wating-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}
.wating-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    background-color: #000;
    width: 700px;
    height: 570px;
}
.wating-swiper .swiper-slide img {
    display: block;
    width: 700px;
    height: 570px;
    object-fit: contain;
}
.wating-swiper .swiper-button-next, .wating-swiper .swiper-button-prev {
    color: #000;
}


/* step 5 */
.curating-location-container {
    padding: 0 50px;
}
.curating-order-container {
    padding: 50px;
}
.curating-location-info {
    font-family: "Paperlogy", serif;
    right: 50px;
}
.curating-detail-location {
    color: #727272;
}
.curating-detail-location::before {
    content: url('../../static/images/gray_marker.png');
    margin-right: 3px;
}
.curating-order-item {
    margin-top: 15px;
}
.curating-order-item-number {
    width: 36px;
    height: 36px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    font-family: "Paperlogy", serif;
}
.curating-order-item-name {
    font-size: 24px;
    font-weight: 800;
    margin-left: 10px;
}
/* /survey.html ------------------------------------------------------------ */


/* summary_header.html ------------------------------------------------------------ */
.summary-header {
    height: 150px;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #000;
    padding-left: 70px;
}
.summary-page{
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 30%;
}
.summary-title {
    margin-left: 40px;
}
/* /summary_header.html ------------------------------------------------------------ */

/* summary.html ------------------------------------------------------------ */
/* footer */
.summary-footer {
    height: 150px;
    box-shadow: 0px 0px 20px 0px #00000026;
}
.summary-footer .btn
, .summary-end-curating-footer .btn {
    height: 150px;
    border-radius: 0;
}
.summary-audio-footer {
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px 0 0;
    transition: top 0.3s ease;
}
.summary-button-container {
    width: calc(100% - 150px);
    transition: width 0.3s ease;
}
.summary-button-container .move-page {
    width: 50%;
}

.btn-summary-prev {
    background-color: #000;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}
.btn-summary-prev:hover {
    background-color: #000;
    color: #fff;
}
.btn-summary-next {
    background-color: #0D3A88;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}
.btn-summary-next:hover {
    background-color: #0D3A88;
    color: #fff;
}
.btn-summary-end-curating
, .btn-summary-end-curating:hover {
    background-color: #3D3D3D;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}


/* 시작하며 */
.summary-image-list {
    height: 310px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}
.summary-image-item {
    flex-shrink: 0;
    width: 310px;
    height: 310px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.summary-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.summary-subject-description {
    font-size: 40px;
    white-space: pre-line;
    padding: 0 50px;
    margin-top: 80px;
}


/* 기증자 정보 */
.summary-donor-info > .donor-item-container {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #D8DADF;
    padding: 80px 70px;
    
    cursor: pointer;
    transition: all 0.3s ease;
}
.summary-donor-info .donor-item {
    width: 560px;
}
.summary-donor-info .donor-name {
    width: calc(100% - 560px - 22px);
    padding-right: 50px;
    text-align: right;
}
.summary-donor-info .donor-item > h1 {
    font-size: 48px;
    font-weight: 500;
}
.summary-donor-info .donor-name > h1 {
    font-size: 48px;
    font-weight: 600;
}
.summary-donor-info .donor-state {
    padding-top: 10px;
}
.donor-detail-container {
    border-top: 1px solid #D8DADF;
    background-color: #F3F3F3;
    height: 500px;
    overflow-y: scroll;
    padding: 50px;
    font-size: 40px;
    white-space: pre-line;
}


/* 문화유산 설명 */
/* 모달 */
#qrcodeModal .btn-footer-close
, #detailModal .btn-footer-close
, #patternModal .btn-footer-close {
    background-color: #000;
    color: #fff;
    height: 140px;
    width: 100%;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    border-radius: 0 0 27px 27px;
}
.qrcode-container {
    border-radius: 20px;
    border: 1px solid #D8DADF;
    overflow: hidden;
}
.summary-detail-modal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 150px;
    border-top: 1px solid #D8DADF;
}
.summary-detail-modal-content .title {
    width: calc(100% - 540px);
}
.summary-detail-modal-content .desc {
    width: 540px;
}
.summary-pattern-modal-content {
    display: flex;
    align-items: center;
}
.pattern-image-container {
    width: 200px;
    height: 200px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}
.pattern-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.summary-pattern-modal-content {
    display: flex;
    justify-content: space-between;
    
    cursor: pointer;
    transition: all 0.3s ease;
}
.summary-pattern-modal-description {
    margin: 25px 0;
    border-top: 1px solid #D8DADF;
    border-bottom: 1px solid #D8DADF;
    background-color: #F3F3F3;
    font-size: 36px;
    padding: 30px 50px;
    white-space: pre-line;
    height: 500px;
    overflow-y: scroll;
}

#unresponsiveModal .btn-go-home
, #exitGuideModal .btn-go-home
, #cancelModal .btn-footer-close {
    background-color: #000000;
    color: #fff;
    height: 140px;
    width: 50%;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    border-radius: 0 0 0 27px;
}
#unresponsiveModal .btn-footer-close
, #exitGuideModal .btn-footer-close
, #cancelModal .btn-cancel {
    background-color: #0D3A88;
    color: #fff;
    height: 140px;
    width: 50%;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    border-radius: 0 0 27px 0;
}
#exitGuideModal .modal-content {
    overflow: visible;
}
/* /모달 */


.summary-container {
    padding-bottom: 180px;
}

.summary-swiper {
    width: 100%;
    height: 570px;
    margin-top: 170px;
    transform-style: preserve-3d;
}
.summary-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}
.summary-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    background-color: #000;
    width: 100%;
    height: 570px;
}
.summary-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 570px;
    object-fit: contain;
}
.summary-swiper .swiper-button-next, .summary-swiper .swiper-button-prev {
    color: #000;
}
.swiper-custom-pagination {
    color: #BCBCBC;
    font-size: 24px;
    width: auto !important;
}
.swiper-custom-button-prev
, .swiper-custom-button-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-description {
    padding: 0 50px;
    margin-top: 80px;
    font-size: 40px;
    color: #000;
    white-space: pre-line;
}
.summary-detail-container {
    right: 30px;
    bottom: 180px;
}
.summary-detail-container .btn {
    width: 140px;
    height: 140px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid #D8DADF;
    background-color: #fff;
    box-shadow: 0px 0px 20px 0px #00000026;
}
.summary-detail-container .btn:active {
    background-color: #fff;
}
.summary-question-container {
    padding: 50px;
}
.summary-question-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #CDD4E8;
    background-color: #F4F5F8;
    border-radius: 20px;
    height: 140px;
    font-size: 36px;
    font-weight: 600;
    padding: 0 40px;
    margin-bottom: 14px;
}
.selected-question {
    padding-right: 50px;
}
.selected-question > div {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 4px solid #0D3A88;
    color: #0D3A88;
    border-radius: 20px;
    height: 140px;
    font-size: 36px;
    font-weight: 600;
    padding: 0 40px;
    margin-bottom: 14px;
}
.wating-answer {
    padding: 0 50px;
    margin-top: 100px;
}
.wating-answer .title > h2 {
    font-weight: bold;
    font-size: 32px;
    color: #C4C4C4;
}
.wating-answer .desc > h1 {
    font-weight: 800;
    font-size: 60px;
    color: #555;
}
.result-answer {
    padding: 0 50px;
    margin-top: 100px;
}
.result-answer .title > h2 {
    font-weight: bold;
    font-size: 32px;
    color: #0D3A88;
}
.result-answer .desc {
    color: #000;
    white-space: pre-line;
    font-size: 40px;
}

.countdown-time {
    font-size: 300px;
    font-weight: bold;
    color: #0D3A88;
}
.btn-new-curation {
    width: 100%;
    height: 150px;
    background-color: #F3F3F3;
    color: #0D3A88;
    font-size: 36px;
    font-weight: bold;
    border: 0;
    border-radius: 30px;
}

/* /summary.html ------------------------------------------------------------ */

/* green-audio-player.css ------------------------------------------------------------ */
.green-audio-player .controls .controls__slider {
    margin-left: 30px;
    margin-right: 30px;
    border-radius: 20px;
    height: 18px;
}
.green-audio-player .slider {
    background-color: #D8DADF;
}
.green-audio-player .slider .gap-progress {
    background-color: #0D3A88;
}
.green-audio-player .controls span {
    color: #000;
    font-size: 32px;
}
.green-audio-player .controls .controls__slider .controls__progress .progress__pin {
    right: -24px;
    top: -12px;
}
.green-audio-player .slider .gap-progress .pin {
    height: 40px;
    width: 40px;
    background-color: #fff;
    border: 2px solid #D8DADF;
    border-radius: 50%;
}
.green-audio-player .volume {
    display: none;
}
.green-audio-player .holder {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.play-pause-btn svg {
    width: 45px;
    height: 45px;
}
.play-pause-btn path {
    fill: #0D3A88;
}
/* /green-audio-player.css ------------------------------------------------------------ */