header {
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    padding: 0 1.5rem;
    z-index: 8888;
    background: #fff;
}
header a {
    width: 15rem;
}
header a img {
    width: 100%;
}

nav {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 8rem;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 7777;
}
nav a {
    width: 25%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}
nav a img {
    height: 3rem;
    margin-bottom: 1rem;
}
nav a span {
    font-size: 1.4rem;
    font-weight: 600;
    color: #a6a6a6;
}

main {
    padding: 0 1.5rem 10rem;
}





.btn-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.btn-wrap .left {
    width: 48%;
}   
.btn-wrap .left {
    width: 48%;
}

.aButton {
    padding: 1.8rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.fd {
    flex-direction: column;
}
.start {
    justify-content: flex-start;
}
.center {
    justify-content: center;
}
.end {
    justify-content: flex-end;
}

.aButton.one {
    width: 100%;
}
.aButton.two {
    width: calc(100% / 2 - 0.7rem);
}

.sky {
    background-color: #87ceeb;
}
.yellow {
    background-color: #fcbe59;
}
.red {
    background-color: #ff6f61;
}
.purple {
    background-color: #6c456d;
}
.gradient {
    background: linear-gradient(to right, #ffd283, #ff7262);
}

.caption {
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    padding: 0.5rem 1.5rem;
    display: inline-block;
    margin-bottom: 1rem;
    background-color: #87ceeb;
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.title h2 {
    font-size: 2.2rem;
    font-weight: 900;
}
.title h3 {
    font-size: 2rem;
    font-weight: 900;
}
.title p {
    font-size: 2rem;
    font-weight: 800;
}
.title a {
    font-size: 1.4rem;
    font-weight: 500;
    color: #959595;
}

.clearBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.clearBtn img {
    width: 1.5rem;
}








/* calc */
.section.calc .title {
    margin-bottom: 0;
}
.section.calc p {
    font-size: 1.5rem;
    font-weight: 400;
    color: #cbcbcb;
    margin-bottom: 2rem;
    line-height: 1.3;
}
.section.calc #calcBtn {
    margin: 3rem 0;
}
.option-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 0 2rem 0;
}
.option-btn .exchange {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1.5rem;
}
.option-btn .exchange a {
    padding: 0.6rem 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    background-color: #cccccc;
}
.option-btn .exchange a.korea {
    border-radius: 3rem 0 0 3rem;
}
.option-btn .exchange a.usd {
    border-radius: 0 3rem 3rem 0;
}
.inputform .top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 1.5rem 0;
}
.inputform .top span.caption {
    margin: 0;
    margin-right: 1.5rem;
}
.inputform .top #addBtn {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9cd6ee;
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: 0.1rem solid #9cd6ee;
    background-color: #fff;
    margin-left: auto;
}
.inputform.add .top .removeBtn {
    margin-left: auto;
}
.inputform.add .top .removeBtn img {
    width: 1.5rem;
}
.inputform .input-wrap{
    width: 100%;
    padding-bottom: 2rem;
}
.inputform .input-wrap .input-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}
.inputform .input-wrap .input-item span {
    width: 20%;
    font-size: 1.7rem;
    font-weight: 700;
}
.inputform.add .input-wrap .input-item span {
    width: 30%;
}
.inputform.result .input-wrap .input-item span {
    width: 30%;
}
.inputform .input-wrap .input-item .input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 75%;
    height: 5rem;
    font-size: 1.7rem;
    font-weight: 700;
}
.inputform.add .input-wrap .input-item .input {
    width: 65%;
}
.inputform.result.krw .input-wrap .input-item .input {
    width: 65%;
}
.inputform .input-wrap .input-item .input input {
    width: 90%;
    height: 100%;
    border-radius: 1rem;
    border: 0.1rem solid #cccccc;
    background-color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    color: #636363;
    padding: 0 2rem;
}
.section.calc.usd .inputform .input-wrap .input-item .input input {
    width: 80%;
}

.section.result {
    display: none;
    padding: 3rem 1.5rem;
    background-color: #feebcd;
    width: calc(100% + 3rem);
    margin: 0 -1.5rem;
}
.section.result.history {
    display: flex;
}
.section.result.history {
    display: flex;
}
.section.result .inputform .input-wrap .input-item .input input {
    border: 0;
}
.inputform.result .input-wrap .input-item .input {
    width: 100%;
}
.section.result.usd .inputform .input-wrap .input-item .input input {
    width: 80%;
}
.section.result.usd .inputform .input-wrap .input-item .input input.resultSumKRW,
.section.result.usd .inputform .input-wrap .input-item .input input.resultAverageKRW {
    background-color: #fdddaa;
}

.section.result.usd .wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 70%;
}

