2024-11-02 19:14:00 +00:00
|
|
|
/* Default Light Theme */
|
|
|
|
body {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
color: #333;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
text-align: center;
|
|
|
|
color: #4285f4;
|
|
|
|
font-size: 36px;
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
display: flex;
|
2024-11-04 21:12:07 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 5%;
|
2024-11-02 19:14:00 +00:00
|
|
|
justify-content: center;
|
2024-11-04 21:12:07 +00:00
|
|
|
padding: 20px;
|
2024-11-02 19:14:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#startBtn, #translateLettersBtn, #translateWordsBtn {
|
|
|
|
display: block;
|
|
|
|
margin: 20px auto;
|
|
|
|
padding: 10px 20px;
|
|
|
|
font-size: 24px;
|
|
|
|
background-color: #4285f4;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
border-radius: 50px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
#startBtn:hover {
|
|
|
|
background-color: #357ae8;
|
|
|
|
}
|
|
|
|
|
|
|
|
#timerDisplay, #statusText {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 18px;
|
|
|
|
color: #555;
|
|
|
|
}
|
|
|
|
|
|
|
|
#statusText {
|
|
|
|
color: #f44336;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dark Theme (this will be applied dynamically) */
|
|
|
|
body.dark-mode {
|
|
|
|
background-color: #121212;
|
|
|
|
color: #e0e0e0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1.dark-mode {
|
|
|
|
color: #8ab4f8;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea.dark-mode {
|
|
|
|
background-color: #1e1e1e;
|
|
|
|
border-color: #333;
|
|
|
|
color: #e0e0e0;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea.dark-mode:focus {
|
|
|
|
border-color: #8ab4f8;
|
|
|
|
}
|
|
|
|
|
|
|
|
#startBtn.dark-mode {
|
|
|
|
background-color: #8ab4f8;
|
|
|
|
color: #121212;
|
|
|
|
}
|
|
|
|
|
|
|
|
#startBtn.dark-mode:hover {
|
|
|
|
background-color: #76a7f3;
|
|
|
|
}
|
|
|
|
|
|
|
|
#timerDisplay.dark-mode, #statusText.dark-mode {
|
|
|
|
color: #b0b0b0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#statusText.dark-mode {
|
|
|
|
color: #cf6679;
|
|
|
|
}
|
|
|
|
|
2024-11-04 21:12:07 +00:00
|
|
|
.video.dark-mode {
|
|
|
|
background-color: #1e1e1e; /* Dark background for video container */
|
|
|
|
border: 2px solid #333; /* Dark border */
|
|
|
|
}
|
|
|
|
|
|
|
|
.video.dark-mode video {
|
|
|
|
background-color: #1e1e1e; /* Dark background for video */
|
|
|
|
}
|
|
|
|
|
|
|
|
.video.dark-mode #translationVideo{
|
|
|
|
border: 0px solid #333;
|
|
|
|
}
|
|
|
|
|
2024-11-02 19:14:00 +00:00
|
|
|
/* Style for the theme toggle button (icon) */
|
|
|
|
#themeToggleBtn {
|
|
|
|
position: fixed;
|
|
|
|
top: 20px;
|
|
|
|
right: 20px; /* Changed from left to right */
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
font-size: 24px;
|
|
|
|
cursor: pointer;
|
|
|
|
z-index: 1000; /* Ensure it stays on top */
|
|
|
|
transition: color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
#themeToggleBtn:hover {
|
|
|
|
color: #f4b400; /* Add a hover color effect */
|
|
|
|
}
|
|
|
|
|
|
|
|
.video {
|
|
|
|
position: relative;
|
2024-11-04 21:12:07 +00:00
|
|
|
width: 45%; /* Default width */
|
|
|
|
max-width: 500px;
|
|
|
|
aspect-ratio: 16/9; /* Keep a responsive aspect ratio */
|
2024-11-02 19:14:00 +00:00
|
|
|
padding: 10px;
|
2024-11-04 21:12:07 +00:00
|
|
|
background-color: #ffffff;
|
|
|
|
border: 2px solid #e0e0e0;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
2024-11-02 19:14:00 +00:00
|
|
|
display: flex;
|
2024-11-04 21:12:07 +00:00
|
|
|
flex-direction: column; /* Stack items vertically */
|
|
|
|
align-items: center; /* Center content */
|
|
|
|
justify-content: flex-start; /* Align items to the start */
|
|
|
|
transition: transform 0.3s ease;
|
2024-11-02 19:14:00 +00:00
|
|
|
}
|
|
|
|
|
2024-11-04 21:12:07 +00:00
|
|
|
.video h2 {
|
|
|
|
color: #4285f4; /* Optional: change heading color */
|
|
|
|
font-size: 24px; /* Optional: adjust font size */
|
|
|
|
text-align: center; /* Center align the text */
|
|
|
|
}
|
|
|
|
|
|
|
|
.video:hover {
|
|
|
|
transform: scale(1.02); /* Slight zoom on hover */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Styling for video element inside .video */
|
2024-11-02 19:14:00 +00:00
|
|
|
.video video {
|
2024-11-04 21:12:07 +00:00
|
|
|
width: 100%;
|
2024-11-02 19:14:00 +00:00
|
|
|
height: 100%;
|
|
|
|
border-radius: 4px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2024-11-04 21:12:07 +00:00
|
|
|
/* Styling for navigation buttons */
|
2024-11-02 19:14:00 +00:00
|
|
|
#prevBtn, #nextBtn {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
font-size: 24px;
|
|
|
|
background-color: #4285f4;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-11-04 21:12:07 +00:00
|
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
|
|
transition: background-color 0.3s ease, transform 0.2s;
|
2024-11-02 19:14:00 +00:00
|
|
|
}
|
|
|
|
|
2024-11-04 21:12:07 +00:00
|
|
|
#prevBtn:hover, #nextBtn:hover {
|
|
|
|
background-color: #357ae8;
|
|
|
|
transform: scale(1.1); /* Small zoom on hover */
|
|
|
|
}
|
2024-11-02 19:14:00 +00:00
|
|
|
|
|
|
|
#prevBtn {
|
2024-11-04 21:12:07 +00:00
|
|
|
left: -20px;
|
2024-11-02 19:14:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#nextBtn {
|
2024-11-04 21:12:07 +00:00
|
|
|
right: -20px;
|
2024-11-02 19:14:00 +00:00
|
|
|
}
|
|
|
|
|
2024-11-04 21:12:07 +00:00
|
|
|
/* Styling for textarea */
|
|
|
|
textarea {
|
|
|
|
width: 45%; /* Match video width */
|
|
|
|
max-width: 500px;
|
|
|
|
min-height: 200px;
|
|
|
|
padding: 15px;
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
border: 2px solid #e0e0e0;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: #333;
|
|
|
|
font-size: 16px;
|
|
|
|
resize: none;
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
|
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea:focus {
|
|
|
|
border-color: #4285f4;
|
|
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Responsive layout */
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.container {
|
|
|
|
align-items: center;
|
|
|
|
gap: 5%;
|
|
|
|
}
|
|
|
|
.video, textarea {
|
|
|
|
width: 90%;
|
|
|
|
max-width: 90%;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2024-10-21 10:04:57 +00:00
|
|
|
}
|