body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f4f4;
}

h1 {
  margin-top: 20px;
  margin-bottom: 10px;
}

select,
input[type='text'] {
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  width: calc(50% - 20px);
}

select {
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
  display: flex;
  /* Initially hidden */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

.endpoint {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 700px;
  margin: 10px auto;
  /* Center the endpoints horizontally */
}

.message-area {
  border: 1px solid #ccc;
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.message {
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
  background-color: #ececec;
  /* Default background */
}

.user-message {
  text-align: right;
  color: green;
  /* font-weight: bold; */
  background-color: #8df042;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 60%;
  display: inline-block;
  margin-left: auto;
}

.yoshi-message {
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
  background-color: #a2a3f7;

}

.elena-message {
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
  background-color: #f58244;

}

.anika-message {
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
  background-color: #71b6e2;

}

.backend-message {
  background-color:#e9a07a;
  ;
  text-align: left;
}

input:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input,
button {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  border: 1px solid #ddd;
}

button {
  background-color: #5cb85c;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #4cae4c;
}

input[type='radio'] {
  margin-right: 5px;
  cursor: pointer;
  /* Makes the mouse pointer for clickable items */
}

label {
  margin-right: 20px;
  /* Space between each radio button option */
  cursor: pointer;
  /* Makes the label clickable too */
}

/* Aligning the radio buttons container */
.radio-container {
  margin: 10px 0;
  /* Same vertical margin as other inputs for consistency */
  display: flex;
  /* Layout the options in a row */
  align-items: center;
  /* Ensure items are vertically centered */
  justify-content: start;
  /* Align to the start of the div */
}

input[type='radio'] + label {
  padding: 5px 10px;
  /* Padding around the text for better clickability */
  background-color: #fff;
  /* Match the background of the other form elements */
  border-radius: 5px;
  /* Rounded corners for a smooth look */
  border: 1px solid #ddd;
  /* Match border style with other inputs */
}

input[type='radio']:checked + label {
  background-color: #5cb85c;
  /* Green background for selected option */
  color: white;
  /* White text for better visibility on green background */
}

/* Existing styles... */

/* Tooltip Container */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: blue;
}

/* Tooltip Text Styling */
.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: white;
    color: black;
    text-align: left;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px;
    position: absolute;
    z-index: 1000; /* Ensure tooltip is above other elements */
    bottom: 120%; /* Position above the reference icon */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    white-space: pre-line;
    max-width: 90vw; /* Prevent cutting off on smaller screens */
    overflow-wrap: break-word;
}

/* Ensure tooltip is fully visible within the parent div */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Adjust positioning dynamically for tooltips near the edge */
.tooltip-container[data-align="left"] .tooltip-text {
    left: 0;
    transform: translateX(0);
}

.tooltip-container[data-align="right"] .tooltip-text {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* Story Swap specific styles */
#storySwapContainer .message {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  margin: 5px 0;
  border-radius: 10px;
}

#storySwapContainer .avatar-container {
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 10px;
}

#storySwapContainer .avatar {
  width: 100%;
  height: auto;
}

#storySwapContainer .text {
  flex: 1;
}

#storySwapContainer .user-message {
  background-color: #dcf8c6;
  text-align: right;
}

#storySwapContainer .backend-message {
  background-color: #f1f1f1;
  text-align: left;
}

.tippy-box[data-theme~='light-border'] {
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
    font-size: 12px;
    padding: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.tippy-content {
    white-space: pre-line;
    text-align: left;
}
