﻿#fonts-content {
    margin-left: 300px;
    overflow: visible;
}

#font-list-top-area {
    position: relative;
    height: 200px;
    padding: 160px 0 0;
    text-align: center;
}

#font-list-top-area div p {
    font-family: RixSinGo;
    font-weight: 800;
    font-size: 48px;
    color: #1b1b1b;
    margin-top: 46px;
}

#font-list-search-bar {
    height: auto;
    min-height: 105px;
    font-family: RixSinGo;
    position: sticky;
    background: #fff;
    padding-top: 20px;
    padding-bottom: 10px;
    z-index: 10;
    box-shadow: 2px 2px 4px 0px #00000021;
    top: 80px;
}

#font-list-search-bar .keyword label,
#font-list-search-bar .keyword-long label,
#font-list-search-bar .preview label,
#font-list-search-bar .size-container span {
    color: #ED1C24;
    font-weight: 700;
    font-size: 16px;
    margin-left: 14px;
}

.font-list-search {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 30px;
    font-size: 17px;
    padding: 15px 20px 10px;
    justify-content: center;
}

.font-list-search label {
    position: relative;
    float: left;
    line-height: 62px;
}

.font-list-search input[type="text"] {
    float: left;
    height: 60px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 40px 0 20px;
    border: 0;
    font-size: 16px;
    font-weight: 500;
}

.preview button,
.keyword button,
.keyword-long button {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    text-indent: -9999px;
    border-radius: 50%;
    border: 0;
}

.font-list-search .keyword {
    position: relative;
    flex: 0 0 337px;
    border-bottom: 2px #1b1b1b solid;
    margin-bottom: 10px;
}

.font-list-search .keyword-long {
    position: relative;
    float: left;
    border-bottom: 2px #1b1b1b solid;
    width: 840px;
    margin-right: 30px;
}

.font-list-search .keyword input[type="text"] {
    width: 240px;
}

.font-list-search .keyword-long input[type="text"] {
    width: 750px;
}

.font-list-search .keyword .font-btn-search,
.font-list-search .keyword-long .font-btn-search {
    background: url('../images/font/btn_search 1.png') no-repeat center center;
}

.font-list-search .preview {
    position: relative;
    flex: 0 0 570px;
    border-bottom: 2px #1b1b1b solid;
    margin-bottom: 10px;
}

.font-list-search .preview input[type="text"] {
    width: 350px;
}

.font-list-search .preview .btn-reset {
    background: url('../images/font/btn_reset 1.png') no-repeat center center;
}

.font-list-search .size-container {
    position: relative;
    flex: 0 0 217px;
    border-bottom: 2px #1b1b1b solid;
    height: 62px;
    margin-bottom: 10px;
}

/* 1단계: size-container가 아래로 내려감 (keyword + preview는 한 줄) */
/* keyword(337) + gap(30) + preview(570) + gap(30) + size(217) + padding(40) + sidebar(300) = 1524px */
@media (max-width: 1524px) {
    .font-list-search {
        justify-content: flex-start;
    }

    .font-list-search .size-container {
        flex: 0 0 217px;
    }
}

/* 2단계: preview도 아래로 내려감 (keyword만 첫 줄) */
/* keyword(337) + gap(30) + preview(570) + padding(40) + sidebar(300) = 1277px */
@media (max-width: 1277px) {
    .font-list-search {
        justify-content: flex-start;
    }

    .font-list-search .preview {
        flex: 0 0 570px;
    }

    .font-list-search .size-container {
        flex: 0 0 217px;
    }
}

/* 3단계: 세 요소 모두 다른 줄 - 각각 100% 너비 */
/* keyword(337) + padding(40) + sidebar(300) = 677px */
@media (max-width: 910px) {
    .font-list-search {
        justify-content: flex-start;
        gap: 0;
    }

    .font-list-search .preview {
        flex: 0 0 100%;
        width: 100%;
    }

    .font-list-search .preview input[type="text"] {
        width: calc(100% - 140px);
    }
}

@media (max-width: 691px) {
    .font-list-search {
        justify-content: flex-start;
        gap: 0;
    }

    .font-list-search .keyword {
        flex: 0 0 100%;
        width: 100%;
    }

    .font-list-search .keyword input[type="text"] {
        width: calc(100% - 90px);
    }

}


.size-container .bar {
    position: absolute;
    z-index: 1;
    left: 71px;
    top: 30px;
    width: 141px;
    height: 2px;
    background-color: #D9D9D9;
    overflow: hidden;
    margin: 0 !important;
}

.size-container .bar .fill {
    display: block;
    width: 0;
    height: 100%;
    background-color: #ED1C24;
    transition: width 0.1s ease-in-out;
    margin: 0 !important;
}

.size-container #fontSlider {
    position: absolute;
    right: 3px;
    top: 28px;
    z-index: 2;
    -webkit-appearance: none;
    width: 141px;
    height: 2px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
}

.size-container #fontSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: #ED1C24;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: .3s ease-in-out;
}

#sliderValue {
    margin-left: 10px;
    color: var(--rixlogocolor, #ED1C24);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 64px;
}

#font-list-content {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    padding-bottom: 100px;
    overflow: visible;
}

.font-family-weight-count {
    font-weight: 500;
    font-size: 16px;
    line-height: 18.4px;
    color: black;
}

.font-hash-tag {
    color: #9e9e9e;
    margin-left: 10px;
}

