:root {
  --white: #ffffff;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Layout */
html, body {
  height: 100%;
}

body {
  display: flex;
  justify-content: center; 
  align-items: center; 
}

.app {
  width: 100%;
  max-width: 38.625rem; 
  height: 100%;
  max-height: 100vh;
  background-image: url('./assets/BG.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.header-content {
  overflow: hidden;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: top;
}

.circle-button {
  border: none;
  width: 4.0625rem; 
  height: 4.0625rem;
  -webkit-backdrop-filter: blur(0.25rem);
  backdrop-filter: blur(0.25rem); 
  border-radius: 50%;
  padding: 0.625rem; 
  cursor: pointer;
}

.circle-button--burger {
  background: #FFFFFF4D;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.circle-button--close {
  background-color: #474D90;
}

/* Content zone */
.content {
  display: flex;
  flex-direction: column;
  padding: 0.625rem; 
  margin: 2rem 0;
  overflow-y: auto;
  max-height: 83%;
}

.chat-message {
  font-family: Helvetica;
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 100%;
  color: var(--white);
  word-wrap: break-word;
  cursor: pointer;
}

/* User messages */
.chat-message.user {
  max-width: 85%;
  border-radius: 2rem;
  border: 1px solid #FAFAFA;
  align-self: flex-end; 
  text-align: right;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

/* AI messages */
.chat-message.agent {
  position: relative;
  padding-left: 5.125rem;   
  margin-bottom: 2rem;
}

.chat-message.agent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.75rem; 
  height: 3.75rem;  
  background-image: var(--agent-image, url('./assets/pyju48n6.png')); /* Default image */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Nav bottom */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-nav {
  background: #05151D36;
  -webkit-backdrop-filter: blur(1.125rem);
  backdrop-filter: blur(1.125rem); 
  width: 100%;
  max-width: 31.25rem; 
  height: 6.5625rem; 
  border-radius: 3.625rem; 
  border: 0.05625rem solid; 
  border-image-source: linear-gradient(
    66.3deg,
    var(--white) -11.04%,
    var(--white) -11.03%,
    rgba(255, 255, 255, 0) 49.94%,
    var(--white) 111.41%
  );
  padding: 0.3125rem 2.5rem; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-nav button {
  cursor: pointer;
  background: none;
  border: none;
}

.bottom-nav img {
  width: 1.75rem;
}

.main-button {
  background-color: var(--white);
  padding: 0.625rem; 
  width: 5.625rem; 
  height: 5.625rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-button img {
  width: 1.9375rem; 
  height: 2.125rem; 
  color: #42008b;
}

/* Responsive */
@media screen and (max-width: 480px) {
  .app {
    padding: 1.5rem;
  }

  .circle-button {
    width: 3.125rem;
    height: 3.125rem;
  }

  .bottom-nav {
    max-width: 100%;
    height: 5.625rem;
    padding: 0.3125rem 1.25rem;
  }

  .main-button {
    width: 4.375rem;
    height: 4.375rem;
    top: -2.1875rem;
  }

  .main-button img {
    width: 1.5rem;
    height: 1.625rem;
  }

  .bottom-nav img {
    width: 1.5rem;
  }
}
