/* common */




/* custom */
.chatbotBox .chatList{
  display: grid;
  grid-template-columns:repeat(4, 1fr);

  gap: 6px;
}
.chatbotBox .chatList .chatItem {
  width: 100%;
  border-radius: 30px;
  background: linear-gradient(-45deg, var(--color-primaryLight) 0%, #FFF 100%);
  padding: 20px;

}
.chatbotBox .chatList .chatItem.ONLOAD {
  transform: translateY(120px) !important;
  opacity: 0;
}
.chatbotBox .chatList .chatItem.HOVER {
  background: linear-gradient(180deg, #F4A10E 0%, #FDD311 100%);
  color: #fff;
}
.chatbotBox .chatList .chatItem > .wrap{
  
  height: 100%;
  width: 100%;
  padding-bottom: 105%;
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
}
.chatbotBox .chatList .chatItem .infoBox > .wrap {
  justify-content: space-between;
}
.chatbotBox .chatList .chatItem .infoBox .tag {
  padding:  6px 12px;
  border-radius: 20px;
  background-color: var(--color-primaryLight);
  font-weight: 800;
  color: var(--color-black) !important;
  white-space: nowrap;
}
.chatbotBox .chatList .chatItem .infoBox button > *{
  line-height: normal !important;
}
.chatbotBox .chatList .chatItem .infoBox .chatTitle {
  margin-top: 6px;
  font-weight: 600;
}
.sortBox{
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.sortBox .btn{
  border-radius: 12px;
  background-color: #eee;
  margin: 0 1px 4px;
}
.sortBox .btn.ACTIVE {
  background-color: #1A2450;
  color: #fff;
}
.sortBox .btn.ACTIVE > *{
  font-weight: 800;
}
.sortBox .btn:not(.ACTIVE) > * {
  opacity: .6;
}

.sortBox .btn .num {
  margin-left: 8px;
  padding: 0 6px;
  height: 24px;
  line-height: 24px;
  background-color: #fff;
  color: #555;
  border-radius: 20px;
}



section.content{

  background-color: #fff;
  overflow: hidden;

  flex: 1;
  background-image: url(../resources/bg-intro3.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

section.content .welcomeArea > .wrap {
  width: 100%;
  height: 100%;
  padding: 0 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

section.content .welcomeArea > .wrap > .titleBox{
  text-align: center;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
section.content .welcomeArea > .wrap > .titleBox h5 {
  opacity: .6;
  margin-top: 6px;
}
section.content .welcomeArea > .wrap > .titleBox::after,
section.content .welcomeArea > .wrap > .titleBox::before{
  content: '';
  z-index: 0;
  position: absolute;
  width: 50%;
  height: 24vh;
  min-height: 220px;
  min-width: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  top: 50%;
  transform: translateY(-50%);
}
  section.content .welcomeArea > .wrap > .titleBox::after{
  transform: translate(-95%, -50%);
  left: -5%;
    background-image: url(../resources/chractor-welcom01.png);
  background-position: center left;
}
  section.content .welcomeArea > .wrap > .titleBox::before{
  transform: translate(95%, -50%);
  right: -5%;
    background-image: url(../resources/chractor-welcom02.png);
    
    background-position: center right;

  }

section.content > * {
  display: none;
}

  section.content[data-state="welcome"] .welcomeArea,
  section.content[data-state="chatbot"] .chatbotArea
{display: block;}
section.content .welcomeArea .chatbotBox {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
section.content .welcomeArea .chatbotBox .chatBox{
  text-align: center;
  margin-top: 20px;
}
section.content .welcomeArea .chatbotBox .chatBox .titleBox {
  display: flex;
  gap: 8px;
  flex-direction: row;
  width: 100%;
  align-items: center;
}
section.content .welcomeArea .chatbotBox .chatBox .titleBox .btn .icon{
  background-color: #fff;
  background-image: unset;
  mask-image: url(../resources/icon-refresh.png);
  mask-size: 12px auto;
  margin-left: 8px;
}
section.content .welcomeArea .chatbotBox .chatBox .chatList{
  margin-bottom: 30px;
  margin-top:12px;
  text-align: left;
}
section.content .welcomeArea .chatbotBox .chatBox .btnBox {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 6px;
}

section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1) {
  width: 70%;
  max-width: 300px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

section.content .chatbotArea ,
section.content .chatbotArea iframe {
  width: 100%;
  height: 100%;
}



@media only screen and (min-width:1081px) {
  @media only screen and (min-height:651px) {

    body.readme::before{
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      right: 0;
      top: 0;
      background-color: #000;
      opacity: .6;
      z-index: 1;
    }


    body.readme nav,
    body.readme nav .contentArea, 
    body.readme nav .contentArea .bottomBox {
      overflow: unset;
    }
    body.readme nav .titleArea,
    body.readme nav .titleArea .btn,
    body.readme nav .titleArea .control .logo,
    body.readme nav .topBox > .chatList:nth-child(2),
    body.readme nav .topBox > .chatList:nth-child(4),
    body.readme nav .contentArea .bottomBox,
    body.readme .sortBox,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1),
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)
    {
      z-index: 5;
      position: relative;
    }
      body.readme nav .titleArea,
      body.readme nav .topBox > .chatList:nth-child(2),
      body.readme nav .topBox > .chatList:nth-child(4),
      body.readme .sortBox,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList
      {
        background-color: #fff;
      }
      body.readme nav .titleArea .btn::before,
      body.readme nav .titleArea .control .logo::before,
      body.readme nav .topBox > .chatList:nth-child(2)::before,
      body.readme nav .topBox > .chatList:nth-child(4)::before,
      body.readme nav .contentArea .bottomBox::before,
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::before
      {
        z-index: 2;
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        border: 3px solid var(--color-primary);
        width: calc(100% + 10px);
        height: calc(100% + 10px);
        border-radius: 12px;
        box-shadow: 0 10px 15px rgba(0,0,0,.2);
      }
      
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::before
      {
        border-color: var(--color-orange1);;
      }
      body.readme nav .topBox > .chatList:nth-child(2)::before,
      body.readme nav .topBox > .chatList:nth-child(4)::before,
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::before
      {
        
        height: calc(100% + 20px);
      }
      body.readme nav .topBox > .chatList:nth-child(2)::before,  
      body.readme nav .topBox > .chatList:nth-child(4)::before,  
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before
      {

        background-color: #fff;
        z-index: -1;
        width: calc(100% + 20px);
        border-radius: 20px;

      }

    @font-face {
      font-family: 'HakgyoansimDunggeunmisoTTF-R';
      src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimDunggeunmisoTTF-R.woff2') format('woff2');
      font-weight: 500;
      font-style: normal;
    }
    body.readme nav .titleArea .btn::after,
    body.readme nav .titleArea .control .logo::after,
    body.readme nav .topBox > .chatList:nth-child(2)::after,
    body.readme nav .topBox > .chatList:nth-child(4)::after,
    body.readme nav .contentArea .bottomBox::after,
    body.readme .sortBox::after,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::after,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::after,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::after
    {
      z-index: 5;
      position: absolute;
      right:7.5px;
      top: 50%;
      transform: translate(100%, -50%);
      white-space: nowrap;
      font-family: 'HakgyoansimDunggeunmisoTTF-R',Pretendard, sans-serif;
      font-size: 1.8rem;
      line-height: 2.2rem;
      font-weight: 300;
      white-space:pre; 
      text-align: left;
      color: #fff;
    }

      body.readme nav .titleArea .btn::after{  content: '🟡 우리아이ᴬᴵ와 \A      일반적인 학습 대화를 할 수 있어요';}
      body.readme nav .titleArea .control .logo::after{  content: '🟡 누르면 처음 화면으로 이동해요';}
      body.readme nav .topBox > .chatList:nth-child(2)::after{  content: '🟡 우리아이ᴬᴵ에서 추천하는\A      학습 주제입니다.';}
      body.readme nav .topBox > .chatList:nth-child(4)::after{  content: '🟡 최근에 사용한\A      학습 주제입니다.';}
      body.readme nav .contentArea .bottomBox::after{  
        content: '🟡 우리아이ᴬᴵ로\A      학습할 수 있는\A      101종의 학습 콘텐츠를\A      과목별로 확인할 수 있어요';
        top: 10px;
        transform: translateX(100%);
      }
      body.readme .sortBox::after,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::after,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::after 
      {
        /* right: 7.5px; */
      }
      body.readme .sortBox::after{  content: '🟠 우리아이ᴬᴵ는 과목별로\A      학습 주제를 선택할 수 있어요.';}
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::after{  content: '🟠 카드속 우리아이ᴬᴵ를\A      선택하면 해당 주제로\A      학습대화를 할 수 있어요.';}
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::after {  
        content: '우리아이ᴬᴵ와 🟠\A일반적인 학습 대화를 할 수 있어요     ';
        right: unset;
        left: 7.5px;
        transform: translate(-100%, -50%);
        text-align: right;

      }
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::after {      content: '🟠 새로운 우리아이ᴬᴵ\A       학습 주제를 추천해줘요';  }

  }
}