/* ---- GENERAL ---- */
/* initialize */
* {
    font-family: nerd-regular;
    /* font-family: noto-sans-kr; */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
}

fieldset {
    border: 0
}

/* layout */
.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
}

.box {
    max-width: 600px;
    margin: 48px 0;
}

.innerBox {
    padding: 48px;
}

.block {
    display: block;
}

.flex {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* title */
.titleBox {
    background-color: black;
    /* padding: 48px 48px 24px 48px; */
    padding: 48px;
    border-radius: 12px 12px 0 0;
}

.icon {
    width: 48px;
    border-radius: 12px;
}

/* end button */
#btn-submit {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    background-color: black;
    color: #F6F2EE;
    ;
    padding: 24px;
    font-size: 16px;
    border-radius: 0 0 12px 12px;
    border: 0;
    font-family: nerd-regular;
}

#btn-submit:hover {
    font-family: nerd-bold;
}

#btn-submit:active {
    background-color: #313030;
}


/* spacing */
.m-12 { margin: 48px; }

.my-6 { margin: 24px 0px; }

.mt-12 { margin-top: 48px; }
.mt-6 { margin-top: 24px }
.mt-3 { margin-top: 12px; }
.mt-2 { margin-top: 8px; }
.mt-1 { margin-top: 4px; }

.gap-6 { gap: 24px; }
.gap-3 { gap: 12px; }
.gap-2 { gap: 8px; }
.gap-1 { gap: 4px; }

.py-3 { padding: 12px 0; }

hr {
    margin: 24px 0;
}

/* font */
/* @font-face {
    font-family: "noto-sans-kr";
    src: url("./NotoSansKR-VariableFont_wght.ttf");
} */
@font-face {
    font-family: "nerd-regular";
    src: url("./0xProtoNerdFontPropo-Regular.ttf");
}

@font-face {
    font-family: "nerd-bold";
    src: url("./0xProtoNerdFontPropo-Bold.ttf");
}

/* markdown */
h1 {
    /* font-family: noto-sans-kr; */
    font-family: nerd-bold;
    font-weight: 900;
    font-size: 30px;
    color: #F6F2EE;
}

h2,
h3,
h4,
h5,
h6 {
    /* font-family: noto-sans-kr; */
    font-family: nerd-bold;
    font-size: 16px;
    font-weight: 900;
}

/* 소제목 */
.bold {
    /* font-family: noto-sans-kr; */
    font-family: nerd-bold;
    font-size: 16px;
    font-weight: 900;
}

.label {
    font-size: 16px;
    /* font-family: noto-sans-kr; */
    font-family: nerd-bold;
    font-weight: 900;
    display: inline;
}

/* ---- SPECIFIC TO THIS PROJECT ---- */

#app-boundary {
    max-width: 500px; 
    height: calc(100vh - 96px); 
    margin-left: auto;
    margin-right: auto;
    margin-top: 48px;
    position: relative;
}

#chat-main {
    padding: 0 48px;
    background-color: white;
    height: calc(100vh - 96px - 288px);
}

#chat-main-scroll {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.chat-box {
    max-width: calc(100% - 120px);
    padding: 12px;
    border-radius: 12px;
    color: white
}
.chat-you {
    margin-right: auto;
}
.chat-me {
    margin-left: auto;
}
[class*="you"] {
    background-color: dodgerblue;
}
[class*="me"] {
    background-color: coral;
}
.indent {
    width: 24px;
    height: 16px;
    float: left;
}


#chat-footer {
    height: 144px; 
    padding: 24px 48px; 
    background-color: #000;
    border-radius: 0 0 12px 12px;
}

#chat-footer>textarea {
    height: 100%; 
    width: 100%;
    border-radius: 12px;
    resize: none;
    padding: 12px;
    border-width: 0;
    display: block;
}

#btn-send {
    height: 100%; 
    background-color: black;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid white;
}
#btn-send:hover {
    border: 1px solid #94918F;
}
#btn-send:active {
    border: 1px solid #62615F;
}

#btn-close {
    position: absolute;
    left: -60px;
    background-color: red;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    z-index: 90;
    border-width: 0;

    display: flex;
    flex-direction: row;
    justify-content: center;
}
#btn-close:hover {
    background-color: #e20000;
}
#btn-close:active {
    background-color: #b10000;
}