@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:400,500,900&display=swap");
/* 폰트바꾸고 싶을때: https://www.daleseo.com/css-web-fonts/ */

body {
  height: 100vh;
}

.logo-img {
  width: 2rem;
  height: 2rem;
  margin-top: 0.4rem;
}


.logo h2 {
  color: #00B894;
  font-size: 2rem;
  margin: 0;
  font-family: 'Hi Melody', cursive;
  font-weight: bold;
}


.dropdown-toggle {
  color: #00B894;
}

.dropdown-toggle:hover {
  color: #008770;
}


.contact-header {
  display: flex;
  margin-top: 1rem;
  box-sizing: border-box;
  padding: 1.5rem;
  padding-bottom: 1rem;

  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;

  align-items: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 0rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);

}

.contact-header h2 {
  font-family: 'Red hat Display', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
}


.center {
  display: block;
  justify-content: center;
}


.contacts {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 2;
  box-sizing: border-box;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  background: #F7F7F7;
  box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), -1.5rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
  padding: 0.5rem 2.5rem 2.5rem 2.5rem;
}



.lowertitle {
  color: #666;
  font-size: small;
  margin-bottom: 0.5rem;
}

.pic {
  width: 3rem;
  height: 3rem;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.contact {
  position: relative;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  height: 4.5rem;
}




.contact:hover {
  background-color: #eee;
}



.contact .name {
  font-weight: bold;
  margin-bottom: 0.125rem;
}

.contact .message,
.contact .seen {
  font-size: 0.9rem;
  color: #999;
  box-sizing: inherit;
}

.contact .badge {
  box-sizing: border-box;
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  padding-top: 0.125rem;
  border-radius: 1rem;
  top: -0.4rem;
  left: 3rem;
  background: #333;
  color: white;
}



.fas {
  margin-right: -3.5rem;
}


.chat {
  position: relative;
  display: flex;
  padding-top: 1rem;
  flex-direction: column;
  height: 100%;
  
  z-index: 2;
  box-sizing: border-box;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  background: #F7F7F7;
  box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 0rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
}

.chat .contact.bar {
  top: -1rem;
  box-sizing: border-box;
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
  box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 0rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
}



.chat .chat-box {
  position: relative;
  flex-shrink: 2;
  overflow-y: auto;
  height: 63vh;
}

.chat .chat-box .time {
  font-size: 0.8rem;
  background: #ddd;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  color: #999;
  width: fit-content;
  margin: 1rem 0 0.5rem 0;
  text-align: center;

}

.chat .chat-box .chat-message {
  box-sizing: border-box;
  padding: 0.1rem 1rem;
  margin: 1rem 1rem 0rem auto;
  border-radius: 1.125rem 1.125rem 0 1.125rem;
  background: #333;
  color: white;
  min-height: 2.25rem;
  width: fit-content;
  max-width: 86%;
  box-shadow: 0 -2rem 2rem rgba(0, 0, 0, 0.02), 0.5rem 0 1rem rgba(0, 0, 0, 0.01), -0.5rem 0 1rem rgba(0, 0, 0, 0.01);
  font-size: small;
}

.chat .chat-box .chat-message.assistant {
  margin: 0.5rem;
  background: #fff;
  color: #333;
  border-radius: 1.125rem 1.125rem 1.125rem 0;
}

.chat .chat-box .chat-message .typing {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0rem;
  box-sizing: border-box;
  background: #ccc;
  border-radius: 50%;
}

.chat .chat-box .chat-message .typing.typing-1 {
  -webkit-animation: typing 3s infinite;
  animation: typing 3s infinite;
  margin-top: 0.4rem;
}

.chat .chat-box .chat-message .typing.typing-2 {
  -webkit-animation: typing 3s 250ms infinite;
  animation: typing 3s 250ms infinite;
}

.chat .chat-box .chat-message .typing.typing-3 {
  -webkit-animation: typing 3s 500ms infinite;
  animation: typing 3s 500ms infinite;
}


.chat .chat-input {
  display: flex;
  align-items: center;
  padding: 1rem 0.5rem 1rem 2.5rem;
  background-color: white;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}


.chat .chat-input i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: #666;
  cursor: pointer;
  transition: color 200ms;
}

