body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background-color: white;
}

#intro {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.5s;
}

#call-screen {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Center the element */
  width: 80%; /* Adjust the width as needed */
  height: 80%; /* Adjust the height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
}

#phone-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
}

.call-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5); /* Scale up by 150% */
  width: 167.5px; /* 250px * 0.67 */
  height: 325px; /* 700px * 0.67 */
  background-color: transparent; /* Change background color to transparent */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 13.4px; /* 20px * 0.67 */
  box-sizing: border-box;
  z-index: 2;
}

@media screen and (max-width: 800px) {
  .call-content {
    transform: translate(-50%, -50%) scale(1.5);
    width: 60%; /* Adjust width for smaller devices */
    height: 60%; /* Allow height to adjust based on content */
    max-height: 80vh; /* Limit height to 80% of viewport height */
    padding: 38px; /* Adjust padding for smaller devices */
    margin-top: -70px; /* Adjust this value as needed */

  }
  .chat-content {
    width: 350px; /* 250px * 0.67 */
    height: 500px; /* 700px * 0.67 */
    max-height: 80vh; /* Limit height to 80% of viewport height */
    padding: 10px; /* Adjust padding for smaller devices */
  }
}

@media screen and (min-width: 800px) and (max-width: 1919px) {
  .call-content {
    transform: translate(-50%, -50%) scale(1);
    width: 160px; /* 250px * 0.67 */
    height: 60%; /* Allow height to adjust based on content */
    max-height: 80vh; /* Limit height to 80% of viewport height */
    padding: 10px; /* Adjust padding for smaller devices */
  }
  .chat-content {
    width: 350px; /* 250px * 0.67 */
    height: 500px; /* 700px * 0.67 */
    max-height: 80vh; /* Limit height to 80% of viewport height */
    padding: 10px; /* Adjust padding for smaller devices */
  }
  
}

.top-bar {
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: black;
  opacity: 1;
  transition: opacity 0.5s;
  margin-top: 100px;
}
.main-page {
  background-color: white;
}

#duck-img {
  width: 100.5px;
  height: 100.5px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.5s;
}

.button-container {
  display: flex;
  justify-content: space-between;
  width: 120%;
  max-width: 230px;
}

#decline-btn, #answer-btn {
  width: 40.2px;
  height: 40.2px;
  cursor: pointer;
}

#blank-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

