*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    transition: .2s ease;
}
:root{
    --primary-color: rgb(223, 197, 255);
    --secondary-color: rgb(0, 41, 53);
}

body{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
}

section{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #111;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: -1;
}

section .row{
    position: relative;
    width: 100%;
    top: -50%;
    display: flex;
    padding: 10px 0;
    white-space: nowrap;
    font-size: 64px; 
    transform: rotate(-30deg);

}

ion-icon{
    color: rgba(0,0,0,0.5);
    transition: .5s;
    padding: 0 5px;
    user-select: none;
    cursor: default;
    transition: 1s ease;
}

ion-icon:hover{
    transition: 0s;
    color: #0f0;
    text-shadow: 0 0 120px #0f0;
    background: transparent;
}

section .row div{
    animation: animate1 80s linear infinite;
    animation-delay: -80s;
}

section .row div:nth-child(2){
    animation: animate2 80s linear infinite;
    animation-delay: -40s;
}

@keyframes animate1 {
    0%{transform: translateX(100%);}
    100%{transform: translateX(-100%);}
}

@keyframes animate2 {
    0%{transform: translateX(0%);}
    100%{transform: translateX(-200%);}
}

section .row:nth-child(even) div{
    animation: animate3 80s linear infinite;
    animation-delay: -80s;
}

section .row:nth-child(even) div:nth-child(2){
    animation: animate4 80s linear infinite;
    animation-delay: -40s;
}

@keyframes animate3 {
    0%{transform: translateX(-100%);}
    100%{transform: translateX(100%);}
}

@keyframes animate4 {
    0%{transform: translateX(-200%);}
    100%{transform: translateX(0%);}
}











.chat-container{
    width: 100%;
    /* height: 82%; */
    height: calc(100vh - 100px);
    /* background: linear-gradient(to right, #E9D2F4, #f8e9bb); */
    background: transparent;
    /* backdrop-filter: blur(5px); */
    padding: 20px;
    /* padding-bottom: 100px; */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    gap:20px;
    font-size: 20px;
    overflow: auto;
    /* box-shadow: 2px 2px 10px rgba(23, 23, 23, 0.827); */
}

/* For Chrome, Safari, and Edge */
/* .chat-container::-webkit-scrollbar {
    width: 8px;
  }
  .chat-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
  }
  .chat-container::-webkit-scrollbar-thumb:hover {
    background: #555;
  } */

#aiImage, #userImage{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter:drop-shadow( 2px 2px 10px black);
}
#aiImage{
    animation: loadingC 5s linear infinite;
}

.user-chat-box, .ai-chat-box{
    display: flex;
    gap: 10px;
}
.ai-chat-box{
    padding-right: 30px;
}
.user-chat-box{
    flex-direction: row-reverse;
    padding-left: 30px;
}

.user-chat-area, .ai-chat-area{   
    display: flex;
    flex-direction: column;
    color: white;
    padding: 15px;
    box-shadow: 2px 2px 10px black; 
    border: 2px solid rgb(255, 234, 117);
}
.user-chat-area{
    color: rgb(46, 46, 46);
    background: var(--primary-color);
    border-radius: 40px 0px 40px 40px;
}

.chooseimg{
    /* width: 30%; */
    margin-top: 10px;
    max-width: 100%;
    max-height: 200px;
    border-radius: 30px;
}

.ai-chat-area{
    /* background: var(--secondary-color); */
    backdrop-filter: blur(5px);
    border-radius: 0px 40px 40px 40px;
}

.elemento__animacao--detalhe {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.639);
  }

  .elemento__animacao-3 .elemento__animacao--detalhe:nth-last-child(1) {
    animation: loadingC 0.6s 0.1s linear infinite;
  }
  .elemento__animacao-3 .elemento__animacao--detalhe:nth-last-child(2) {
    animation: loadingC 0.6s 0.2s linear infinite;
  }
  .elemento__animacao-3 .elemento__animacao--detalhe:nth-last-child(3) {
    animation: loadingC 0.6s 0.3s linear infinite;
  }

  .letra__especifica13 {
    animation-delay: 1.92s;
  }

  @keyframes loadingC {
    0% {
      transform: translate(0, -7px);
    }
    50% {
      transform: translate(0, 5px);
    }
    100% {
      transform: translate(0, -7px);
    }
  }

  .prompt-area{
    width: 100%;
    /* height: 18%; */
    /* background-color: rgba(255, 207, 131, 0.766); */
    /* backdrop-filter: blur(10px); */
    /* padding: 20px; */
    /* padding-bottom: 80px; */
    display: flex;
    height: 60px;
    background: transparent;
    /* backdrop-filter: blur(5px); */
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 40px;
    gap:10px;
    border-radius: 20px 20px 20px 20px;
    margin: 0;
    /* box-shadow: 2px -2px 10px  black; */
}

.prompt-area input{
    width: 50%;
    /* height: 70px; */
    background-color: rgb(255, 252, 241);
    outline: none;
    border:none;
    border-radius: 50px;
    padding: 15px;
    color: black;
    font-size: 20px;
    border: 2px solid rgb(255, 234, 117);
    box-shadow: 2px 2px 10px black;
}
#imagePreview {
    /* margin-top: 20px; */
    max-width: 100%;
    max-height: 70px;
}
.prompt-area button{
    width: clamp(40px, 10vw, 60px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--primary-color);
    border:none;
    box-shadow: 2px 2px 10px black;
    cursor: pointer;
    transition: all 0.5s;
}
.prompt-area button:hover{
    /* background-color: var(--primary-color); */
    color: white;
}
.load{
    filter:drop-shadow( 2px 2px 10px black)
}
.choose{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
#image, #submit, #startBtn, #fullText{
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: clamp(18px, 10vw, 30px); */
    background: orange;
    color: rgb(46, 46, 46);
    transition: none;
}

