* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}
/* Prevent text selection on buttons and controls on mobile */
button, .control-button {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none; /* Disable iOS callout */
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: transparent;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
overflow-x: hidden;
width: 100%;
}
@media (max-width: 768px) {
body {
align-items: flex-start;
padding: 10px;
}
}
.container {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
overflow: hidden;
max-width: 1600px;
width: 100%;
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 20px;
padding: 20px;
box-sizing: border-box;
}
@media (max-width: 768px) {
.container {
overflow-y: auto;
-webkit-overflow-scrolling: touch;
max-height: 100vh;
}
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
grid-template-columns: 1fr;
gap: 15px;
padding: 15px;
border-radius: 16px;
}
.video-container {
min-height: auto;
max-height: 50vh;
border-radius: 16px;
}
.canvas-container {
max-height: 40vh;
min-height: 250px;
}
.panel {
gap: 12px;
}
.status-bar {
flex-direction: column;
align-items: stretch;
gap: 12px;
padding: 12px;
}
.status-indicator {
width: 100%;
justify-content: center;
font-size: 13px;
}
.status-indicator span {
font-size: 13px;
}
/* Hide less important elements on mobile */
.participant-count {
display: none;
}
.recording-indicator span {
font-size: 12px;
}
.camera-placeholder-content {
padding: 30px 20px;
}
.camera-placeholder-title {
font-size: 20px;
}
.camera-placeholder-text {
font-size: 14px;
}
.camera-icon {
width: 60px;
height: 60px;
}
.ai-panel {
padding: 18px;
min-height: 120px;
}
.ai-panel h3 {
font-size: 16px;
margin-bottom: 12px;
}
.ai-response {
font-size: 14px;
line-height: 1.6;
}
button {
padding: 14px 20px;
font-size: 15px;
min-height: 48px; /* Touch-friendly size */
}
.top-bar {
height: 50px;
padding: 10px 15px;
}
.participant-indicator {
padding: 5px 12px;
font-size: 13px;
}
.participant-icon {
width: 24px;
height: 24px;
font-size: 12px;
}
.bottom-controls {
height: 70px;
padding: 10px 15px;
}
.control-button {
width: 50px;
height: 50px;
padding: 12px;
}
}
/* Small mobile devices (phones in portrait) */
@media (max-width: 480px) {
body {
padding: 8px;
}
.container {
padding: 12px;
gap: 12px;
border-radius: 12px;
}
.video-container {
min-height: auto;
max-height: 45vh;
border-radius: 12px;
}
.canvas-container {
max-height: 35vh;
min-height: 200px;
}
.panel {
gap: 10px;
}
.status-bar {
gap: 10px;
padding: 10px;
}
.status-indicator {
font-size: 12px;
}
.status-indicator span {
font-size: 12px;
}
.status-dot {
width: 8px;
height: 8px;
}
.camera-placeholder-content {
padding: 24px 16px;
}
.camera-placeholder-title {
font-size: 18px;
}
.camera-placeholder-text {
font-size: 13px;
}
.camera-icon {
width: 50px;
height: 50px;
}
.camera-placeholder-pulse {
width: 100px;
height: 100px;
}
.ai-panel {
padding: 16px;
min-height: 100px;
border-radius: 12px;
}
.ai-panel h3 {
font-size: 15px;
margin-bottom: 10px;
}
.ai-response {
font-size: 13px;
line-height: 1.5;
}
button {
padding: 12px 18px;
font-size: 14px;
min-height: 44px;
}
.top-bar {
height: 48px;
padding: 8px 12px;
}
.participant-indicator {
padding: 4px 10px;
font-size: 12px;
}
.participant-icon {
width: 22px;
height: 22px;
font-size: 11px;
}
.bottom-controls {
height: 65px;
padding: 8px 12px;
}
.control-button {
width: 48px;
height: 48px;
padding: 10px;
}
}
/* Very small devices */
@media (max-width: 360px) {
.container {
padding: 10px;
}
.video-container {
min-height: 200px;
}
button {
padding: 10px 16px;
font-size: 13px;
}
}
/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
.video-container {
min-height: 250px;
}
.container {
max-width: 100%;
}
}
.panel {
display: flex;
flex-direction: column;
gap: 15px;
background: transparent;
}
.video-container {
position: relative;
background: #000;
border-radius: 20px;
overflow: hidden;
aspect-ratio: 16/9;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
min-height: 500px;
width: 100%;
}
@media (max-width: 768px) {
.video-container {
aspect-ratio: 4/3;
min-height: auto;
}
}
#videoElement {
width: 100%;
height: 100%;
object-fit: cover;
transform: scaleX(-1); /* Mirror effect */
background: #000;
}
/* Camera Permission Placeholder */
.camera-placeholder {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
backdrop-filter: blur(40px) saturate(180%);
-webkit-backdrop-filter: blur(40px) saturate(180%);
z-index: 10;
transition: opacity 0.5s ease, visibility 0.5s ease;
}
.camera-placeholder.hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.camera-placeholder-content {
text-align: center;
position: relative;
padding: 40px;
}
.camera-icon-wrapper {
position: relative;
display: inline-block;
margin-bottom: 24px;
}
.camera-icon {
width: 80px;
height: 80px;
color: rgba(255, 255, 255, 0.9);
filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
animation: gentleFloat 3s ease-in-out infinite;
}
@keyframes gentleFloat {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
.camera-placeholder-pulse {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 120px;
height: 120px;
border-radius: 50%;
background: rgba(102, 126, 234, 0.2);
border: 2px solid rgba(102, 126, 234, 0.3);
animation: gentlePulse 2s ease-in-out infinite;
pointer-events: none;
}
@keyframes gentlePulse {
0%, 100% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.6;
}
50% {
transform: translate(-50%, -50%) scale(1.1);
opacity: 0.3;
}
}
.camera-placeholder-title {
font-size: 24px;
font-weight: 600;
color: rgba(255, 255, 255, 0.95);
margin: 0 0 12px 0;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
letter-spacing: -0.5px;
}
.camera-placeholder-text {
font-size: 16px;
color: rgba(255, 255, 255, 0.8);
margin: 0;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
font-weight: 400;
}
.canvas-container {
position: relative;
background: #f5f5e8; /* Light beige background */
border-radius: 20px;
border: 2px solid #d4d4c4;
overflow: hidden;
aspect-ratio: 16/9;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
touch-action: none; /* Prevent default touch behaviors on canvas */
}
@media (max-width: 768px) {
.canvas-container {
border-radius: 16px;
border-width: 1.5px;
}
}
@media (max-width: 480px) {
.canvas-container {
border-radius: 12px;
}
}
#drawingCanvas {
width: 100%;
height: 100%;
cursor: crosshair;
touch-action: none;
background: #f5f5e8; /* Light beige background */
}
.status-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 18px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.status-indicator {
display: flex;
align-items: center;
gap: 10px;
}
.status-indicator span {
font-size: 14px;
font-weight: 500;
color: white;
letter-spacing: -0.2px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #ccc;
animation: pulse 2s infinite;
}
.status-dot.connected {
background: #4caf50;
}
.status-dot.drawing {
background: #ff9800;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.controls {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}
@media (max-width: 768px) {
.controls {
gap: 8px;
width: 100%;
}
.controls button {
flex: 1 1 auto;
min-width: 0;
}
}
@media (max-width: 480px) {
.controls {
flex-direction: column;
gap: 10px;
}
.controls button {
width: 100%;
flex: none;
}
}
button {
padding: 12px 24px;
border: 1px solid #e0e0e0;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
letter-spacing: -0.1px;
background: white;
color: #1a1a1a;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
min-height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
background: #f5f5f5 !important;
border-color: #e0e0e0 !important;
color: #999 !important;
}
.btn-primary {
background: white;
border-color: #e0e0e0;
color: #1a1a1a;
}
.btn-primary:hover:not(:disabled) {
background: #f9f9f9;
border-color: #d0d0d0;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.btn-primary:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-danger {
background: white;
border-color: #e0e0e0;
color: #ea4335;
}
.btn-danger:hover:not(:disabled) {
background: #fff5f5;
border-color: #ea4335;
color: #d32f2f;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(234, 67, 53, 0.15);
}
.btn-danger:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(234, 67, 53, 0.1);
}
.btn-success {
background: white;
border-color: #e0e0e0;
color: #1a1a1a;
position: relative;
overflow: visible;
transition: all 0.2s ease;
}
.btn-success.analyzing {
animation: youtubeLikeAnimation 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
border-color: #667eea;
}
@keyframes youtubeLikeAnimation {
0% {
transform: scale(1);
}
50% {
transform: scale(1.15);
}
100% {
transform: scale(1);
}
}
/* Particle animation container */
.btn-success .particles {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
transform: translate(-50%, -50%);
}
.btn-success .particle {
position: absolute;
width: 8px;
height: 8px;
background: #667eea;
border-radius: 50%;
opacity: 0;
pointer-events: none;
}
.btn-success.analyzing .particle {
animation: particleBurst 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes particleBurst {
0% {
opacity: 1;
transform: translate(0, 0) scale(1);
}
100% {
opacity: 0;
transform: translate(var(--tx), var(--ty)) scale(0);
}
}
.btn-success:hover:not(:disabled) {
background: #f9f9f9;
border-color: #d0d0d0;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.btn-success:hover:not(:disabled).analyzing {
transform: translateY(-1px);
border-color: #667eea;
}
.btn-success:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ai-panel {
margin-top: 15px;
padding: 24px;
background: white;
border-radius: 16px;
border: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
min-height: 140px;
position: relative;
overflow: hidden;
}
.ai-panel::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}
.ai-panel h3 {
margin: 0 0 16px 0;
color: #1a1a1a;
font-size: 18px;
font-weight: 600;
letter-spacing: -0.4px;
display: flex;
align-items: center;
gap: 8px;
}
.ai-panel h3::before {
content: '';
width: 4px;
height: 18px;
background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
border-radius: 2px;
}
.ai-response {
padding: 0;
background: transparent;
border-radius: 0;
border: none;
border-left: none;
font-size: 15px;
line-height: 1.7;
color: #4a4a4a;
font-weight: 400;
letter-spacing: -0.1px;
margin: 0;
min-height: 20px;
}
.ai-response.typewriting::after {
content: '|';
animation: blinkCursor 1s infinite;
color: #667eea;
margin-left: 2px;
}
@keyframes blinkCursor {
0%, 50% {
opacity: 1;
}
51%, 100% {
opacity: 0;
}
}
.ai-response:empty::after {
content: 'Complete a drawing and click "Analyze Drawing" to get AI insights.';
color: #9a9a9a;
font-style: italic;
display: block;
}
.ai-response.loading::after {
content: 'Analyzing drawing...';
color: #667eea;
font-style: normal;
font-weight: 500;
}
/* Professional Video Call Overlays */
.video-overlay {
position: absolute;
z-index: 10;
pointer-events: none;
}
.top-bar {
top: 0;
left: 0;
right: 0;
height: 60px;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 20px;
pointer-events: auto;
}
.participant-indicator {
display: flex;
align-items: center;
gap: 8px;
background: rgba(60, 60, 60, 0.7);
padding: 6px 14px;
border-radius: 20px;
color: white;
font-size: 14px;
font-weight: 500;
backdrop-filter: blur(10px);
}
.participant-icon {
width: 24px;
height: 24px;
border-radius: 50%;
background: #4285f4;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 12px;
}
.recording-indicator {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 6px 14px;
border-radius: 20px;
color: white;
font-size: 14px;
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.recording-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #ea4335;
animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.participant-count {
display: flex;
align-items: center;
gap: 4px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 6px 12px;
border-radius: 20px;
color: white;
font-size: 14px;
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.bottom-controls {
bottom: 0;
left: 0;
right: 0;
height: 80px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
display: flex;
justify-content: center;
align-items: center;
padding: 12px 20px;
gap: 12px;
pointer-events: auto;
}
.control-button {
width: 48px;
height: 48px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.15);
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
font-size: 0;
padding: 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.control-button svg {
width: 24px;
height: 24px;
fill: white;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.control-button:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.4);
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.control-button.active {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.control-button.danger {
background: rgba(234, 67, 53, 0.2);
border-color: rgba(234, 67, 53, 0.4);
width: auto;
padding: 0 20px;
border-radius: 24px;
font-size: 14px;
font-weight: 500;
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
}
.control-button.danger svg {
width: 18px;
height: 18px;
margin-right: 6px;
}
.control-button.danger:hover {
background: rgba(234, 67, 53, 0.3);
border-color: rgba(234, 67, 53, 0.6);
box-shadow: 0 6px 16px rgba(234, 67, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.settings-controls {
position: absolute;
bottom: 20px;
right: 20px;
display: flex;
gap: 8px;
z-index: 20;
}
@media (max-width: 768px) {
.settings-controls {
bottom: 80px;
right: 10px;
gap: 6px;
}
.settings-button {
width: 40px;
height: 40px;
}
}
@media (max-width: 480px) {
.settings-controls {
bottom: 70px;
right: 8px;
}
.settings-button {
width: 36px;
height: 36px;
}
.settings-button svg {
width: 16px;
height: 16px;
}
}
.settings-button {
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.15);
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
font-size: 0;
padding: 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.settings-button svg {
width: 18px;
height: 18px;
fill: white;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.settings-button:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.4);
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.error-message {
background: #ffebee;
color: #c62828;
padding: 15px;
border-radius: 8px;
margin-bottom: 15px;
display: none;
}
.error-message.show {
display: block;
}