header {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    padding: 0 1.5rem;
    z-index: 7777;
    background: #fff;
    margin-bottom: 2rem;
}
header h1 {
    width: 7rem;
}
header h1 a {
    width: 100%;
}
header h1 a img {
    width: 100%;
}

.navBg {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 8888;
}
.no-scroll {
    overflow: hidden;
}

nav {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 6rem;
    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: 2rem;
    margin-bottom: 0.5rem;
}
nav a span {
    font-size: 1.5rem;
    font-weight: 400;
    color: #9c9c9c;
}


main {
    padding: 0 1.5rem 5rem;
    min-height: 100vh;
}






/* common */
h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 2rem;
}
.btn-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.btn-wrapper .aButton {
    border-radius: 1rem;
    padding: 2.1rem 1.5rem 1.8rem 1.5rem;
    color: #fff;
}
.btn-wrapper .aButton.one {
    width: 100%;
}
.btn-wrapper .aButton.two {
    width: calc(100% / 2 - 1rem);
}
.btn-wrapper .aButton.orange {
    background-color: #fbb33b;
}
.btn-wrapper .aButton.yellow {
    background-color: #ffd954;
}
.btn-wrapper .aButton.red {
    background-color: #f0543c;
}
.btn-wrapper .aButton.brown {
    background-color: #632d11;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 3rem 0;
}
.pagination a {
    font-size: 1.8rem;
    font-weight: 400;
    color: #c9c9c9;
}
.pagination strong {
    font-size: 1.8rem;
    font-weight: 400;
    color: #ee4126;
    padding-bottom: 0.5rem;
    padding-right: 0.3rem;
    border-bottom: 0.1rem solid #ee4126;
}
.pagination a img {
    height: 1.7rem;
}