#image:hover, #submit:hover, #startBtn:hover, #fullText:hover{
    color: white;
    background: var(--secondary-color);
}

#submit ion-icon, #startBtn ion-icon, #fullText ion-icon{
    color: white;
    font-size: clamp(12px, 10vw, 30px);
    
}


html.modal-active,
body.modal-active {
  overflow: hidden;
}

#modal-container {
  position: fixed;
  display: table;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  transform: scale(0);
  z-index: 1;
  color: #222222;
}



#modal-container.two {
  transform: scale(1);
}
#modal-container.two .modal-background {
  background: rgba(0, 0, 0, 0);
  animation: fadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.two .modal-background .modal {
  opacity: 0;
  animation: scaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.two + .content {
  animation: scaleBack 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.two.out {
  animation: quickScaleDown 0.85s linear forwards;
}
#modal-container.two.out .modal-background {
  animation: fadeOut 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.two.out .modal-background .modal {
  animation: scaleDown 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.two.out + .content {
  animation: scaleForward 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}







#modal-container .modal-background {
  display: table-cell;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  vertical-align: middle;
}
#modal-container .modal-background .modal {
  background: #211f23;
  /* width: 226px; */
  /* height: 162px; */
  width: 70%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  font-weight: 300;
  position: relative;
  padding: 20px;
}

#modal-container .modal-background .modal .close{
    all: unset;
  padding: 5px;
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 18px;
}

#modal-container .modal-background .modal .close ion-icon{
    color: white;
    font-size: 24px;;
}

#modal-container .modal-background .modal .close ion-icon:hover{
    color: orange;
}

#modal-container .modal-background .modal .close:hover{
    color: orange;
    cursor: pointer;
}

#modal-container .modal-background .modal #sendBtn{
    all: unset;
    background-color: orange;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
}

#modal-container .modal-background .modal #sendBtn:hover{
    background: var(--secondary-color);
    color: white;
}

#modal-container .modal-background .modal textarea{
  padding: 5px;
  font-size: 16px;
  width: 100%;
  height: 200px;
  border-radius: 10px;
}
#modal-container .modal-background .modal h2 {
  font-size: 25px;
  line-height: 25px;
  margin-bottom: 15px;
  color: #f9f9f9;
}
#modal-container .modal-background .modal p {
  font-size: 18px;
  line-height: 22px;
  color: rgb(249 249 249 / 50%);
}




@keyframes fadeIn {
  0% {
    background: rgba(0, 0, 0, 0);
  }
  100% {
    background: rgba(0, 0, 0, 0.7);
  }
}
@keyframes fadeOut {
  0% {
    background: rgba(0, 0, 0, 0.7);
  }
  100% {
    background: rgba(0, 0, 0, 0);
  }
}
@keyframes scaleUp {
  0% {
    transform: scale(0.8) translateY(1000px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }
}
@keyframes scaleDown {
  0% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }
  100% {
    transform: scale(0.8) translateY(1000px);
    opacity: 0;
  }
}
@keyframes scaleBack {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.85);
  }
}
@keyframes scaleForward {
  0% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes quickScaleDown {
  0% {
    transform: scale(1);
  }
  99.9% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}


@media (max-width: 768px){
    .chat-container{
        width: 100%;
    }
    .prompt-area{
        width: 100%;
    }
}

@media (max-width: 500px){
    .user-chat-area, .ai-chat-area{
        font-size: 14px;
    }
    .chat-container{
        padding-right: 5px;
        padding-left: 0;
    }
    .ai-chat-box{
        padding-right: 0;
    }
    .prompt-area input{
        font-size: 14px;
    }
    #modal-container .modal-background{
        padding: 10px;
    }
    #modal-container .modal-background .modal{
        width: 100%;
    }
    .page-footer p{
        font-size: 12px;
    }
}

@media (max-width: 400px){
    .chat-container{
        padding-bottom: 60px;
    }
    #submit ion-icon, #startBtn ion-icon, #fullText ion-icon{
        font-size: 20px;
    }
    #image img{
        width: 20px;
    }
}

.loader-1 {
    scale: 0.45;
    width: 20px;
    height: 20px;
    border-radius: 100px;
    background: #fd4444;
    box-shadow: 0 0 0 0 rgba(253, 68, 68, 0.5);
    animation: pulse-kefe91md 1.5s infinite linear;
    position: relative;
  }
  
  .loader-1:before,
  .loader-1:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(253, 68, 68, 0.5);
    animation: inherit;
    animation-delay: -0.5s;
  }
  
  .loader-1:after {
    animation-delay: -1s;
  }
  
  @keyframes pulse-kefe91md {
    100% {
      box-shadow: 0 0 0 44.8px #0000;
    }
  }

  #notificationContainer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 1000;
  }
  
  .notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: orange;
    /* background-color: #35cd88; */
    color: white;
    border-radius: 8px;
    box-shadow: 2px 2px 10px black;
    animation: slideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
  }
  
  .notification .message {
    font-size: 14px;
    flex: 1;
  }
  
  .notification .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  .notification .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    animation: progress 5s linear;
  }
  
  @keyframes slideIn {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  @keyframes progress {
    from {
      width: 100%;
    }
    to {
      width: 0;
    }
  }

  .page-footer{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 10px;
    width: 100%;
    background: orange;
    margin-top: 5px;
    position: fixed;
    bottom: 0;
  }

  .page-footer a{
    text-decoration: none;
    color: white;
  }

  .page-footer a:hover{
    color: blue;
  }