274 lines
5.4 KiB
CSS
274 lines
5.4 KiB
CSS
/* General Styles */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
background-color: #f9f9f9;
|
|
color: #333;
|
|
}
|
|
|
|
header h1 {
|
|
text-align: center;
|
|
color: #333;
|
|
font-size: 24px;
|
|
padding: 20px 0;
|
|
}
|
|
|
|
/* Main Container */
|
|
.main-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
gap: 40px;
|
|
margin: 0 auto;
|
|
max-width: 1200px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.text-section {
|
|
width: 40%;
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px; /* Space between textarea, tabs, and button */
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
background-color: #f5f5f5;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.tab.active {
|
|
background-color: #4285f4;
|
|
color: #fff;
|
|
border-color: #4285f4;
|
|
}
|
|
|
|
.current-display {
|
|
text-align: center;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.textarea-container {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Textarea styling */
|
|
textarea {
|
|
width: 100%;
|
|
height: 150px;
|
|
padding: 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
resize: none;
|
|
outline: none;
|
|
background: #f9f9f9;
|
|
color: #333;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Microphone button styling */
|
|
.mic-btn {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 10px;
|
|
padding: 8px;
|
|
font-size: 20px;
|
|
background-color: #4285f4;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.mic-btn:hover {
|
|
background-color: #357ae8;
|
|
}
|
|
|
|
.notification {
|
|
margin-top: 15px;
|
|
padding: 10px 15px;
|
|
background-color: #fff8e5;
|
|
color: #ff6f00;
|
|
border: 1px solid #ffd54f;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.notification span {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Translate button styling */
|
|
.translate-btn {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 15px;
|
|
margin-top: 15px;
|
|
background-color: #4285f4;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.translate-btn:hover {
|
|
background-color: #357ae8;
|
|
}
|
|
|
|
.video-section {
|
|
width: 50%;
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.video-section video {
|
|
width: 100%;
|
|
max-height: 500px; /* Limit the height to 700px */
|
|
object-fit: cover; /* Maintain the aspect ratio and fill the container */
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.video-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.nav-btn {
|
|
font-size: 20px;
|
|
padding: 10px 15px;
|
|
background-color: #4285f4;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.nav-btn:hover {
|
|
background-color: #357ae8;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.footer-note {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
/* General mobile responsiveness */
|
|
@media (max-width: 768px) {
|
|
/* Adjust the main container to stack elements vertically */
|
|
.main-container {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20px; /* Smaller gap for better spacing */
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Adjust the text section to fit full width */
|
|
.text-section,
|
|
.video-section {
|
|
width: 100%; /* Full width for mobile */
|
|
}
|
|
|
|
/* Adjust textarea for mobile */
|
|
textarea {
|
|
height: 120px; /* Reduce height for better fit */
|
|
font-size: 14px; /* Slightly smaller font for compact display */
|
|
padding: 10px; /* Adjust padding for mobile */
|
|
}
|
|
|
|
/* Tab buttons for mobile */
|
|
.tabs {
|
|
flex-direction: column; /* Stack tabs vertically */
|
|
gap: 5px; /* Smaller gap between tabs */
|
|
}
|
|
|
|
.tab {
|
|
font-size: 14px; /* Reduce font size for mobile */
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Translate button */
|
|
.translate-btn {
|
|
padding: 12px; /* Reduce padding */
|
|
font-size: 16px; /* Slightly smaller font size */
|
|
}
|
|
|
|
/* Video section adjustments */
|
|
video {
|
|
width: 100%; /* Full width video for mobile */
|
|
}
|
|
|
|
.video-section video {
|
|
max-height: 400px; /* Limit the height to 500px for smaller screens */
|
|
}
|
|
|
|
.video-controls {
|
|
justify-content: space-around; /* Adjust button layout */
|
|
}
|
|
|
|
.nav-btn {
|
|
font-size: 18px; /* Reduce size slightly */
|
|
padding: 8px 10px; /* Adjust padding for smaller buttons */
|
|
}
|
|
|
|
/* Current display text */
|
|
.current-display {
|
|
font-size: 18px; /* Slightly smaller text for mobile */
|
|
}
|
|
|
|
/* Footer adjustments */
|
|
footer {
|
|
padding: 10px;
|
|
}
|
|
|
|
.footer-note {
|
|
font-size: 12px; /* Smaller font for compact display */
|
|
}
|
|
}
|