@charset "utf-8";

@font-face {
    font-family: "Pretendard Variable";
    src: url('PretendardVariable.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Pretendard Variable";
    src: url('PretendardVariable.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Pretendard Variable";
    src: url('PretendardVariable.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Pretendard Variable";
    src: url('PretendardVariable.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

html {
    -webkit-text-size-adjust: none; /*Chrome, Safari, newer versions of Opera*/
    -moz-text-size-adjust: none; /*Firefox*/
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #FDEBD3;
    color: #333;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 16px;
    background: conic-gradient(from 0deg at 50% 50%, white 0%, #FFF3DC 10%, #FFE1E2 20%, #FFF3DC 40%, white 60%, #FFE1E2 70%, #FFF3DC 80%, #FFE1E2 90%, white 100%);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

* { box-sizing: border-box; }

input { height: 20px; border: 1px solid #333; border-radius: 6px; font-family: inherit; }
input[type="checkbox"] { height: auto; cursor: pointer; accent-color: #333; }
select { height: 24px; border: 1px solid #333; border-radius: 6px; font-family: inherit; cursor: pointer; }

h2 { margin-top: 45px; }
h3 { margin: 0; }
p { margin: 5px; line-height: 1.4; }
#control a { position: relative; display: inline-block; padding-right: 14px; color: #333; text-decoration: none; text-indent: 0; }
#control a:hover { font-weight: 700; }
#control a::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-image: url(link.svg);
}

#control a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease-in-out;
}

#control a:hover::before { width: calc(100% - 14px); }

header {
    display: flex;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    border-bottom: 1px solid #ddd;
    align-items: flex-end;
    z-index: 1;
}

.title { margin-left: auto; width: 576px; padding: 0 35px 10px; }
.title h1 { margin: 0; padding: 0; font-size: 30px; font-weight: 900; color: #333; cursor: default; }

.toolbar { display: flex; margin-right: auto; width: 576px; padding: 0 35px 10px; justify-content: flex-end; }
.toolbar .tool-btn { width: 30px; height: 30px; }
.toolbar button { margin: 0; padding: 0; border: none; background: transparent; font-size: 24px; cursor: pointer; }
.toolbar button svg .icon { fill: #999; }
.toolbar button:hover > svg .icon { fill: #333; }
#redo-btn { display: none; transform: scaleX(-1); }

#grid { display: flex; height: calc(100% - 80px); }

#control, #log-view {
    width: 576px;
    height: 100%;
    overflow-y: scroll;
}

#control {
    margin-left: auto;
    padding: 0 35px 45px;
    background-color: white;
}

#control::-webkit-scrollbar, #control textarea::-webkit-scrollbar { display: none; }

#control textarea {
    height: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: white;
    font-family: inherit;
    resize: none;
    word-break: break-all;
}

#control button {
    padding: 4px 8px;
    color: white;
    background: #999;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#control button:hover { background: #333; }

#section-edit, #section-custom { display: none; container-type: inline-size; }

.help svg, .showtip svg { position: relative; top: 2px; }
.help svg .icon, .showtip .icon { fill: #999; }
.help:hover > svg .icon, .showtip:hover > svg .icon { fill: #333; }

.help { cursor: pointer; }
.showtip { cursor: pointer; }

.pop-up {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    padding: 20px 40px;
    background-color: white;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 100vw;
    z-index: 2;
}

.pop-up img { max-width: 90vw; }
.pop-up.active { transform: translate(-50%, -50%) scale(1); opacity: 1; }

#help-what { margin-bottom: 8px; }
.file-box { display: flex; height: 160px; }

.upload-box {
    padding: 8px;
    width: 35%;
    height: 100%;
    overflow: hidden;
    background: #f1f1f1;
    border-radius: 6px;
    border: 2px dashed #999;
    cursor: pointer;
    text-align: center;
}

.upload-box.active { background: #ddd; border: 2px dashed #333; }
.upload-box input { display: none; }
.upload-icon { font-size: 30px; }

#html-text { width: 65%; }
#sample { height: 40px; margin-top: 4px; font-size: 14px; }
.file-list { font-size: 11px; line-height: 1.2; }

#css-select { max-width: 100%; }
#css-img { display: grid; width: 65%; align-items: center; overflow: hidden; }
.img-null { display: grid; width: 100%; height: 100%; padding: 8px; border-radius: 6px; text-align: center; align-items: center; background: #f1f1f1; font-size: 14px; line-height: 1.4; }
#css-img img { display: none; width: 100%; height: 100%; border-radius: 6px; object-fit: cover; object-position: left top; }
#css-upload { width: 35%; }
#css-img #css-custom { display: none; width: 100%; padding: 8px; text-align: center; }
#css-custom .css-download { margin: 6px auto auto; }
.css-download { display: none; align-items: center; }
.css-download .icon { fill: white; }

#control button.ico { background: transparent; transition: transform 2s; }
#control button.ico:hover { background: transparent; transform: rotate(-360deg); }
#avatar-list { width: 100%;}
#avatar-list .avatar-chr { width: 100%; margin: 10px 0; padding: 6px; background-color: #f1f1f1; border-radius: 6px; }
#avatar-list .avatar-chr .avatar-by { font-weight: 700; }
#avatar-list .avatar-chr .avatar-img { display: grid; width: 100%; grid-template-columns: 40px 2fr 3fr 60px; }
#avatar-list .avatar-chr .avatar-img .img-box { width: 40px; height: 40px; position: relative; }
.img-box .img-org, .img-box .img-chg { position: absolute; transition: all .1s ease-in-out; }
.img-box .img-org { top: 6px; bottom: 6px; left: 6px; right: 6px; width: 28px; height: 28px; }
.img-box .img-chg { top: 12px; bottom: 0; left: 12px; right: 0; width: 0; height: 0; }
.img-box.enter .img-chg { top: 12px; bottom: 0; left: 12px; right: 0; width: 28px; height: 28px; }
.img-box.enter .img-org { top: 0; bottom: 22px; left: 0; right: 22px; width: 18px; height: 18px; }
#avatar-list .avatar-chr .avatar-img input { min-width: 0; margin: auto 4px; }
#avatar-list .avatar-chr .avatar-img input[readonly] { background-color: #e1e1e1; color: #999; border-color: #999; }
#avatar-list .avatar-chr .avatar-img input[readonly]:focus { outline: none; }
#avatar-list .avatar-chr .avatar-img .link-org.roll20 { background-color: #FFE1E2; color: #E10085; border-color: #E10085; }
#avatar-list label { margin: auto 0; cursor: pointer; }
#avatar-list img { max-width: 100%; max-height: 100%; cursor: zoom-in; }
.avatar-button { display: grid; grid-template-columns: 4fr 1fr;}

.remove-box { display: grid; width: 100%; font-size: 14px; text-indent: 10px; grid-template-columns: 1fr 1fr 1fr; row-gap: 24px; column-gap: 14px; }
.remove-item p { word-break: break-all; }
.remove-item button { width: 100%; }
.remove-box .remove, .remove-box .yes .check { display: none; }
.remove-box .yes .remove { display: block; }

.remove-box .ex-you { position: relative; background-color: transparent; }
.remove-box .ex-you::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #B1D9FA;
}

.remove-box .yes .ex-you { background-color: #D3E5F5; }
.remove-box .yes .ex-you::before {
    height: 2px;
}


@container (max-width: 500px) {.remove-box { grid-template-columns: 1fr 1fr; }}
@container (max-width: 290px) {.remove-box { grid-template-columns: 1fr; }}

.change {
    width: 100%;
    height: 30px;
    margin-top: 40px;
}

#log-view {
    margin-right: auto;
    padding: 40px 75px 40px 0;
    background: white;
}

#log-view img { max-width: 100%; }
#check { display: none; }

.hdl-body {
    display: flex;
    position: absolute;
    top: 0;
    right: -68px;
    height: 100%;
    opacity: 0;
}

.hdl-move {
    width: 0;
    height: 100%;
    border-right: 4px solid #999;
    cursor: move;
}

.hdl-box {
    height: 16px;
    padding: 4px 2px 4px 0;
    background: #999;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    font-size: 0;
}

.message:hover > .hdl-body { opacity: 1; }
.hdl-box:hover { background: #333; }
.hdl-body:has(.hdl-box:hover) .hdl-move { border-right: 4px solid #333; }

.hdl-body button {
    margin: 0 3px;
    padding: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 16px;
    height: 16px;
    border: none;
    line-height: 0;
    cursor: pointer;
}

.hdl-body .hdl-copy { background-image: url(copy.svg); }
.hdl-body .hdl-edit { background-image: url(edit.svg); }
.hdl-body .hdl-delete { background-image: url(delete.svg); }

.hdl-body.active { opacity: 1; }
.hdl-body.active .hdl-move { width: 0; cursor: default; }
.hdl-body.active .hdl-box { background: #333; }
.hdl-body.active .hdl-move { border-right: 4px solid #333; }

#loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(3px);
    color: white;
}

#loading-text { margin-bottom: 12px; font-size: 1.2em; }

#loading-bar {
    width: 0%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    transition: width 0.3s ease;
}

#rpl-num { color: #999; }

textarea.inline-editor {
    min-width: 100%;
    max-width: 100%;
    height: 60px;
    font-family: inherit;
}

.msg-placeholder {
    height: 40px;
    background-color: #f1f1f1;
    border: 2px dashed #e1e1e1;
    margin-bottom: 5px;
}

/* ***** scroll bar ***** */
::-webkit-scrollbar { width: 12px; }

::-webkit-scrollbar-thumb {
    border: 2px solid white;
    border-radius: 6px;
    background-color: #ddd;
}

::-webkit-scrollbar-thumb:hover { background-color: #333; }
::-webkit-scrollbar-track { background-color: white; }

@media (hover: hover) and (pointer: fine) {
    .mobile { display: none;}
    .hdl-move { width: 90px; }
}

@media all and (max-width: 1152px) {
    #control, #log-view { width: 50%; }
}

@media all and (max-width: 649px) {
    header { position: fixed; }
    header .title { width: 70%; padding-left: 20px; }
    header .toolbar { width: 30%; padding-right: 20px; }
    #grid { display: block; padding-top: 60px; }
    #control, #log-view { width: 100%; height: auto; }
    #control { padding: 20px; }
    #log-view { padding-left: 20px; }
    ::-webkit-scrollbar { display: none; }
}