.preview-sentence {
    cursor: pointer;
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid #d9d9d9;
    color: black;
}

.preview-sentence p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding-left: 10px;
    position: relative;
    left: -10px;
}

.weight-ul {
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin: 0;
    padding: 25px 0 25px 25px;
    border-bottom: 1px solid #d9d9d9;
}

.weight-ul.collapsed {
    max-height: 0;
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.weight-ul.collapsed .weight-li {
    opacity: 0;
}

.weight-li {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    margin: 10px 0;
    display: flex;
    align-items: center;
    min-height: 30px;
}


.weight-li button {
    flex: 0 0 auto;
}


.weight-title {
    width: 90px;
    font-size: 16px;
    color: black;
    display: inline-block;
    flex: 0 0 100px;
    margin-right: 20px;
}

.weight-sample {
    width: 600px;
    color: black;
    font-size: 24px;
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    margin-right: 20px;
}


li[data-index] {
    position: absolute;
    left: 0;
    width: 100%;
    transition: top 0.3s ease-in-out;
}

.weight-selected {
    background-color: #ED1C24 !important;
    border: 1px solid #ED1C24 !important;
    color: #fff !important;
}

button.bought {
    background-color: #d9d9d9 !important;
    border: 1px solid #a3a3a3 !important;
    color: #9e9e9e !important;
    cursor: not-allowed !important;
}

#font-list-filter-opened {
    position: absolute;
    height: calc(100% - 414px);
    top: 80px;
}

#opened-filter {
    width: 300px;
    background-color: #eee;
    position: fixed;
    z-index: 11;
}

#filter-header {
    /*background-color: #1b1b1b;*/
    height: 22px;
    padding: 0 20px;
    margin-top:25px;
}

#filter-header span {
    font-weight: 700;
    font-size: 14px;
    color: #3C4043;
    margin-left: 10px;
}

#filter-body p {
    font-weight: 700;
    font-size: 17px;
    color: #3C4043;
    margin-bottom: 20px;
}

#filter-body {
    padding: 30px 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666 #ddd;
}

#filter-body p img {
    margin-right: 7px;
}

#filter-body p span {
    top: 2px;
    position: relative;
}

.filter-body-item {}

.filter-body-item button {
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: #fff;
    color: #1b1b1b;
    font-size: 12px;
    font-weight: 400;
    padding: 0 8px;
    margin-bottom: 5px;
}

.filtering-filter.checked {
    border: 1px solid #ED1C24 !important;
    background-color: #ED1C240D !important;
    color: #ED1C24 !important;
}

.filtering-filter.disabled {
    background-color: #E9E9E9 !important;
    color: #5B5B5B !important;
}

#font-list-pdf {
    padding: 20px 0 20px;
}

#font-list-pdf button {
    width: 100%;
}

#font-list-pdf p span {
    top: 0px !important;
    float: left;
}

.list-type {
    position: relative;
    float: right;
    width: 75px;
    height: 35px;
    top: 15px;
}

.list-type button {
    width: 35px;
    height: 35px;
}

#list-type-list {
    background-image: url(/images/font/list_btn.png);
}

#list-type-list:hover,
#list-type-list.list-type-active {
    background-image: url(/images/font/list_btn_active.png);
}

#list-type-thumb {
    background-image: url(/images/font/thumb_btn.png);
}

#list-type-thumb:hover,
#list-type-thumb.list-type-active {
    background-image: url(/images/font/thumb_btn_active.png);
}

#selected-items {
    flex: 1;
    width: auto;
    height: 120px;
    overflow-y: auto;
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0px;
    margin-top: 20px;
}

#final-price {
    font-size: 28px;
    font-weight: 800;
}

.selected-font-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 0;
}

.selected-font-item span {
    margin-right: 8px;
}

.selected-font-item button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.list-content-div button {
    float: right;
    width: 65px;
    height: 30px;
    background-color: #1b1b1b;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #1b1b1b;
    color: #fff;
}

.list-content-div button:hover {
    background-color: #fff;
    color: #ED1C24;
    border: 1px solid #ED1C24;
}

.list-content-div button.weight-selected {
    background-color: #ED1C24;
    border: 1px solid #ED1C24;
    color: #fff;
}


.filter-container {
    position: relative;
    width: calc(100%-40px);
    overflow: visible;
    padding-top: 100px;
    margin: 0 20px;
}

#viewport {
    position: relative;
    width: 100%;
    min-height: 500px;
    /* 최소 높이 추가 */
}

button.bought {
    font-size: 14px;
    background-color: #d9d9d9 !important;
    border: 1px solid #a3a3a3 !important;
    color: #9e9e9e !important;
}

.design-tag.active {
    border: 1px solid #ED1C24 !important;
    color: #ED1C24 !important;
}

.type-tag.active {
    border: 1px solid #ED1C24 !important;
    color: #ED1C24 !important;
}

.list-content-div.thumb-view {
    display: inline-flex;
    margin: 10px;
    text-align: center;
}

.thumb-view .preview-sentence {
    padding: 15px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.thumb-view .preview-sentence:hover {
    border-color: #ED1C24;
}

#hancom-link {
    width: 261px;
    height: 138px;
    display: none;
    margin: 18px 19px 30px;
}

#hancom-link img {
    width: 261px;
    height: 138px;
}

#hancom-link map {
    cursor: pointer;
}

.seperate-line {
    border-top: 1px solid #ccc;
    margin: 10px 0 30px;
}