* {
  margin-top: 5px;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 0px;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: OpenSans;
  src: url("/src/fonts/OpenSans-VariableFont_wdth,wght.ttf");
}

.chat-message.progress {
  animation: spin 1s linear infinite;
}

.profile-pic {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}

.video-wrapper {
  position: relative;
  padding-bottom: 61.25%;
  /* 16:9 aspect ratio */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 5px;
  width: 100%;
  height: 100%;
}

iframe {
  border: none;
  height: 499px;
  margin-top: 10px;
}

/* CSS code */
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.end {
  display: flex;
}

p#example_header_title {
  text-align: center;
  font-size: 20px;
}

#chat-container {
  position: relative;
  height: calc(50vh - 40px);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

#chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0px;
  margin-bottom: 40px;
}

.chat-message {
  line-height: 1.5;
  padding-bottom: 3px;
  font-family: OpenSans;
  border-radius: 2px;
  max-height: fit-content;
  margin-bottom: 10px;
  padding-right: 38px;
  margin-left: 5px;
  display: flex;
}

.chat-message1 {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 5px;
  margin-right: 0;
  font-family: OpenSans;
  border-radius: 2px;
  max-height: fit-content;
  overflow: hidden;
  position: relative;
}

#chat-messages::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#chat-message1::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.input-container {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 10px !important;
  left: 10px;
  right: 0;
  border-radius: 5px;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  max-width: 900px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.mainImage {
  height: 50px;
  border-radius: 50px;
  margin-right: 10px;
}

.svgImage {
    height: 20px;
    width: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
}

.sendImage {
    height: 20px;
    width: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
}


.title1 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.title2 h3 {
  margin: 1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.box {
  width: 30%;
  padding: 10px;
  height: 76px;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: OpenSans;
  text-align: center;
}

h1 {
  font-family: OpenSans;
}

h3 {
  font-family: OpenSans;
}

p {
  margin-top: 1px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 1px;
  font-family: OpenSans;
}

sup {
  font-weight: bold;
  font-size: large;
  padding-bottom: 35px;
  font-family: OpenSans;
}

@media only screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .box {
    width: 100%;
    margin-left: 1px;
    margin-right: 1px;
  }
}

@media only screen and (max-width: 768px) {
  .input-container {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 10px !important;
    left: 10px;
    right: 0;
    border-radius: 5px;
    z-index: 1;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 10px;
  }

  .start {
    display: flex;
    padding-bottom: 80px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
  }

  .front-page {
    margin-top: 0;
  }

  button#newChat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 4px;
    border-radius: 4px;
    font-family: OpenSans;

    /* additional styles for positioning */
    z-index: 1;
    position: fixed;
    top: 0;
    right: 0;
    margin: 2px;
  }

  #newChat-btn p:last-of-type {
    display: none;
  }
}

/* styles for devices with a min width of 768px (i.e. large laptops and desktops) */
@media only screen and (min-width: 768px) {

  .chat-message {
    line-height: 1.5;
    padding-bottom: 3px;
    font-family: OpenSans;
    border-radius: 2px;
    max-height: fit-content;
    margin-bottom: 10px;
    padding-right: 45px;
    margin-left: 5px;
    display: flex;
  }
  .start {
    padding-bottom: 80px;
    margin-top: 28px;
    margin-left: auto; /* Center the element horizontally */
    margin-right: auto; /* Center the element horizontally */
    width: 900px;
  }

  button#newChat-btn {
    display: inline-flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 4px;
    border-radius: 4px;
    font-family: OpenSans;
  }
  #newChat-btn p {
    margin-left: 0;
  }

  .copy-button {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 42px;
    padding-left: 5px;
  }

  .thumbup-button.clicked svg path,
.thumbdown-button.clicked svg path {
  stroke: white;
}

  
  .thumbup-button {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 20px;
    padding-left: 5px;
  }

  .thumbup-button:hover svg path {
    stroke: white;
  }
  
  .thumbdown-button {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 1px;
    padding-left: 5px;
  }

  .thumbdown-button:hover svg path {
    stroke: white;
  }
  
  .copied-text {
    top: 0;
    right: 0;
    margin-right: 5px;
    color: rgb(255, 255, 255);
    margin-top: 30px;
    font-size: 12px;
    position: absolute;
  }
}

.video-container {
  align-items: center;
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  z-index: 1;
}

input[type="text"]:focus {
  outline: none;
}

.regenerate-btn {
  align-self: center;
  width: fit-content;
  height: 40px;
  padding: 5px;
  border-radius: 5px;
  font-family: OpenSans;
  font-size: 16px;
}

.send-button {
  border: none;
  border-radius: 50%;
  margin-left: 4px;
  font-size: 25px;
  cursor: pointer;
  padding-right: 4px;
}

.front-page {
  margin-top: 100px;
}

.send-button:hover {
  cursor: pointer;
}

textarea {
  height: 40px;
  margin-top: 14px;
  margin-bottom: 4px;
  flex: 1;
  overflow: auto;
  padding-left: 14px;
  border: none;
  border-radius: 0px;
  resize: none;
  font-family: OpenSans;
  font-size: 18px;
  outline: none;
}

.fixed-box {
  z-index: 0;
  position: fixed;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 70px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-right: 0.2em;
  background-color: white;
  animation: blink 1s infinite;
}


@media (max-width: 768px) {
  .copy-button {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 45px;
    padding-left: 5px;
  }

  .thumbup-button {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 20px;
    padding-left: 5px;
  }

  .thumbup-button.clicked svg path,
.thumbdown-button.clicked svg path {
  stroke: white;
}


  .thumbup-button:hover svg path {
    stroke: white;
  }

  .thumbdown-button {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 1px;
    padding-left: 5px;
  }

  .thumbdown-button:hover svg path {
    stroke: white;
  }

  .copied-text {
    bottom: 0;
    right: 0;
    margin-right: 5px;
    padding-bottom: 25px;
    color: rgb(255, 255, 255);
    margin-top: 30px;
    font-size: 12px;
    position: absolute;
  }
  }



@keyframes blink {
  70% {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

button#regenerate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 4px;
  border-radius: 4px;
  font-family: OpenSans;
  box-shadow: 1px 1px 1px 1px rgb(5,5,5);
}



.button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px; /* adjust as needed */
}


button#regenerate-btn svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 8px;
  margin-top: -3px;
}

a.url-highlight {
  text-decoration: underline;
}