/* 색상표 정의 */
:root {
    --background-color : #F1F3F5;
    --logo-font-color : #696159;
    --font-primary-color : #212529;
    --font-secondary-color : #5E6062;
    --font-footer-color : #495057;
    --font-info-color : green;
    --font-warning-color : red;
    --font-success-color: blue;
    --font-normal-color : #868E96;
    --border-color-light : #E4E7EA;
    --border-color-lighter : #E9ECEF;
    --button-color-strong : #4D4741;
    --button-color-light : #ADB5BD;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Pretendard-Regular';
    src: url('../fonts/Pretendard-Regular.woff') format('woff');
    font-style: normal;
}

.scroll-non-display {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.scroll-non-display::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

body {
    font-family: 'Pretendard-Regular';
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: var(--background-color);
}

/* --- 그리드 --- */

/* 헤더 영역 */
.header-area {
    width: 100%;
    height: 56px;
    padding: 0px 20px;
    background-color: white;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* 바디 영역 */
.body-area {
    width: 100%;
    padding: 0 0;
    display: inline-flex;
    height: 75%;
    flex-direction: column;
    overflow-y: scroll;
    background-color: #FFFFFF;
}

/* 상단 메뉴바 */
.top-option-area {
    width: 100%;
    height: 55px;
    padding: 0px 20px;
    background-color: white;
    display: inline-flex;
    align-items: center;
}

/* 앨범 이미지 파일 열기 */
.file-browser-area {
    width: 100%;
    height: 55px;
    padding: 0px 20px;
    margin-bottom: -10px;
    background-color: white;
    display: inline-flex;
    align-items: center;
}

/* 메인 영역 - 메뉴 목록 */
.main-area-menus {
    width: 100%;
    /* 메뉴 목록의 길이에 따른 가변 길이 */
    height: auto;
    background-color: white;
}

/* 메뉴 아이템 컨테이너 */
.menu-item-container {
    width: 100%;
    height: 90px;
    padding: 0px 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

/* 메뉴 상세 정보 컨테이너 */
.menu-info-container {
    display: inline-flex;
    height: 60px;
    width: 80%;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    white-space: nowrap;
    overflow: scroll;
}

/* 최하단 컨테이너 */
.footer-container {
    width: 100%;
    padding: 24px 20px;
    background-color: white;
    display: inline-flex;
    flex-direction: column;
}

/* 라이브러리 섹션 wrapper */
.library-section-wrapper {
    margin-top: 15px;
    margin-left: 20px;
}

/* 라이브러리 사진 목록 컨테이너 */
.library-container {
    width: 100%;
    margin-top: 10px;
    margin-left: -10px;
    white-space: nowrap;
    overflow: scroll;
}

/* 이미지 편집 툴 포팅 영역 */
.image-editor {
    width: 100%;
    height: 400px;
    background-color: var(--button-color-light);
}

/* 이미지 편집 툴 버튼 영역 */
.tool-button-area {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* --- 텍스트 뷰 --- */

/* 최상단 제목 */
h1 {
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    margin: 0;
    display: inline;
    color: var(--font-primary-color);
}

/* 아이템 제목 */
h2 {
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    display: inline;
    color: var(--font-primary-color);
}

/* 아이템 상세 내용 */
h3 {
    font-size: 12px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    display: inline;
    color: var(--font-secondary-color);
}

/* 알림 메세지 */
h4 {
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    margin: 0;
    display: inline;
}

/* 로고 text */
.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--logo-font-color);
}

/* body, footer 텍스트 */
.content-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--font-footer-color);
}

/* 사진 편집기 메세지 텍스트 */
.notice-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--font-normal-color);
}

/* --- 버튼 --- */

/* 체크 버튼 (common) */
.order-check-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-size: cover;
}

/* 체크 버튼 (비활성화) */
.check-button-disabled {
    background-image: url(../image/icon/check-disabled-4x.png);
}

