ai-english-tutor-poc/src/App.css

140 lines
2.2 KiB
CSS

* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(to bottom, #bae6fd, #ffffff);
color: #1f2937;
height: 100vh;
overflow-x: hidden;
}
.app-container {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem;
}
.scene-wrapper {
padding: 1rem;
display: flex;
flex-direction: column;
align-items: center;
}
.avatar {
width: 200px;
height: 200px;
border-radius: 50%;
border: 4px solid white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
object-fit: cover;
animation: popIn 0.4s ease;
}
.dialogue-box {
background: rgba(255, 255, 255, 0.9);
border: 1px solid #d1d5db;
border-radius: 1.5rem;
padding: 1.5rem;
margin-top: 1.5rem;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.5s ease-in-out;
}
.dialogue-text {
font-size: 18pt;
color: #374151;
margin-bottom: 1rem;
}
.dialogue-text strong {
color: #111827;
}
.page-title {
position: absolute;
top: 2%;
}
.control-button {
margin-top: 1.5rem;
padding: 0.75rem 1.5rem;
font-size: 22pt;
font-weight: 700;
color: white;
width: 8cm;
height: 3cm;
border: none;
border-radius: 9999px;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
transition: background 0.3s ease;
}
.control-button.recording {
background-color: #ef4444;
}
.control-button.idle {
background-color: #3b82f6;
}
.control-button.idle:hover {
background-color: #2563eb;
}
.recording-indicator {
color: red;
font-weight: bold;
margin-top: 1rem;
text-align: center;
animation: pulse 1s infinite;
}
.waveform-canvas {
width: 300px; /* same as element width */
height: 60px; /* same as element height */
background-color: #000;
border-radius: 8px;
margin: 10px auto;
display: block;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.3; }
100% { opacity: 1; }
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes popIn {
0% {
transform: scale(0.8);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}