#chat-screen {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center the element */
    width: 80%; /* Adjust the width as needed */
    height: 80%; /* Adjust the height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
  }
  
  #phone-frame-chat {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    z-index: 2;
  }
  
  #status-bar {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 300px;
    z-index: 1;
  }
  
  .chat-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; /* 250px * 0.67 */
    height: 500px; /* 700px * 0.67 */
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    z-index: 3;
    overflow-y: auto;
    margin-top: 60px;
  }

  #send-button {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 300px;
    z-index: 1;
  }
  

  .imessage {
    background-color: transparent;
    display: flex;
    flex-direction: column; 
    font-family: "SanFrancisco";
    font-size: 1.05rem; /* Increased font size */
    margin: 0 auto 1.5rem; /* Adjusted margin */
    max-width: 300px; /* Adjusted max-width */
    padding: 0rem 1.5em; /* Increased padding */
  }
  
  .imessage p {
    border-radius: 1.15rem;
    line-height: 1.25;
    max-width: 75%;
    padding: 0.5rem .875rem;
    position: relative;
    word-wrap: break-word;
  }
  
  .imessage p::before,
  .imessage p::after {
    bottom: -0.1rem;
    content: "";
    height: 1rem;
    position: absolute;
  }
  
  p.from-me {
    align-self: flex-end;
    background-color: #248bf5;
    color: #fff; 
  }
  
  p.from-me::before {
    border-bottom-left-radius: 0.8rem 0.7rem;
    border-right: 1rem solid #248bf5;
    right: -0.35rem;
    transform: translate(0, -0.1rem);
  }
  
  p.from-me::after {
    background-color: #fff;
    border-bottom-left-radius: 0.5rem;
    right: -40px;
    transform:translate(-30px, -2px);
    width: 10px;
  }
  
  p[class^="from-"] {
    margin: 0.5rem 0;
    width: fit-content;
  }
  
  p.from-me ~ p.from-me {
    margin: 0.25rem 0 0;
  }
  
  p.from-me ~ p.from-me:not(:last-child) {
    margin: 0.25rem 0 0;
  }
  
  p.from-me ~ p.from-me:last-child {
    margin-bottom: 0.5rem;
  }
  
  p.from-them {
    align-items: flex-start;
    background-color: #e5e5ea;
    color: #000;
  }
  
  p.from-them:before {
    border-bottom-right-radius: 0.8rem 0.7rem;
    border-left: 1rem solid #e5e5ea;
    left: -0.35rem;
    transform: translate(0, -0.1rem);
  }
  
  p.from-them::after {
    background-color: #fff;
    border-bottom-right-radius: 0.5rem;
    left: 20px;
    transform: translate(-30px, -2px);
    width: 10px;
  }
  
  p[class^="from-"].emoji {
    background: none;
    font-size: 2.5rem;
  }
  
  p[class^="from-"].emoji::before {
    content: none;
  }
  
  .no-tail::before {
    display: none;
  }
  
  .margin-b_none {
    margin-bottom: 0 !important;
  }
  
  .margin-b_one {
    margin-bottom: 1rem !important;
  }
  
  .margin-t_one {
    margin-top: 1rem !important;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* general styling */
  @font-face {
    font-family: "SanFrancisco";
    src:
      url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff2") format("woff2"),
      url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff") format("woff");
  }
  
  body {  
    font-family: -apple-system, 
      BlinkMacSystemFont, 
      "Segoe UI", 
      Roboto, 
      Oxygen-Sans, 
      Ubuntu, 
      Cantarell, 
      "Helvetica Neue", 
      sans-serif;
    font-weight: normal;
    margin: 0;
  }
  
  .container {
    margin: 0 auto;
    max-width: 600px;
    padding: 1rem;
  }
  
  h1 {
    font-weight: normal;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 16px; /* Original size: 24px */
  }
  
  h2 {
    color: #ffffff;
    font-weight: normal;
    margin-top: 0;
    padding-bottom: 1.5rem;
    font-size: 13.33px; /* Original size: 20px */

  }
  
  .comment {
    color: #222;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 100%;
    padding: 0;
  }
  
  body {
    margin: 0 0.5rem;
  }

  .container {
    padding: 0.5rem;
  }

  .imessage {
    font-size: 1.05rem;
    margin: 0 auto 1rem;
    max-width: 600px;
    padding: 0.25rem 0.875rem;
  }

  .imessage p {
    margin: 0.5rem 0;
    opacity: 0; /* Start with opacity 0 to hide the message bubbles */
    transform: translateY(20px); /* Start with a translateY transformation to animate the message bubbles */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transition properties for smooth animation */
  }

  @media screen and (min-width: 801px) and (max-width: 1919px) {
    .imessage {
      background-color: transparent;
      display: flex;
      flex-direction: column; 
      font-family: "SanFrancisco";
      font-size: 0.704rem; /* Decreased font size to 67% */
      margin: 0 auto 1rem; /* Adjusted margin */
      max-width: 190px; /* Adjusted max-width to 67% */
      padding: 4rem 1.005rem; /* Decreased padding to 67% */
    }

    .button-container {
      display: flex;
      justify-content: space-between;
      width: 115%;
      max-width: 215px;
    }
  }

  @media screen and (max-width: 800px) {

    .button-container {
      display: flex;
      justify-content: space-between;
      width: 120%;
      max-width: 230px;

    }
    
  }

  #shrug-container {
    font-size: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    display: inline-block;
  }
  
  .shrug {
    animation: shrug-animation 0.3s forwards;
  }
  
  @keyframes shrug-animation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
  }
  
  .emoji {
    position: absolute;
    font-size: 2rem;
    top: 0;
    animation: drop-animation 3s linear;
  }
  
  @keyframes drop-animation {
    0% { top: -5%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  