.chat .chat-input i:hover {
  color: #333;
}

.chat .chat-input input {
  border: none;
  background-image: none;
  background-color: white;
  padding: 0.5rem 1rem 0.5rem 1rem;
  margin-right: 1rem;
  border-radius: 1.125rem;
  flex-grow: 2;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
  font-family: 'Red hat Display', sans-serif;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.chat .chat-input input:placeholder {
  color: #999;
}

@-webkit-keyframes typing {

  0%,
  75%,
  100% {
    transform: translate(0, 0.25rem) scale(0.9);
    opacity: 0.5;
  }

  25% {
    transform: translate(0, -0.25rem) scale(1);
    opacity: 1;
  }
}

@keyframes typing {

  0%,
  75%,
  100% {
    transform: translate(0, 0.25rem) scale(0.9);
    opacity: 0.5;
  }

  25% {
    transform: translate(0, -0.25rem) scale(1);
    opacity: 1;
  }
}


.pic.rogers {
  background-image: url("https://images.unsplash.com/photo-1573865526739-10659fec78a5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1015&q=80");
}

.pic.stark {
  background-image: url("https://images.unsplash.com/photo-1490650034439-fd184c3c86a5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80");
}

.pic.banner {
  background-image: url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1443&q=80");
}

.pic.thor {
  background-image: url("https://images.unsplash.com/photo-1561948955-570b270e7c36?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=901&q=80");
}

.pic.danvers {
  background-image: url("https://images.unsplash.com/photo-1547955922-85912e223015?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=987&q=80");
}


.rightAds {
  
}

@media screen and (max-width: 1024px) {
  /* 모바일과 태블릿을 위한 스타일 */
  .rightAds {
    max-width: 100%;
  }
}

@media screen and (min-width: 1025px) {
  /* 데스크탑을 위한 스타일 */
  .rightAds {
    max-width: 0;
  }
}



.empty {
  padding: 0.9rem;
}

.emptyy {
  margin: 1rem;
  padding: 1.5rem;
}

.footer{
  background-color: #E5FF94;
  padding-bottom: 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  background-color: white;
  margin-top: 6rem;
}

.footer-content h2 {
  color: #00B894;
  font-size: 1.9rem;
  margin: 0;
  font-family: 'Hi Melody', cursive;
}

.footer-content p {
  font-family: "Red Hat Display", sans-serif;
  font-size: small
}

.footer-section {
  flex: 1;
  text-align: left;
  padding: 1rem;
}

.footer-section h3 {
  color: #555;
  font-size: 20px;
  margin: 0 0 1rem 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  font-size: small;
}


.footer-section ul li a {
  color: #666;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #333;
}

.footer-section .footer-section {
  font-size: small;
  color: #ccc;
  padding: 0;
}


.footer-content .logo {
  width: 3rem;
  height: 3rem;
  margin: 0 0 1rem 0;
}

.footer-bottom {
  text-align: left;
  background-color: white;
}


p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mention{
color:#333;
font-size: smaller;
}

.kakao-chat-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}





@media (max-width: 768px) {
  .keyboard-up .chat-box {
      height: 50vh;
  }
  .keyboard-up .chat-input {
    background-color: pink;
    }
}



@media only screen and (min-width: 768px) {
  /* Styles for screens wider than 768px (typically non-mobile devices) */
  .chat-input {
      position: sticky;
      bottom: 0;
  }
  
  .chat .chat-input {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem 1rem 2.5rem;
    background-color: white;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }
}




@media only screen and (max-width: 768px) {
.chat .chat-box {
  position: relative;
  flex-shrink: 2;
  overflow-y: auto;
  height: 53vh;
}
}