/* Updated CSS Styles for Brighter Color Scheme */
body { 
    font-family: Arial, sans-serif; 
    margin: 20px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f7fa; /* Brighter background color */
    position: relative; /* For absolute positioning of emojis */
}

.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    z-index: 2;
    position: sticky;
    top: 0;
}

.top-menu a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

.top-menu a:hover {
    text-decoration: underline;
}

/* Ensure the container takes available space */
.container { 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    position: relative;
}

/* Main content container */
.content-container {
    max-width: 800px; /* Restrict the width */
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

/* Title Box */
.title-box {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e8f4ff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Emoji Container within content-container */
#emojiContainer {
    position: absolute;
    pointer-events: none; /* Allow interactions with underlying elements */
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Floating Emoji Styles */
.floating-emoji {
    position: absolute;
    animation: float 5s ease-in-out infinite;
    /* Additional styles can be added here if needed */
}

@keyframes float {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 1; }
}

#backroomContainer { 
    border: 1px solid #ccc; 
    padding: 10px; 
    height: 50vh;
    overflow-y: auto; 
    margin-top: 10px; 
    background-color: #ffffff;
    word-wrap: break-word;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

button { 
    padding: 10px; 
    margin: 5px 0; 
    cursor: pointer;
    background-color: #6c63ff; /* Brighter button color */
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #574b90;
}

textarea { 
    width: 100%; 
    height: 80px; 
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    color: #333333;
}

label { 
    display: block; 
    margin-top: 10px; 
    font-weight: bold;
    color: #333333;
}

select { 
    width: 100%; 
    padding: 8px; 
    margin-top: 5px; 
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
    font-family: Arial, sans-serif;
}

.message { 
    margin: 10px 0; 
    padding: 10px; 
    border-bottom: 1px solid #eee; 
    border-radius: 5px;
    background-color: #f1f1f1;
    font-family: Arial, sans-serif;
    color: #333333;
}

.ai-message { 
    background-color: #e8f4ff; /* Different color for AI messages */
}

.claude-message {
    background-color: #d1e7dd; /* Specific color for Claude's messages */
}

.error-message { 
    color: red; 
    background-color: #ffe6e6; 
    padding: 10px; 
    margin: 10px 0; 
    border: 1px solid red;
    border-radius: 5px;
}

.loading { 
    opacity: 0.6; 
    pointer-events: none;
}

@media (max-width: 600px) {
    #backroomContainer { 
        height: 40vh; 
    }
    textarea { 
        height: 60px; 
    }
}

/* Editable system messages */
textarea.system-message {
    background-color: #ffffff;
    color: #333333;
}

/* Social Media Links */
.social-media {
    margin-top: 20px;
    text-align: center;
}

.social-media a {
    margin: 0 10px;
    color: #6c63ff;
    text-decoration: none;
}

.social-media a:hover {
    text-decoration: underline;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

/* Dropdown Styles */
.dropdown {
    margin-top: 10px;
}

.dropdown-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #ffffff;
    border: 2px solid #6c63ff;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.dropdown-button:hover {
    background-color: #f0f0f0;
}

.dropdown-button .triangle {
    margin-left: auto;
    transition: transform 0.3s;
}

.dropdown-button.open .triangle {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    margin-top: 10px;
    border: 2px solid #6c63ff;
    border-radius: 5px;
    padding: 10px;
    background-color: #ffffff;
}

.dropdown-content.open {
    display: block;
}

.char-counter {
    font-size: 12px;
    color: #666666;
    text-align: right;
}