/* ========================================
   기본 설정
======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    position: relative;
    background-color: #F7F7F7;
    color: #402108;
    overflow-x: hidden;
    font-family: "Noto Sans", sans-serif;
}


/* ========================================
   뒤로가기 버튼
======================================== */

.back-button {
    position: fixed;
    top: 1vw;
    left: 2vw;

    font-family: "Noto Sans", sans-serif;
    font-size: 50px;
    font-weight: 400;

    color: #402108;
    text-decoration: none;

    z-index: 9999;
}

.back-button:hover {
    opacity: 0.6;
}


/* ========================================
   배경
======================================== */

.background {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    box-sizing: border-box;
    padding: 10%;

    z-index: -10;
}


/* ========================================
   전체 스테이지
======================================== */

.stage {
    position: relative;

    width: 430px;
    height: 1700px;

    left: 50%;
    margin-left: -215px;

    transform-origin: top center;
    transform: scale(1.2);
}


/* ========================================
   방명록 전체
======================================== */

.guestbook {
    width: 100%;
    max-width: 500px;

    margin: 0 auto;
    padding: 20px;

    box-sizing: border-box;

    font-family: "Noto Sans", sans-serif;
    font-size: 12px;
}

.guestbook h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #402108;
}


/* ========================================
   NOTICE / MESSAGE FROM SHIN
======================================== */

.guestbook-notice,
.owner-message {
    padding: 16px;
    margin-bottom: 16px;

    border: 1px solid #B09280;

    overflow-wrap: anywhere;
}

.guestbook-notice h2,
.owner-message h2 {
    color: #402108;
}

.guestbook-notice p,
.owner-message p {
    margin-bottom: 0;
    line-height: 1.6;

    color: #B09280;
}


/* ========================================
   방명록 작성 폼
======================================== */

#guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#guestbook-form label {
    font-weight: bold;
    margin-top: 8px;

    color: #402108;
}


/* ========================================
   입력창
======================================== */

#nickname,
#comment {
    width: 100%;

    box-sizing: border-box;
    padding: 12px;

    border: 1px solid #B09280;

    font: inherit;
    color: #402108;

    background-color: #FFFFFF;
}

#nickname {
    height: 44px;
}

#comment {
    height: 7em;

    line-height: 1.5;

    resize: none;
    overflow-y: auto;
    overflow-wrap: anywhere;
}

#nickname::placeholder,
#comment::placeholder {
    color: #B09280;
}


/* ========================================
   글자 수 표시
======================================== */

.character-count {
    text-align: right;
    font-size: 12px;

    color: #B09280;
}


/* ========================================
   게시하기 버튼
======================================== */

#guestbook-form button {
    padding: 12px;

    background-color: #B09280;
    color: #402108;

    border: 1px solid #402108;
    border-radius: 0;

    cursor: pointer;
    font: inherit;
}


/* ========================================
   댓글 목록
======================================== */

#guestbook-list {
    margin-top: 24px;
}


/* ========================================
   댓글 박스
======================================== */

.guestbook-comment {
    position: relative;

    width: 100%;
    box-sizing: border-box;

    background-color: #FFFFFF;

    border: 1px solid #402108;
    border-radius: 8px;

    padding: 15px;
    margin-bottom: 12px;

    overflow-wrap: anywhere;
}


/* ========================================
   댓글 닉네임 + 날짜
======================================== */

.guestbook-comment .comment-name {
    padding-right: 90px;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: bold;

    color: #402108;
}


/* ========================================
   댓글 내용
======================================== */

.guestbook-comment .comment-text {
    margin: 0;

    font-size: 12px;
    line-height: 1.7;

    color: #402108;

    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
}


/* ========================================
   관리자 삭제 버튼
======================================== */

.guestbook-comment button {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 3px 6px;

    font-size: 10px;
    font-family: inherit;

    background-color: #FFFFFF;
    color: #402108;

    border: 1px solid #402108;
    border-radius: 0;

    cursor: pointer;
}