.categoryTab {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.categoryTab a {
    font-size: 1.8rem;
    font-weight: 500;
    color: #fbb33b;
    border-radius: 1rem;
    background-color: #fff;
    border: 0.1rem solid #fbb33b;
    padding: 1.3rem 1rem;
    text-align: center;
}






/* home-top */
.home.top {
    position: relative;
    margin-bottom: 3rem;
}
.phrase-item {
    /* background-color: #ffefa9; */
    height: 16.5rem;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.phrase-item pre.content {
    font-family: OTEnjoystoriesBA;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.phrase-item p.writer {
    font-family: OTEnjoystoriesBA;
    font-size: 2rem;
    text-align: center;
}
.changeBgBtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.changeBgBtn img {
    width: 1.8rem;
}

.swiper.HomeSwiper {
    height: 19rem;
}
.swiper.HomeSwiper .swiper-pagination-bullet {
    width: 0.6rem;
    height: 0.6rem;
}
.swiper.HomeSwiper .swiper-pagination-bullet-active {
    background-color: #ef4d33;
}

/* selectBg */
.selectBg {
    display: none;
    position: fixed;
    top: 30%;
    width: calc(100% - 3rem);
    border-radius: 1rem;
    background-color: #fff;
    padding: 2.5rem 2rem;
    margin: 0 1.5rem;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}
.selectBg .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.selectBg .title h2 {
    font-weight: 700;
}
.selectBg .title button.close img {
    width: 1.5rem;
    margin-bottom: 2rem;
}
.selectBg .bg-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.selectBg .bg-wrapper .bg-item {
    width: calc(100% / 4 - 1.5rem);
    border-radius: 1rem;
    position: relative;
}
.selectBg .bg-wrapper .bg-item.yellow {
    background-color: #ffefa9;
}
.selectBg .bg-wrapper .bg-item.brown {
    background-color: #f6e9c9;
}
.selectBg .bg-wrapper .bg-item.sky {
    background-color: #b5e3f3;
}
.selectBg .bg-wrapper .bg-item.purple {
    background-color: #d0d4f9;
}
.selectBg .bg-wrapper .bg-item.pink {
    background-color: #fdd6db;
}
.selectBg .bg-wrapper .bg-item.orange {
    background-color: #ffd4b4;
}
.selectBg .bg-wrapper .bg-item.green {
    background-color: #bfe9df;
}
.selectBg .bg-wrapper .bg-item.gray {
    background-color: #e5e1e0;
}
.selectBg .bg-wrapper .bg-item::before {
    content: "";
    display: block;
    padding-top: 100%;
}
.selectBg .bg-wrapper .bg-item .check-icon {
    width: 3rem;
    position: absolute;
    bottom: 35%;
    left: 27%;
}
.selectBg button#selectBgBtn {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    border-radius: 1rem;
    background-color: #f0543c;
    text-align: center;
    padding: 1rem 8rem;
    margin-top: 2rem;
}

/* home */
.section.home {
    margin-bottom: 3rem;
}
.section.home .btn-wrapper a.aButton {
    font-size: 1.8rem;
    font-family: GangwonEdu_OTFBoldA;
}
.section.home .btn-wrapper a.aButton.brown {
    font-size: 2.5rem;
    font-family: GangwonEdu_OTFBoldA;
}
.section.home .btn-wrapper a.aButton span {
    display: block;
    font-size: 1.6rem;
    font-family: GangwonEdu_OTFLightA;
    color: #fff;
    margin: 0.3rem 0 1rem 0;
}
.section.home .btn-wrapper a.aButton.orange {
    background-image: url(../img/main_icon2.png);
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 20%;
}
.section.home .btn-wrapper a.aButton.yellow {
    background-image: url(../img/main_icon3.png);
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 23%;
}
.section.home .btn-wrapper a.aButton.red {
    background-image: url(../img/main_icon4.png);
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 12%;
}
.section.home .btn-wrapper a.aButton.brown:nth-of-type(1) {
    background-image: url(../img/main_icon5.png);
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 15%;
}
.section.home .btn-wrapper a.aButton.brown:nth-of-type(2) {
    background-image: url(../img/main_icon6.png);
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 15%;
}




/* phrase */
.section.phrase {
    display: flex;
    flex-direction: column;
}
.section.phrase .category {
    margin: 0 -1.5rem;
    background-color: #fbb33b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.section.phrase .category a {
    width: calc(100% / 3);
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.6;
    padding: 1.5rem;
    text-align: center;
}

.totalCount {
    font-size: 1.6rem;
    font-weight: 500;
    color: #ef4930;
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    border-bottom: 0.1rem solid #e7e7e7;
}
.totalCount.mine {
    font-size: 1.6rem;
    font-weight: 500;
    color: #ef4930;
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    border: 0;
}
.phraseContent {
    height: 13.7rem;
    padding: 3rem 0;
    border-bottom: 0.1rem solid #e7e7e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.phraseContent .left {
    width: 78%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.phraseContent .left pre {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.phraseContent .left p {
    font-size: 1.6rem;
    font-weight: 500;
}
.phraseContent .right {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.phraseContent .right button img {
    width: 2.3rem;
}
.phraseContent .right button:last-of-type img {
    width: 2.8rem;
}





/* create */
.section.create {
    display: flex;
    flex-direction: column;
}
.section.create .category {
    margin: 0 -1.5rem;
    background-color: #fbb33b;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.section.create .category a {
    width: calc(100% / 2);
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.6;
    padding: 1.5rem;
    text-align: center;
}

.create-wrapper {
    width: 100%;
}
.section.create h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.create-wrapper .content {
    margin-bottom: 3rem;
}
.create-wrapper .content textarea {
    width: 100%;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 1rem;
    border: 0.1rem solid #c6c6c6;
    padding: 2rem 1.5rem;
}
.create-wrapper .content textarea::placeholder {
    color: #c6c6c6;
}
.create-wrapper .writer input {
    width: 100%;
    font-size: 1.6rem;
    font-weight: 500;
    border-bottom: 0.1rem solid #c6c6c6;
    padding: 1rem 0;
}
.create-wrapper .writer input::placeholder {
    color: #c6c6c6;
}
.textLength {
    width: 100%;
    text-align: right;
}
.textLength,
.textLength span {
    font-size: 1.5rem;
    font-weight: 500;
    color: #c6c6c6;
    padding: 1rem 0;
}
#createBtn {
    width: 100%;
    padding: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border-radius: 1rem;
    background-color: #f0543c;
    margin: 4rem 0 2rem 0;
}
.section.create a.aButton {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;    
}
.section.create a.aButton img {
    width: 4.5rem;
    margin-right: 1rem;
}
.section.create .aButton.small img {
    width: 3.5rem;
    margin-right: 1rem;
}

.section.loading {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8rem 0;
}
.section.loading img {
    width: 30%;
    margin-bottom: 2rem;
}
.section.loading pre {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 1.5rem;
}
.section.loading p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #c9c9c9;
    margin-bottom: 4rem;
}
.section.loading .loading_wrap {
    width: 100%;
}
.section.loading .loading_wrap p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ef442a;
    text-align: center;
    margin-bottom: 1rem;
}
.section.loading .loading_wrap .loadingBar {
    width: 100%;
    height: 1rem;
    border-radius: 3rem;
    background-color: #ffefa9;
}
@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}
.section.loading .loading_wrap .loadingBar .load {
    width: 0%;
    height: 1rem;
    border-radius: 3rem;
    background-color: #fbb33b;
    animation: loading 5s linear forwards;
}

.two-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.two-btn button {
    font-size: 1.6rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    background-color: #ffefa9;
    display: flex;
    justify-content: center;
    align-items: center;
}
.two-btn button:nth-of-type(1) img {
    width: 1.6rem;
    margin-right: 0.5rem;
}
.two-btn button:nth-of-type(2) img {
    width: 1.8rem;
    margin-right: 0.5rem;
}
.myphraseScrap-wrapper pre.info {
    font-size: 1.5rem;
    font-weight: 400;
    color: #989898;
    line-height: 1.2;
    text-align: left;
}
.no-myphrase {
    font-size: 1.8rem;
    font-weight: 500;
    color: #c9c9c9;
    line-height: 1.3;
    text-align: center;
    padding: 8rem 0;
}
.deleteModal {
    height: 26rem;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    background-color: #fff;
    width: calc(100% - 3rem);
    margin: 0 1.5rem;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 35%;
    left: 0;
    z-index: 9999;
}
.deleteModal .textContent {
    height: 13rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.deleteModal pre {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-align: center;
}
.deleteModal p {
    font-size: 1.4rem;
    font-weight: 500;
}
.deleteModal p.boldText {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0;
}
.deleteModal .btn-wrapper {
    width: 100%;
    margin-top: 1rem;
}
.deleteModal .btn-wrapper button {
    width: calc(100% / 2 - 1rem);
    padding: 1rem 0;
    border-radius: 1rem;
    background-color: #4d4d4d;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}
.deleteModal .btn-wrapper button:last-of-type {
    background-color: #f0543c;
}
.deleteModal {

}
.myphrase-result {
    width: 100%;
    height: 18rem;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 0.1rem solid #ededed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 0 2rem 0;
    position: relative;
}
.myphrase-result pre {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1rem;
}
.myphrase-result p {
    font-size: 1.6rem;
    font-weight: 500;
}
.myphrase-result p.createDate {
    font-size: 1.6rem;
    font-weight: 500;
    color: #f05138;
    text-align: right;
}
.myphrase-result .moreBtn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}
.myphrase-result .moreBtn img {
    height: 2rem;
}
.myphrase-result .more-wrapper {
    position: absolute;
    top: 1.6rem;
    right: 2.7rem;
    display: none;
    flex-direction: column;
    border-radius: 1rem;
    border: 0.1rem solid #eeeeee;
    background-color: #fff;
}
.myphrase-result .more-wrapper button {
    padding: 0.7rem 0;
    margin: 0 1rem;
    border-bottom: 0.1rem solid #eeeeee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
}
.myphrase-result .more-wrapper button img {
    width: 1.5rem;
    margin-right: 0.5rem;
}
.myphrase-result .more-wrapper button:nth-of-type(2) img {
    width: 2rem;
    margin-right: 0.5rem;
}
.myphrase-result .more-wrapper button:nth-of-type(3) img {
    width: 1.7rem;
    margin-right: 0.5rem;
}
.result-wrapper .btn-wrapper {
    margin-top: 6rem;
}
.result-wrapper .btn-wrapper .aButton {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.result-wrapper .btn-wrapper .aButton img {
    width: 4.5rem;
    margin-right: 1rem;
}

