@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

*{
    font-family: 'Pretendard';
    margin: 0;
}

html,body{
    width: 100%;
    height: 100%;
}

article{
    display: flex
;
    flex-direction: row;
    height: 100%;
}
.left{
    width: 30%;
    display: flex
;
    flex-direction: column;
    background: #f2e7df;
    height: 100%;
    justify-content: space-between;
}


.left > div{
    padding: 12vh 0 0 0;
}

.left > div > p{
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1vh 1vw;
}

.left > img{
    width: 100%;
}

.right{
    width: 100%;
    height: 100%;
    overflow: auto;
}

.right > .chat_field{
    width: 100%;
    height: fit-content;
    min-height: 95%;
    display: flex
;
    flex-direction: column;
    justify-content: flex-end;
}

.right > .chat_field > .me{
        display: flex
;
    flex-direction: column;
    align-items: flex-end;
    padding: 1vh 1vw;
}

.right > .chat_field > .me > .message{
    width: fit-content;
    max-width: 800px;
    padding: 2vh 1vw;
    background: #e7e7e7;
    border-radius: 15px;

}

.right > .chat_field > .GPT{
        display: flex
;
    flex-direction: column;
    align-items: flex-start;
    padding: 1vh 1vw;
}

.right > .chat_field > .GPT > .message{
    width: fit-content;
    max-width: 800px;
    padding: 2vh 1vw;
    background: #f2e7df;
    border-radius: 15px;

}

.right > .chat_field > * > .message > p{
    word-break: break-word;
    line-height: 1.5;
}

.right > .input_field{
    width: 100%;
    height: 5%;
    display: flex;
}

.right > .input_field > input{
    width: 95%;
    border: 1px solid #adadad;
    font-size: 1rem;
    padding: 0 1vw;
}

.right > .input_field > button{
width: 5%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    display: flex
;
    justify-content: center;
    align-items: center;
}

.right > .input_field > button > img{
    width: 50%;
}


@media only screen and (min-width:200px) and (max-width:480px) {
  article{
    flex-direction: column;
  }
  
    .left{
    width: 100%;
        height: auto;
        padding: 2vh 0;
  }


  .left > div{
    padding: 0;
  }

  .left > div > p{
        font-size: 1rem;
    font-weight: bold;
    padding: 0.5vh 3.5vw;
  }

  .left > img{
    display: none;
  }

  .right > .input_field > button{
    width: 16%;
  }

  .right > .chat_field > *{
    padding: 1vh 3vw;
  }
 
}