/* src/css/main.css */
body {
    font-family: Arial, sans-serif;
    background-color: #b6f8fd;
    margin: 0;
    padding: 0;
}
:root {
    --primary-color: #2196f3;
    --secondary-color: #ff4081;
    --background-color: #f5f5f5;
    --text-color: #333;
    --accent-color: #2c3e50;
}

/* Header Styles */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    margin-right: 2rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #0764f9 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    max-width: 50%;
    z-index: 1;
    font-size: 2.7rem;
    color: var(--text-color);
}

.hero-content h2 {
    color: var(--accent-color);
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Navigation Links */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    opacity: 0.8;
}

/* Authentication Styles */
.auth-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: rgb(94, 161, 215);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    z-index: 10;
}

.tab-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.tab-button {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.tab-button.active {
    color: #2196f3;
    border-bottom: 2px solid #21f328;
}

.form-container {
    display: none; /* Hide by default */
}

.form-container.active {
    display: block; /* Show when active */
    animation: fadeIn 0.3s ease-in;
    max-height: 50vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 90%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #2196f3;
    outline: none;
}

button {
    width: 95%;
    padding: 1rem;
    background-color: #2c1dd2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1976d2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



.avatar-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.space-bubble-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.input-area {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Adjust spacing for better layout */
    gap: 1rem; /* Increase gap for better spacing */
    padding: 0.5rem 1rem; /* Add more padding for a comfortable typing area */
    background-color: #ffffff; /* Change to white for better contrast */
    border-radius: 25px; /* Slightly larger border radius for a modern look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Enhance shadow for depth */
    max-width: 800px; /* Adjust width for better responsiveness */
    margin: 1rem auto; /* Center the input area */
    font-size: 1rem; /* Increase font size for readability */
    color: #333; /* Ensure text is readable */
    position: relative;
    height: auto; /* Adjust height dynamically */
    border: 1px solid #ddd; /* Add a subtle border */
}

.input-area input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #a169f6;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-area input[type="text"]:focus {
    border-color: #2196f3; /* Highlight border on focus */
}

.input-area button {
    padding: 0.75rem 1.5rem; /* Add padding for better clickability */
    background-color: #21f336; /* Primary color for the button */
    color: #b7fef8; /* White text for contrast */
    border: none; /* Remove default border */
    border-radius: 20px; /* Match the container's style */
    font-size: 1rem; /* Match font size */
    font-weight: bold; /* Make the button text bold */
    cursor: pointer; /* Change cursor to pointer */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.input-area button:hover {
    background-color: #1932d2; /* Darker shade on hover */
}


.welcome-container {
    align-items: right;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1300px;
    margin: 0.1rem auto;
    font-size: 0.65rem;
    line-height: 0.0013rem;
    color: #faf719;
    text-align: right;
    position: relative;
    height: 10vh;
    background-color: rgb(185, 250, 167);
}

.intro-container {
    align-items: center;
    justify-content: center;
    max-width: 1300px;
    margin: 0.001rem;
    padding: 1rem;
    background-color: rgb(211, 218, 244);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.setup-container {
    display: flex;
    font-size: larger;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1300px;
    margin: 0.2rem auto;
    padding: 5rem;
    background: rgb(183, 242, 243);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-frame {
    width: 200px;
    height: 200px;
    border: 2px solid #2196f3; /* Blue border for the frame */
    border-radius: 10px; /* Rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9; /* Light background for contrast */
    margin: 1rem auto; /* Center the frame */
    overflow: hidden; /* Ensure content fits within the frame */
}

.image-frame canvas,
.image-frame #avatarContainer {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure the image fits within the frame */
    border-radius: 10px; /* Match the frame's rounded corners */
    transition: transform 0.3s ease; /* Smooth scaling effect */
    background-color: #c9eaf9d9; /* Light background for contrast */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: #f5f5f5; /* Light background for contrast */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    max-width: 400px; /* Limit width for better layout */
    margin: 1rem auto; /* Center the upload area */
}

body {
    font-family: Arial, sans-serif;
}

.avatar-container {
    text-align: left;
    margin-top: 20px;
}

input[type="file"] {
    margin: 10px;
}
.avatar-preview {
    width: 400px;
    height: 400px;
    border-radius: 5%;
    object-fit: cover;
    margin-top: 10px;
}
.avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.navigation-buttons {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.navigation-button:hover {
    background-color: #1976d2;
}