@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    /* font-size: 30px; */
}

.contaner
{  
    height: 100%;
    display: flex;
    flex-wrap: wrap;  
    grid-gap: 10px;    
    align-items: center;
    justify-content: center;
}
.contaner.zoom
{
    /* grid-template-rows: 350px; */
}
/* 기본사이즈 아이템 */
.contaner .item 
{        
    position: relative;
    width: 350px;
    height: 280px;
    background: #51446e;
    border-radius: 20px;
    order: 2;
}
/* 줌된 하위아이템 */
.contaner.zoom .item 
{
    position: relative;
    width: 210px;
    height: 160px;
    background: #51446e;
    border-radius: 10px;
}
/* 줌된 대상 아이템 */
.contaner .item.zoom
{
    width: 640px;         
    height: 480px;
    margin-left: calc((100% - 800px)/2);
    margin-right: calc((100% - 800px)/2);
    order: 1;
}

.item-user
{
    position: absolute;
    top: 10px;
    left: 10px;
    color: #7f71a0;
    padding: 2px;
    margin: 2px;
    font-size: 15px;    
    background-color: rgb(67, 48, 68);
    margin-right: 5px;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 4px;
    border: solid 1px #000;
}

/* 기본레이아웃 */
.main-contaner
{
    padding: 10px;
    /* height: 100vh;
    border: 10px solid #52d87a; */
    min-height: 100vh;
    background: #3f3752;
    display: grid;
    grid-template-areas: 
    "header header"
    "main chat"
    "footer footer";
    grid-template-rows: 40px 1fr 20px;
    grid-template-columns: 1fr 0px;
}

.main-contaner.chat
{
    min-height: 100vh;
    background: #3f3752;
    display: grid;
    grid-template-areas: 
    "header header"
    "main chat"
    "footer footer";
    grid-template-rows: 40px 1fr 20px;
    grid-template-columns: 1fr 350px;
}
/* @media (min-width: 768px) {
    .main-contaner.chat
    {
        grid-template-columns: 1fr 300px;
    }
} */
.main-item 
{
    counter-reset: itemcount;
    /* background-color: #ccc;
    border: 2px solid #f39d7e;*/
    padding-left: 10px; 
    padding-right: 10px;
}

