*, *:before, *:after {
  box-sizing: inherit;
}


html {
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background: #005e54 url("../../images/background.jpg") repeat;
  min-height: calc(var(--vh, 1vh) * 100);
  position: relative;
  
}

.page {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marvel-device .screen {
  text-align: left;
}

.screen-container {
  height: 100%;
}

/* Status Bar */

.status-bar {
  height: 25px;
  background: #004e45;
  color: #fff;
  font-size: 14px;
  padding: 0 8px;
}

.status-bar:after {
  content: "";
  display: table;
  clear: both;
}

.status-bar div {
  float: right;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 0 0 8px;
  font-weight: 600;
}

/* Chat */

.chat {
  height: calc(100% - 69px);
}

.chat-container {
  height: 100%;
}

/* User Bar */

.user-bar {
  height: 55px;
  background: #005e54;
  color: #fff;
  padding: 0 8px;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.user-bar:after {
  content: "";
  display: table;
  clear: both;
}

.user-bar div {
  float: left;
  transform: translateY(-50%);
  position: relative;
  top: 50%;
}

.user-bar .actions {
  float: right;
  margin: 0 0 0 20px;
}

.user-bar .actions.more {
  margin: 0 12px 0 32px;
}

.user-bar .actions.attachment {
  margin: 0 0 0 30px;
}

.user-bar .actions.attachment i {
  display: block;
  transform: rotate(-45deg);
}

.user-bar .avatar {
  margin: 0 0 0 5px;
  width: 36px;
  height: 36px;
}

.user-bar .avatar img {
  border-radius: 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  display: block;
  width: 100%;
}

.user-bar .name {
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  margin: 0 0 0 8px;
  overflow: hidden;
  white-space: nowrap;
  width: 110px;
}

.user-bar .status {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Conversation */

.conversation {
  height: calc(100% - 12px);
  position: relative;
  z-index: 0;
}

.conversation ::-webkit-scrollbar {
  transition: all .5s;
  width: 5px;
  height: 1px;
  z-index: 10;
}

.conversation ::-webkit-scrollbar-track {
  background: transparent;
}

.conversation ::-webkit-scrollbar-thumb {
  background: #b3ada7;
}

.conversation .conversation-container {
  height: calc(100% - 68px);
  box-shadow: inset 0 10px 10px -10px #000000;
  overflow-x: hidden; 
  padding: 0 16px;
  margin-bottom: 5px;
}

.conversation .conversation-container:after {
  content: "";
  display: table;
  clear: both;
}

/* Messages */

.message {
  color: #000;
  clear: both;
  line-height: 18px;
  font-size: 15px;
  padding: 8px;
  position: relative;
  margin: 8px 0;
  max-width: 85%;
  word-wrap: break-word;
  z-index: -1;
}

.message:after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}

.metadata {
  display: inline-block;
  float: right;
  padding: 0 0 0 7px;
  position: relative;
  bottom: -4px;
}

.metadata .time {
  color: rgba(0, 0, 0, .45);
  font-size: 11px;
  display: inline-block;
}

.metadata .tick {
  display: inline-block;
  margin-left: 2px;
  position: relative;
  top: 4px;
  height: 16px;
  width: 16px;
}

.metadata .tick svg {
  position: absolute;
  transition: .5s ease-in-out;
}

.metadata .tick svg:first-child {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transform: perspective(800px) rotateY(180deg);
          transform: perspective(800px) rotateY(180deg);
}

.metadata .tick svg:last-child {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transform: perspective(800px) rotateY(0deg);
          transform: perspective(800px) rotateY(0deg);
}

.metadata .tick-animation svg:first-child {
  -webkit-transform: perspective(800px) rotateY(0);
          transform: perspective(800px) rotateY(0);
}

.metadata .tick-animation svg:last-child {
  -webkit-transform: perspective(800px) rotateY(-179.9deg);
          transform: perspective(800px) rotateY(-179.9deg);
}

.message:first-child {
  margin: 16px 0 8px;
}

.message.received {
  background: #fff;
  border-radius: 0px 5px 5px 5px;
  float: left;
}

.message.received .metadata {
  padding: 0 0 0 16px;
}

.message.received:after {
  border-width: 0px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
  top: 0;
  left: -10px;
}

.message.sent {
  background: #e1ffc7;
  border-radius: 5px 0px 5px 5px;
  float: right;
}

.message.sent:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #e1ffc7;
  top: 0;
  right: -10px;
}

/* Compose */

.conversation-compose {
  display: flex;
  flex-direction: row;
  align-items: center;   /* ajuste: melhor alinhamento vertical */
  position: fixed;
  overflow: hidden;
  height: 50px;
  width: 100%;
  z-index: 2;
  bottom: 0;     /* garante contraste com fundo */
  box-sizing: border-box;
}

.conversation-compose div,
.conversation-compose input {
  background: #fff;
  height: 100%;
}

.conversation-compose .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 5px 0 0 5px;
  flex: 0 0 auto;
  margin-left: 8px;
  width: 40px;           /* reduzido p/ caber melhor em telas pequenas */
}