/* 체크 버튼 (활성화) */
.check-button-enabled {
    background-image: url(../image/icon/check-enabled-4x.png);
}

/* 선택 삭제 button */
.select-deletion-button {
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
    background: none;
    height: 31px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 400;
    margin-left: auto;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.select-deletion-button-enabled {
    color: var(--font-secondary-color);
}

.select-deletion-button-disabled {
    color: var(--border-color-light);
}

/* 편집 버튼 */
.edit-button {
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-size: cover;
    background-color: white;
    background-image: url(../image/icon/edit-4x.png);
    margin-left: auto;
}

/* 하단 버튼 */
.footer-button {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 15px;
    font-weight: 500;
}

.footer-button-enabled {
    background-color: var(--button-color-strong);
    border-color: var(--button-color-strong);
    color: white;
}

.footer-button-disabled {
    background-color: var(--border-color-light);
    border-color: var(--border-color-light);
    color: var(--button-color-light);
}

/* 뒤로가기 버튼 */
.backward-button {
    width: 7.6px;
    height: 13.6px;
    padding: 0;
    border: none;
    background-size: cover;
    background-color: white;
    background-image: url(../image/icon/backward-4x.png);
}

/* 취소 버튼 */
.cancel-button {
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
    background: none;
    padding: 4px 8px;
    height: 31px;
    font-size: 14px;
    font-weight: 400;
    color: var(--font-secondary-color);
}

/* 확인 버튼 */
.confirm-button {
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
    padding: 4px 8px;
    height: 31px;
    font-size: 14px;
    font-weight: 400;
    background-color: var(--button-color-strong);
    border-color: var(--button-color-strong);
    color: white;
}


/* 이미지 선택 버튼 */
.img-select-button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 15px;
    font-weight: 500;
    background-color: var(--button-color-strong);
    border-color: var(--button-color-strong);
    color: white;
}

/* 라이브러리 사진 아이템 (버튼) */
.image-button {
    padding: 0;
    margin: 0px 5px;
    border: none;
}

/* 툴 버튼 */
.tool-button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 15px;
    font-weight: 500;
    background-color: white;
    border-color: var(--border-color-light);
    color: var(--font-footer-color);
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* --- 이미지 --- */

.refresh-icon {
    display: inline;
    position: relative;
    top: -1px;
    height: 10px;
    width: 10px;
}

.menu-image {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-color-lighter);
    border-radius: 10px;
    width: 64px;
    height: 64px;
}

.library-image {
    border: 1px solid var(--border-color-lighter);
    width: 96px;
    height: 96px;
}

.tool-icon {
    display: inline;
    position: relative;
    top: -1px;
    height: 20px;
    width: 20px;
}

/* --- ETC --- */

.with-margin {
    margin-right: 16px;
}

.with-bottom-margin {
    margin-bottom: 8px;
}

.with-top-margin {
    margin-top: 8px;
}

.with-top-md-margin {
    margin-top: 16px;
}

.with-top-lg-margin {
    margin-top: 24px;
}

.with-left-auto-margin {
    margin-left: auto;
}

.with-left-xs-margin {
    margin-left: 6px;
}

.h1-center-align {
    margin: 0 auto;
    text-align: center;
}

.warning-color {
    color: var(--font-warning-color);
}

.info-color {
    color: var(--font-info-color);
}

.hidden {
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    visibility: hidden;
}


/* --- Modal --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: white;
    margin: 50% auto; 
    padding: 20px;
    border: none;
    border-radius: 10px;
    width: 80%;
    max-width: 300px;
    height: 240px;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--font-primary-color);
    /*color: var(--font-warning-color);*/
    /*color: var(--font-info-color);*/
}

.modal-message-container {
    height: 100px;
}

.modal-message {
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    color: var(--font-primary-color);
}

.modal-select-button {
    width: 100%;
    height: 42px;
    padding: 0;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: var(--font-footer-color);
}


#img-file-input {
    display: none;
}