.main-item1
{
   grid-area: header;
   /* width: var(--app-width);    */
   width: 100%;
   padding-right: 10px;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.topmenu i
{
    cursor: pointer;
    margin: 0 10px;
}

.room-title
{
    position: relative;
    display: flex;
    justify-content: start;
    align-items: center;
}

.main-item2
{
    display: none;
    grid-area: nav;
}
.main-item3
{
    grid-area: main;
}
.main-item4
{
    display: none;
    grid-area: chat;    
}
.main-item4.chat
{
    width: 350px;
    padding: 5px;
    display: block;
    grid-area: chat;
}
.main-item5
{
    grid-area: footer;
}

.item-dropdown
{
    padding: 5px;
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}

.dropdown.no-arrow
{
    position: relative;
    display: flex;
}

.item-menu
{
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.item-dropdown
{
    position: relative;    
    display: flex;
    justify-content: space-between;
    align-items: flex-end;    
}
.item-button
{
    position: relative;
    display: grid;
    justify-content: start;
    align-items: start;
}
.item-camarea
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;    
    overflow: hidden;
    /* background: url('assets//img/bg.jpg') center / cover no-repeat;  */
    border-radius: 20px;
}
.item-camarea img
{
    width: 100%;
    /* height: 100%; */
    
}

.font-style1
{
    color: #fff;
    font-size: 16px;
}

.font-style2
{
    color: rgb(145, 145, 145);
    font-size: 16px;
}

.btn-circle.btn-sm {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}

.dropdown-menu.shadow
{
    min-width: 180px;
    /* z-index: 3; */
}

.cst-tag-info {
    color: green;
    padding: 2px;
    margin: 2px;
    font-size: 15px;    
    background-color: lawngreen;
    margin-right: 5px;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 4px;
    border: solid 1px #000;
}

.chat-btn-area
{
    position: relative;
}
.btn-chat
{
    font-size: 10px;
    color: #fff;
    background-color: rgb(141, 123, 161);
}
.btn-chat:hover
{
    color: #9826b4;
}

/* 메시지창1 */
.chat-box 
{
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
    background-color: #51446e;
    /* /display: grid;
    /* align-items: end; */
    padding: 5px;
    border-radius: 5px;
    overflow-y: auto;
    overflow-x: hidden;
}
.chat-text
{
  font-size: 12px;   
  padding: 5px;   
}
.chat-input
{    
    display: flex;
    padding: 10px;    
    /* display: grid;
    align-items:center; */
}

.chat-input input
{    
    width: 100%;
    outline: none;
    border: none;
    background: #fff;
    padding: 6px;
    height: 38px;
    /* border-radius: 30px; */
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;

    font-size: 14px;
    padding-left: 20px;
    padding-right: 10px;
}

.chat-input input::placeholder
{
    color: #bbb;
}

.chat-input i 
{
    position: absolute;
    right: 19px;
    bottom: 18px;
    font-size: 2em;
}

.send-btn 
{
    width: 38px;
    height: 38px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    background: #fff;
    cursor: pointer;
}
.chat-other
{
    margin-bottom: 5px;
    padding: 5px; 
    background-color: bisque;
    border-radius: 5px;
}
.chat-me
{
    color: #fff;
    margin-bottom: 5px;
    padding: 5px; 
    background-color: blueviolet;
    border-radius: 5px;
}
.chat-other i, .chat-me i
{
    font-size: 20px;
}

.item-video 
{
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }

.show {display:block;}

/* 모바일사이즈 */

@media (max-width: 576px) {   
    .topmenu {
        display: none;
    }
    .room-title .maintitle
    {        
        display: none;
    }
    .btn-zoom
    {
        display: none;
    }
    .main-item4.chat
    {
        grid-area: chat;
        display: block;
        position: absolute;
        width: 90%;
        height: 100vh;
        top: 50px;
        right: 0;     
        overflow: hidden;   
    }
    .main-contaner
    {
        padding: 10px;
        width: 100%;
        min-height: 100vh;
        background: #3f3752;
        display: grid;
        grid-template-areas: 
        "header header"
        "main chat"
        "footer footer";
        grid-template-rows: 40px 1fr 20px;
        grid-template-columns: 1fr;
    }
    .main-contaner.chat
    {
        min-height: 100vh;
        background: #3f3752;
        display: grid;
        grid-template-areas: 
        "header header"
        "main chat"
        "footer footer";
        grid-template-rows: 40px 1fr 20px;
        grid-template-columns: 1fr;
    }
    .contaner .item 
    {        
        position: relative;
        width: 98%;
        height: 250px;
        background: #51446e;
        border-radius: 20px;
        order: 2;
    }
}

/* 메시지창2 (신) */

.chatBox
{
    /* position: relative;
    width: 100%;
    height: calc(100% - 120px);
    padding: 50px; */
    /* overflow-y: auto; */
    position: relative;
    width: 100%;
    /* height: calc(100vh - 60px); */
    background-color: #51446e;
    /* display: grid; */
    /* align-items: end; */
    padding: 10px;
    border-radius: 5px;
    overflow-y: auto;
    overflow-x: hidden;
}
/* .chatBox::before
{
    content: '';
    position: absolute;   
    background-image: url(assets/img/pattern.png);        
    opacity: 0.08;
    top:0px; bottom: 0px;
    height: 100%;
    background-repeat: repeat;
    position: absolute;
    overflow-x: scroll;
} */

.message 
{
    position: relative;
    display: flex;
    width: 100%;
    margin: 5px 0;
}
.message p
{
    position: relative;
    right: 0;
    text-align: right;
    max-width: 65%;
    padding: 10px;
    background: #dcf8c6;
    border-radius: 10px;
    font-size: 0.9em;

}
.message p::before
{
    content: '';
    position: absolute;
    top: 0;
    right: -12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #dcf8c6 0%, #dcf8c6 50%, transparent 50%, transparent);
}
.message p span
{
    display: block;
    margin-top: 5px;
    font-size: 0.85;
    opacity: 0.5;
}
.my_message
{
    justify-content: end;
}
.frnd_message
{
    justify-content: start;
}
.frnd_message p
{
    background: #fff;
    text-align: left;
}
.message.frnd_message p::before
{
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(235deg, #fff 0%, #fff 50%, transparent 50%, transparent);
}
.usericon
{
    font-size: 1.2em;
    margin-right: 15px;
}
.usercount
{
    position: absolute;
    background: #0fd755;
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75em;
    bottom: 5px;
    left: 33px;
}

/* 스크롤바 */
.cst-scroll-style {
    scrollbar-color: #d4aa70 #e4e4e4;
    scrollbar-width: thin;
  }
  
  .cst-scroll-style::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  .cst-scroll-style::-webkit-scrollbar-track {
    background-color: #9c8f9e;
    border-radius: 100px;
  }
  
  .cst-scroll-style::-webkit-scrollbar-thumb {
    border-radius: 100px;
    border: 1px solid transparent;
    background-clip: content-box;
    background-color: #53488c;
  }
  
  .cst-scroll-x-only {
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .cst-scroll-y-only {
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .cst-tab-style {
    background-color: #fff;
    color: #000;
    padding: 5px 16px 10px 16px;
    border-radius: 5px;
    margin-top: 2px;
  }
  
  .cst-tab-style-link {
    background-color: #000000;
    color: #5fbaff;
    padding: 5px 16px 2px 16px;
    margin-top: 2px;
    text-decoration: blink;
  }
  
  .cst-tab-style-link hover {
    background-color: #000000;
    color: #ff5f5f;
    margin-top: 2px;
    border-color: #505e6c;
    border-top: solid 1px #f1f7fc;
  }
  
  .cst-sample-text {
    cursor: pointer;
    margin-bottom: 0px;
    font-size: 13px;
  }
  

  .item .item-menu .fullscreen
  {
    display: block;  
  }

  .fullscreenoff
  {
    display: none;  
  }

  /* 로그인페이지 */  
  .login-contaner 
  {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;

    background: #3f3752;

    @media not all and (hover:hover) {
        height: var(--app-height);
        width: var(--app-width);
    }
  }

.login-area
{
    width: 450px;
    height: 320px;    
    background: rgba(0,0,0,0.15);
    padding: 15px;    
}
.login-title
{
    display: flex;
    width: 100%;
    height: 40px;
    background: #51446e;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;

}
.login-body
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-img
{
    /* display: flex;
    width: 200px;
    height: 200px;
    justify-content: center;
    align-items: center; */
    margin-top: 30px;
}

.login-main
{
    text-align: center;
}

.login-main .id,
.login-main .pwd
{
    margin-top: 20px;
    width: 100%;
}
.login-main .id input,
.login-main .pwd input
{
    border: none;
    outline: none;
    width: 88%;
    height: 38px;
    font-size: 0.9em;
    border-radius: 30px;
    padding-left: 20px;
}

.login-main .id input::placeholder,
.login-main .pwd input::placeholder
{
    color: #bbb;
}

.login-main .btn-area 
{    
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    padding-left: 25px;
    width: 88%;    
}

.login-main .login-button
{
    width: 100%;
    height: 38px;
    border-radius: 5px;  
    padding-top: 10px;  
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    font-size: 0.9em;
    color: #fff;
}

.login-main .login-button:hover
{
    background: rgba(0,0,0,0.2);
    color: sandybrown;
}

.login-img .menu
{
    position: relative;
    width: 180px;
    height: 180px;
    /* background: #333; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-img .menu li
{    
    left: 0;
    position: absolute;
    list-style: none;
    transform-origin: 90px;
    transition: 0.5s;
    transition-delay: calc(0.1s * var(--i));
    transform: rotate(0deg) translateX(80px);
}

.login-img .menu.active li
{
    transform: rotate(calc(360deg / 8 * var(--i)));
}

.login-img .menu li a
{
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: rotate(calc(360deg / -8 * var(--i)));
    box-shadow: 0 3px 4px rgba(0,0,0,0.15);
    color: #111;
    transition: 0.5s;
}

.login-img .menu li a:hover
{
    color: #ff1252;
}

.login-img .menu .toggle
{
    display: flex;
    position: absolute;
    width: 60px;
    height: 60px;
    background: #fff;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 4px rgba(0,0,0,0.15);
    font-size: 1em;
    transition: transform 1.25s;
}

.login-img .menu.active .toggle
{
    transform: rotate(315deg);
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
    from {
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes rotating {
    from {
      -ms-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -ms-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  .rotating {
    -webkit-animation: rotating 10s linear infinite;
    -moz-animation: rotating 10s linear infinite;
    -ms-animation: rotating 10s linear infinite;
    -o-animation: rotating 10s linear infinite;
    animation: rotating 10s linear infinite;
  }

  .footer
  {
      margin-top: 10px;
      text-align: center;
      font-size: 0.8em;
      color: #fff;
  }

  @media (max-width: 400px) {   
    /* 로그인페이지 모바일환경 */
    .login-img .menu
    {
        width: 160px;
        height: 160px;
    }      
    .login-img .menu li
    {    
        transform-origin: 80px;
    }
    .login-img .menu li a
    {
        width: 30px;
        height: 30px;
    }
  }


/* 화상회의 장치정보창 */
.modal-body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.info-cam {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.camera-area .webcam {
    width: 280px;
    height: 210px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 4px rgba(0,0,0,0.15);
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg); /* Safari and Chrome */
    -moz-transform: rotateY(180deg); /* Firefox */

}

.capter-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    width: 100%;
    height: 38px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    color: rgb(110, 14, 14);
    border: 1px solid rgb(110, 14, 14);
    transition: 0.5s;
}

    .capter-btn ion-icon {
        font-size: 1.5em;
        margin-right: 5px;
    }

    .capter-btn:hover {
        background: #62baea;
        color: #fff;
        border: 1px solid #62baea;
    }

.info-area {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: start;
    align-items: baseline;
}

.avatar-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50%;
}

    .avatar-area h2 {
        display: flex;
        align-items: center;
        height: 30px;
        font-size: 1.2em;
        background: #f1f7fc;
        color: #000000;
        border-radius: 5px;
        padding-left: 10px;
    }

.avatar-btn-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-area img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 5px;
}

.device-info input {
    position: block;
    /* top: 0;
    left: 0; */
    width: 250px;
    height: 35px;
    cursor: pointer;
    background: #fff;
    border: none;
    outline: none;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 12px 20px;
    border-radius: 10px; */
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.device-info ion-icon {
    margin-top: 5px;
    font-size: 1.5em;
    margin-right: 10px;
}

.nickname,
.mic-opt,
.camera-opt,
.screen-opt {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-info .mic-opt ion-icon,
.device-info .camera-opt ion-icon {
    margin-top: 5px;
    font-size: 1.8em;
    margin-right: 5px;
    margin-left: 10px;
}


.dropdown .option {
    position: absolute;
    top: 33px;
    width: 100%;
    background: #fff;
    box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
}

.dropdown.active .option {
    z-index: 20;
    display: block;
}

.dropdown .option div {
    padding: 6px 10px;
    cursor: pointer;
}

    .dropdown .option div:hover {
        background: #62baea;
        color: #fff;
    }

    .dropdown .option div ion-icon {
        position: relative;
        top: 4px;
        font-size: 1.2em;
    }

.dropdown {
    width: 100%;
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
}

    .dropdown::before {
        content: '';
        position: absolute;
        right: 20px;
        top: 15px;
        z-index: 10;
        width: 8px;
        height: 8px;
        border: 2px solid #333;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(-45deg);
        transition: 0.5s;
        pointer-events: none;
    }

    .dropdown.active::before {
        transform: rotate(-225deg);
        top: 20px;
    }

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: rgba(0, 0, 0, 0.2);
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgba(0, 0, 0, 0.2);
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(0, 0, 0, 0.2);
}

/* 화상회의 장치정보창 모바일환경 */
@media (max-width: 626px) {
    .modal-body {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .device-info input {
        width: 100%;
    }

    .camera-area .webcam {
        width: 160px;
        height: 95px;
    }

    .capter-btn {
        margin-bottom: 5px;
        height: 25px;
    }

    .nickname ion-icon,
    .screen-opt ion-icon {
        margin-top: 5px;
        font-size: 1.7em;
        margin-right: 6px;
        margin-left: 13px;
    }

    .info-cam {
        margin-right: 0;
    }
}

@media (max-width: 280px) {
    .capter-btn {
        width: 90%;
        font-size: 0.8em;
        margin-bottom: 2px;
        overflow: hidden;
    }

    .camera-area {
        display: flex;
        justify-content: center;
    }

        .camera-area .webcam {
            width: 100%;
            height: 80%;
        }
}
/* 화상회의 장치정보창 모바일환경 */

/* 화상회의 장치정보창 */