.section.result .saveModalBtn {
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    background-color: #fcbe59;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}




/* exchange rate */
a.aButton.two.exchange {
    background-color: #4197eb;
    flex-direction: column;
    justify-content: space-between;
    height: 13rem;
}
a.aButton.two.exchange img {
    height: 6rem;
}
.section.exchange {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    width: 100%;    
}
.section.exchange .btn-wrap {
    margin-top: 8rem;
}
.section.exchange p {
    font-size: 1.8rem;
    font-weight: 800;
}
.section.exchange .input {
    margin: 1.5rem 0; 
    font-size: 1.8rem;
    font-weight: 700;
    color: #5b5b5b;
    padding: 0 2rem;
    border-radius: 1rem;
    border: 0.1rem solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;    
}
.section.exchange .input input {
    font-size: 1.8rem;
    font-weight: 500;
    color: #7a7a7a;
    padding: 1.3rem 0;
    width: 80%;
}
.section.exchange button {
    margin-top: 3rem;
}
.section.exchange .change-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
}
.section.exchange .change-wrap button {
    margin: 0;
}
.section.exchange .change-wrap button img {
    width: 4rem;
}



/* sub */
.section.sub {
    
}
.section.sub pre {
    font-size: 1.6rem;
    font-weight: 500;
    color: #6d6d6d;
    line-height: 1.5;
    margin-bottom: 2rem;
}
.section.sub.C pre {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 0.1rem solid #f5f5f5;
}
.section.sub.C pre:first-of-type {
    border: 0;
    padding: 0;
}
.section.sub.C pre span.point1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ff695b;
    line-height: 1.5;
}
.section.sub.C pre span.point2,
.section.sub.D pre span.point2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #6d6d6d;
    line-height: 1.5;
}

.section.sub.D h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    border-radius: 3rem;
    background-color: #87ceeb;
    width: fit-content;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}
.section.sub.D p {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6d6d6d;
    margin-bottom: 3rem;
}
.section.sub.D h4 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #489beb;
    margin-bottom: 1.5rem;
}
.section.sub.D h4 span.point1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ff695b;
    margin-bottom: 1.5rem;
}


/* words */
.open-wrapper {
    margin-bottom: 1.5rem;
}
.open-wrapper h3 {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 0.1rem solid #f3f3f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.3;
}
.open-wrapper h3 img {
    width: 1.8rem;
}
.open-wrapper pre {
    font-size: 1.6rem;
    font-weight: 500;
    color: #595a5a;
    line-height: 1.4;
    margin: 0;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background-color: #fff0ef;
}


/* saveModal */
.blackBg {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 8888;
}
.modal.save {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 3rem);
    max-width: 100%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}
.modal.save .title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.modal.save .title img {
    width: 1.8rem;
}
.modal.save input.stockTitle {
    width: 100%;
    border: 0.1rem solid #f3f3f3;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 700;
}
.modal.save p {
    width: 100%;
    text-align: right;
    padding: 0.5rem 0;
    margin-bottom: 3.5rem;
}
.modal.save p,
.modal.save p span.stockTitleCount {
    font-size: 1.4rem;
    font-weight: 500;
    color: #cbcbcb;
}
.modal.save button.saveBtn {
    padding: 1.5rem 5rem;
    border-radius: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    width: fit-content;
}



