YoutubeSummarizer / style.css
SamuelWHS's picture
Update style.css
90f7a5a verified
Raw History Blame Contribute Delete
4.83 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
max-width: 900px;
width: 100%;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.1);
padding: 40px;
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
header {
text-align: center;
margin-bottom: 30px;
}
header h1 {
font-size: 2.5em;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 10px;
}
header p {
color: #666;
font-size: 1.1em;
}
.input-section {
display: flex;
flex-direction: column;
gap: 15px;
margin-bottom: 20px;
}
.input-group {
display: flex;
gap: 10px;
}
#video-url {
flex: 1;
padding: 12px 15px;
border: 2px solid #e0e0e0;
border-radius: 10px;
font-size: 16px;
transition: border-color 0.3s;
}
#video-url:focus {
outline: none;
border-color: #667eea;
}
#language-select {
padding: 12px 15px;
border: 2px solid #e0e0e0;
border-radius: 10px;
font-size: 16px;
background: white;
cursor: pointer;
transition: border-color 0.3s;
}
#language-select:focus {
outline: none;
border-color: #667eea;
}
#summarize-btn {
padding: 14px 30px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
#summarize-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}
#summarize-btn:active {
transform: translateY(0);
}
#summarize-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.examples {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 15px 0;
align-items: center;
}
.examples span {
color: #666;
font-weight: 500;
margin-right: 5px;
}
.example-btn {
padding: 6px 14px;
background: #f0f0f0;
border: 1px solid #ddd;
border-radius: 20px;
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
color: #333;
}
.example-btn:hover {
background: #667eea;
color: white;
border-color: #667eea;
transform: scale(1.05);
}
.status {
padding: 10px;
text-align: center;
color: #666;
font-style: italic;
margin: 10px 0;
}
.status.loading {
color: #667eea;
font-weight: 500;
}
.status.error {
color: #dc3545;
font-weight: 500;
}
#output-container {
background: #f8f9fa;
border-radius: 12px;
padding: 20px;
min-height: 200px;
margin: 10px 0;
border: 2px solid #e9ecef;
transition: all 0.3s;
}
#output-container.loading {
border-color: #667eea;
background: #f0f3ff;
}
#output {
color: #333;
line-height: 1.8;
white-space: pre-wrap;
word-wrap: break-word;
}
.output-placeholder {
color: #999;
text-align: center;
padding: 40px 20px;
}
.output-placeholder p {
margin: 0;
}
.stats {
padding: 10px;
text-align: center;
color: #666;
font-size: 14px;
background: #f8f9fa;
border-radius: 8px;
margin-top: 10px;
}
footer {
text-align: center;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #e0e0e0;
color: #666;
}
footer a {
color: #667eea;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
.container {
padding: 20px;
}
header h1 {
font-size: 1.8em;
}
.input-group {
flex-direction: column;
}
#language-select {
width: 100%;
}
.examples {
justify-content: center;
}
}
.loading-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error-message {
color: #dc3545;
padding: 20px;
background: #f8d7da;
border-radius: 8px;
border: 1px solid #f5c6cb;
}
.success-message {
color: #155724;
padding: 20px;
background: #d4edda;
border-radius: 8px;
border: 1px solid #c3e6cb;
}