.conversation-compose .input-msg {
  -webkit-appearance: none;
  -webkit-border-radius: 0;
  flex: 1 1 auto;        /* 🔑 agora cresce/encolhe */
  font-size: 16px;
  margin: 0;
  outline: none;
  width: 100%;           /* ocupa largura disponível */
  min-width: 0;          /* 🔑 evita estourar */
  border: 1px solid #ffffff;
  padding: 0 8px;
  box-sizing: border-box;
}

.conversation-compose .photo {
  flex: 0 0 auto;
  border-radius: 0 0 5px 0;
  text-align: center;
  position: relative;
  width: 40px;          /* reduzido também */
}

.conversation-compose .photo:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #fff;
  border-style: solid;
  position: absolute;
  width: 0;
  height: 0;
  content: "";
  top: 0;
  right: -10px;
}

.conversation-compose .photo i {
  display: block;
  color: #7d8488;
  font-size: 22px;
  transform: translate(-50%, -50%);
  position: relative;
  top: 50%;
  left: 50%;
}

.conversation-compose .send {
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
  margin: 0 8px;
  padding: 0;
  position: relative;
  outline: none;
  margin-top: 12px
}

.conversation-compose .send .circle {
  background: #008a7c;
  border-radius: 50%;
  color: #fff;
  position: relative;
  width: 44px;          /* ligeiramente menor */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.conversation-compose .send .circle i {
  font-size: 22px;
  margin-left: 5px;
}

/* Desktop: phone-like container */
@media (min-width: 769px) {
  .page {
    height: auto;
    padding: 20px;
    min-height: 100vh;
  }

  .screen-container {
    max-width: 420px;
    width: 100%;
    background: transparent;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.4);
    height: 85vh;
    max-height: 780px;
    position: relative;
  }

  .chat {
    height: 100%;
    background: url("../../images/background.jpg") repeat #005e54;
  }

  .conversation {
    height: calc(100% - 67px);
    display: flex;
    flex-direction: column;
  }

  .conversation .conversation-container {
    flex: 1;
    height: auto;
    overflow-y: auto;
  }

  .conversation-compose {
    position: relative;
    bottom: auto;
    flex-shrink: 0;
    margin-bottom: 0px;
  }
}

/* Small Screens */

@media (max-width: 768px) {
  .marvel-device.nexus5 {
    border-radius: 0;
    flex: none;
    padding: 0;
    max-width: none;
    overflow: hidden;
    height: 100%;
    width: 100%;
  }

  .marvel-device > .screen .chat {
    visibility: visible;
  }

  .marvel-device {
    visibility: hidden;
  }

  .marvel-device .status-bar {
    display: none;
  }

  .screen-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .conversation {
    height: calc(var(--height2) - 55px);
  }

 
  .conversation .conversation-container {
    height: calc(var(--height) - 130px);
  }

  .conversation-compose {
    bottom: 10px;
  }
}
.image-responsive {
  max-width: 100%;
}

.no-block {
  position: relative;
  z-index: 1;
}


.xh8yej3 {
    width: 100%;
}
.x1ey2m1c {
    bottom: 0;
}
.xhtitgo {
    z-index: 2;
}
.x17qophe {
    left: 0;
}
.x10l6tqk {
    position: absolute;
}

.xx3o462 {
    height: 15px;
}
.x78zum5 {
    display: flex
;
}
.x6s0dn4 {
    align-items: center;
}
.x1ncwhqj {
    font-size: .6875rem;
    color: #fff;
}

.x10l6tqk {
    position: absolute;
}
.xy1j3rs {
    bottom: 3px;
}
.xi8xln7 {
    left: 6px;
}
.x152skdk {
    line-height: 15px;
}
.x11uqc5h {
    z-index: 100;
}
.span-adjust {
  margin-left: 3px;
}
.div_image {
  position: relative;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s ease;
  
}

.play-button svg {
  animation: ripple 2s infinite;
  border-radius: 50%;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); /* Start with small, semi-transparent shadow */
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 0, 0, 0); /* Expand shadow and fade out */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); /* Return to original state */
  }
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.zmdi-refresh {
  animation: girar 2s linear infinite;
}

