html {
    width: 100%;
    margin: 0;
}

body {
    display: flex;
    min-height: 95vh;
    background-image: url('/background.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

input, button {
    font-size: 16px;
    border: 1px solid #808080;
    border-radius: 6px;
    padding: 6px 15px;
    margin-bottom: 0;
    cursor: pointer;
}

button:hover {
    background-color: #5d62f5;
}

h2 {
    margin-bottom: 0;
}

textarea {
  flex: 1; /* Allow textarea to expand and take available space */
  min-height: 40px; /* Adjust height as needed */
}

.controls {
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    border: none;
    background-color: transparent;
}

.message-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 74vh;
    overflow-y: auto;
    border: 1px solid #808080;
    border-radius: 0;
    padding: 6px;
    background-color: rgba(256, 256, 256, 0.8);
}

.message-container p {
    max-width: 90%;
    font-size: 16px;
    margin: 6px;
    padding: 8px 12px;
    border: 1px solid #909090;
    box-shadow: 2px 2px 2px #b9b9b9;
    background-color: #c8e3fe;
    border-radius: 16px 16px 16px 0;
}

.message-container p.own-message {
    background-color: #d5e9e1;
    border-radius: 16px 16px 0 16px;
    align-self: flex-end;
}

.message-sender {
  display: flex;
  align-items: flex-end; /* Align button with bottom of textarea */
  gap: 10px; /* Add space between textarea and button */
  width: 100%; /* Adjust width as needed */
}

#messageInput {
    width: 95%;
    font-size: 16px;
    min-height: 50px;
    max-height: 200px;
    resize: vertical;
    border: 1px solid #707070;
    border-radius: 16px 16px 0 16px;
    background-color: #d5e9e1;
    padding: 8px 12px;
    box-shadow: 2px 2px 2px rgba(128, 128, 128, 0.5);
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ffffff;
    }
}