/* history */
.scrap-item .scrap span.caption {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
.scrap-item .scrap span.caption img {
    width: 1rem;
    margin-left: 0.5rem;
}
.scrap-item .scrap span.caption.purple {
    background-color: #6c456d;
}
.scrap-item .scrap span.caption.none {
    background-color: #fff;
    color: #fff;
}
.scrap-item {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 0.1rem solid #f3f3f3;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}
.scrap-item .scrap-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.scrap-item .scrap-title p {
    font-size: 2rem;
    font-weight: 800;
}
.scrap-item .scrap-title button img {
    width: 1.3rem;
}
.scrap-item .btn-wrap .scrap {
    width: calc(100% / 2 - 0.5rem);
    height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.scrap-item .btn-wrap .scrap p {
    white-space: nowrap;
}
.scrap-item .btn-wrap .scrap p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.scrap-item .btn-wrap .scrap p span {
    font-size: 1.4rem;
    font-weight: 500;
    color: #5f5f5f;
    display: inline-block;
    margin-left: 0.5rem;
}
.scrap-item .drop {
    position: relative;
}
.scrap-item .drop ul {
    display: none;
    width: 100%;
    border: 0.1rem solid #c0e6f5;
    border-radius: 1rem;
    background-color: #fff;
    position: absolute;
    top: calc(100% - 1rem);
}
.scrap-item .drop ul li {
    font-size: 1.6rem;
    font-weight: 500;
    color: #adadad;
    padding: 1rem 0;
    margin: 0 1rem;
    text-align: center;
    border-bottom: 0.1rem solid #c0e6f5;
}
.scrap-item .drop ul li:last-of-type {
    border-bottom: 0;
}
.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.pagination a {
    font-size: 1.6rem;
    font-weight: 500;
    color: #979797;
    padding: 0.3rem 0.9rem 0.3rem 0.7rem;
    border-radius: 0.5rem;
}
.pagination a.active {
    background-color: #e2dae2;
    color: #643c65;
}








/* home */
.home .top {
    width: 100%;
    margin-bottom: 2rem;
    display: block;
}
.home .top img {
    width: 100%;
}
.no-scrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
}
.no-scrap pre {
    height: 15rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: #afafaf;
    display: flex;
    justify-content: center;
    align-items: center;
}
.no-scrap .inner-a {
    background-image: linear-gradient(to right, #4192e7, #471773);
    width: 100%;
    height: 7.4rem;
    border-radius: 1rem;
}
.no-scrap a.gradientBlue {
    width: 100%;
    height: 100%;
    background-image: url(../img/main_img2.png);
    background-repeat: no-repeat;
    background-size: 13rem;
    background-position: right 0 bottom 0;
}

.calcSwiper {
    height: 31rem;
    margin-bottom: 3rem;
}
/* .calcSwiper .swiper-wrapper .swiper-slide {
    min-height: 15rem;
} */
.calcSwiper .swiper-pagination-fraction {
    font-size: 1.6rem;
    font-weight: 500;
    color: #929292;
}
.calcSwiper .swiper-pagination-fraction span {
    font-size: 1.6rem;
    font-weight: 500;
    color: #929292;
}
.calcSwiper .swiper-pagination-fraction span.swiper-pagination-current {
    color: #623863;
}

.home > .btn-wrap {
    margin-bottom: 5rem;
}
.btn-wrap .left,
.btn-wrap .right {
    width: calc(100% / 2 - 0.5rem);
    height: 15rem;
}
.btn-wrap .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-wrap .left .sky {
    padding: 3rem 0;
    height: 100%;
    justify-content: space-between;
}
.btn-wrap .left .sky img {
    width: 5rem;
}
.btn-wrap .right .yellow img {
    width: 4rem;
    margin-right: 1rem;
}
.btn-wrap .right .red img {
    width: 3rem;
    margin-right: 1rem;
}
.btn-wrap .right .yellow,
.btn-wrap .right .red {
    height: 7rem;
}
.home .btn-wrap .one.purple.start {
    margin-top: 1rem;
}
.home .btn-wrap .one.purple.start img {
    width: 4rem;
    margin-right: 1rem;
}
.home-words {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 0.1rem solid #f3f3f3;
}
.home-words h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ff6859;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.home-words pre {
    font-size: 1.6rem;
    font-weight: 500;
    color: #595a5a;
    line-height: 1.4;
    margin-bottom: 2rem;
}
.home-words pre:last-of-type {
    margin-bottom: 0;
}

/* history_detail */
.section.history.detail .top {
    justify-content: space-between;
}
.top .caption.red {
    background-color: #ff6f61;
    margin: 0 !important;
}
.prevBtn {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
}
.prevBtn img {
    height: 1.5rem;
    margin-right: 1rem;
}
.section.history.detail .scrap-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
}
.section.history.detail .scrap-title p {
    font-size: 2rem;
    font-weight: 800;
}
.section.history.detail .scrap-title input {
    font-size: 2rem;
    font-weight: 800;
    width: 30%;
}
.section.history.detail .scrap-title p {
    font-size: 2rem;
    font-weight: 800;
}
.section.history.detail .scrap-title button img {
    width: 1.3rem;
    margin-left: 2rem;
}
.section.history.detail .title.margin {
    margin-top: 5rem;
}
.section.history.detail .btn-wrap a:last-of-type img {
    height: 4rem;
    margin-top: 1.5rem;
}



.modal.delete {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 3rem);
    max-width: 100%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}
.modal.delete .scrap-title,
.section.history.detail .modal.delete .scrap-title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}
.modal.delete p.question {
    font-size: 1.6rem;
    font-weight: 600;
    color: #858585;
    margin-bottom: 1.5rem;
}
.modal.delete .btn-wrap {
    width: 100%;
    margin-top: 1rem;
}
.modal.delete .btn-wrap button {
    width: calc(100% / 2 - 0.5rem);
    border-radius: 1rem;
    padding: 1.3rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.black {
    background-color: #333333;
}



@media screen and (max-width: 360px ) {
    .scrap-item .btn-wrap .scrap {
        width: calc(100% / 2 - 0.5rem);
    }
    .scrap-item .scrap span.caption {
        font-size: 1.4rem;
    }
    .scrap-item .scrap span.caption img {
        margin-left: 0.3rem;
    }
    .scrap-item .btn-wrap .scrap p {
        font-size: 1.4rem;
    }
    .scrap-item .btn-wrap .scrap p span {
        font-size: 1.3rem;
        margin-left: 0.3rem;
    }
    .scrap-item .btn-wrap .scrap p {
        white-space: nowrap;
    }
}