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: var(--back);
    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;
    color: var(--main);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

header {
    box-sizing: border-box;
    top: 0;
    width: 100%;
    height: 40px;
    background-color: white;
    border-bottom: 1px solid grey;
    text-align: center;
}

.tool-btn {
    display: none;
    margin-top: auto;
}

#grid {
    display: flex;
    height: calc(100% - 40px);
}

#control {
    margin-left: auto;
    padding: 20px;
}

#control::-webkit-scrollbar {
    display: none;
}

#control, #log-view {
    box-sizing: border-box;
    width: 576px;
    height: 100%;
    overflow-y: scroll;
}

#section-edit, #section-custom {
    display: none;
}

#what {
    cursor: pointer;
    margin-bottom: 10px;
}

.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: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 24px;
    text-align: center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 100vw;
}

.pop-up img {
    max-width: 90vw;
}

.pop-up.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#log-text {
    width: 100%;
    max-width: 420px;
}

#css-select {
    max-width: 100%;
}

#eraser {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.change {
    width: 100%;
    height: 30px;
}

#log-view {
    margin-right: auto;
    padding: 0 80px 0 0;
    background: #fafafa;
}

.msg-controls {
    display: flex;
    position: absolute;
    top: 0;
    right: -80px;
    height: 100%;
}

.msg-controls button {
    margin-left: 5px;
    font-size: 12px;
}

.css-download {
    display: none;
}

#toolbar button,
#final-toolbar button,
#css-tools button {
    margin-right: 10px;
}

textarea.inline-editor {
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    font-family: inherit;
}

.inline-editor {
    width: 100%;
    height: 60px;
}

.message-placeholder {
    height: 40px;
    /* 메시지 높이에 맞춰 조정 */
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    margin-bottom: 5px;
}

.move-handle {
    width: 90px;
    height: 100%;
    cursor: move;
}

@media (hover: hover) and (pointer: fine) {
    .mobile { display: none;}
}

@media all and (max-width: 1152px) {
    #control, #log-view { width: 50%; }
}

@media all and (max-width: 649px) {
    #grid { display: block; }
    #control, #log-view { width: 100%; height: auto; }
}