audio_to_text / styles.css
missvector's picture
Upd
51c858c
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
width: 100%;
overflow: hidden;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
font-weight: 400;
background: linear-gradient(165deg, #9b8aed 0%, #5a4a9a 100%);
display: flex;
justify-content: center;
align-items: center;
padding: 24px;
height: 100vh;
width: 100vw;
overflow: hidden;
}
.frame {
width: 100%;
max-width: 880px;
margin: 0 auto;
display: flex;
flex-direction: column;
height: 100%;
max-height: 800px;
align-items: center;
}
h1 {
color: white;
font-size: clamp(36px, 7vw, 48px);
font-weight: 520;
letter-spacing: -0.03em;
margin: 0 0 24px 0;
text-transform: uppercase;
font-family: 'Inter', sans-serif;
line-height: 1;
flex-shrink: 0;
text-align: center;
width: 100%;
opacity: 0.95;
transition: opacity 0.3s, letter-spacing 0.3s;
}
h1:hover {
opacity: 1;
letter-spacing: -0.02em;
}
.transcript-card {
background: rgba(245, 245, 250, 0.95);
backdrop-filter: blur(10px);
border-radius: 32px;
padding: 32px 32px 24px;
position: relative;
display: flex;
flex-direction: column;
box-shadow: 0 25px 40px -16px rgba(0,0,0,0.4),
0 0 0 1px rgba(255,255,255,0.1) inset;
flex: 1;
min-height: 0;
width: 100%;
transition: box-shadow 0.3s;
}
.transcript-card:hover {
box-shadow: 0 28px 48px -18px rgba(0,0,0,0.5),
0 0 0 1px rgba(255,255,255,0.15) inset;
}
.copy-wrapper {
position: absolute;
top: 20px;
right: 24px;
display: flex;
align-items: center;
gap: 12px;
z-index: 10;
}
.copy-btn {
background: rgba(255,255,255,0.9);
border: none;
width: 44px;
height: 44px;
padding: 11px;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1);
color: #2d2d2d;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
backdrop-filter: blur(4px);
}
.copy-btn:hover {
background: white;
box-shadow: 0 8px 18px rgba(0,0,0,0.15);
transform: scale(0.96);
color: #5a4a9a;
}
.copy-btn:active {
transform: scale(0.92);
}
.copy-btn svg {
width: 22px;
height: 22px;
stroke: currentColor;
stroke-width: 1.8;
fill: none;
transition: stroke 0.2s;
}
.copy-feedback {
font-size: 14px;
color: #1e5e2b;
font-weight: 500;
opacity: 0;
transition: opacity 0.2s ease, transform 0.2s ease;
background: rgba(255,255,255,0.95);
padding: 6px 16px;
border-radius: 100px;
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
letter-spacing: -0.01em;
backdrop-filter: blur(4px);
pointer-events: none;
transform: translateX(4px);
}
.copy-feedback.show {
opacity: 1;
transform: translateX(0);
}
.drop-zone {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 0;
margin-top: 20px;
width: 100%;
cursor: pointer;
transition: background 0.25s ease, transform 0.2s ease;
border-radius: 24px;
position: relative;
}
.drop-zone.drag-over {
background: rgba(155, 138, 237, 0.12);
backdrop-filter: blur(4px);
}
.drop-zone:active {
transform: scale(0.99);
}
.instruction {
font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', monospace;
font-size: clamp(20px, 5vw, 26px);
font-weight: 450;
color: #2a2a2a;
line-height: 1.4;
text-align: center;
max-width: 90%;
margin-bottom: 16px;
transition: opacity 0.2s;
}
.instruction-small {
font-family: 'Inter', sans-serif;
font-size: 15px;
color: #5a5a5a;
margin-top: 8px;
font-weight: 400;
letter-spacing: 0.2px;
opacity: 0.8;
transition: opacity 0.2s;
}
.drop-zone:hover .instruction-small {
opacity: 1;
}
.attach-btn {
background: none;
border: none;
width: 70px;
height: 70px;
font-size: 44px;
cursor: pointer;
padding: 0;
transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1), opacity 0.2s;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
margin-top: 12px;
color: #3a3a5a;
opacity: 0.75;
transform-origin: center;
}
.attach-btn:hover {
transform: scale(1.15) rotate(5deg);
opacity: 1;
}
.attach-btn:active {
transform: scale(1.05) rotate(2deg);
}
.transcript-area {
display: none;
width: 100%;
height: 100%;
flex-direction: column;
animation: fadeIn 0.4s ease;
}
.transcript-area.active {
display: flex;
}
@keyframes fadeIn {
0% { opacity: 0; transform: translateY(6px); }
100% { opacity: 1; transform: translateY(0); }
}
textarea {
width: 100%;
background: transparent;
border: none;
font-family: 'JetBrains Mono', 'SF Mono', monospace;
font-size: 15px;
line-height: 1.75;
color: #1a1a2c;
resize: none;
flex: 1;
padding: 12px 4px;
margin: 0;
outline: none;
font-weight: 420;
}
textarea::placeholder {
color: #8a8aa8;
font-style: italic;
opacity: 0.7;
}
.footer {
margin-top: 24px;
color: rgba(255,255,255,0.85);
font-size: 15px;
font-weight: 400;
letter-spacing: 0.5px;
text-align: center;
flex-shrink: 0;
padding-bottom: 4px;
width: 100%;
transition: opacity 0.2s;
}
.footer a {
color: white;
text-decoration: none;
font-weight: 550;
border-bottom: 1.5px solid rgba(255,255,255,0.25);
padding-bottom: 2px;
transition: border-color 0.2s, opacity 0.2s;
}
.footer a:hover {
border-bottom-color: white;
opacity: 1;
}
@media (max-width: 600px) {
body {
padding: 16px;
}
h1 {
margin-bottom: 18px;
}
.instruction {
font-size: 20px;
}
.transcript-card {
padding: 24px 20px 20px;
}
.attach-btn {
width: 64px;
height: 64px;
font-size: 42px;
}
.copy-btn {
width: 40px;
height: 40px;
padding: 10px;
}
}