From fd254627cb926b914d6d5b9f54fe96c51a26d80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Re=C5=88ak?= Date: Sat, 2 Nov 2024 19:14:00 +0000 Subject: [PATCH] update css --- Script_Speech_recognition/style.css | 294 +++++++++++++++++----------- 1 file changed, 175 insertions(+), 119 deletions(-) diff --git a/Script_Speech_recognition/style.css b/Script_Speech_recognition/style.css index 4053323..13c1069 100644 --- a/Script_Speech_recognition/style.css +++ b/Script_Speech_recognition/style.css @@ -1,120 +1,176 @@ -/* 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; - justify-content: center; - margin: 20px; -} - -textarea { - width: 45%; - height: 200px; - margin: 0 10px; - padding: 10px; - background-color: #fff; - border: 2px solid #ccc; - border-radius: 4px; - color: #333; - font-size: 16px; - resize: none; -} - -textarea:focus { - border-color: #4285f4; - outline: none; -} - -#startBtn { - 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; -} - -/* 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 */ +/* 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; + justify-content: center; + margin: 20px; +} + +textarea { + width: 45%; + height: 200px; + margin: 0 10px; + padding: 10px; + background-color: #fff; + border: 2px solid #ccc; + border-radius: 4px; + color: #333; + font-size: 16px; + resize: none; +} + +textarea:focus { + border-color: #4285f4; + outline: none; +} + +#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; +} + +/* 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 */ +} + + +/*VIDEOPREHRAVAC*/ +.video { + position: relative; + width: 45%; + height: 200px; + max-height: 300px; + margin: 0 10px; + padding: 10px; + background-color: #fff; + border: 2px solid #ccc; + border-radius: 4px; + display: flex; + align-items: center; + justify-content: center; +} + +.video video { + width: 100%; + height: 100%; + border-radius: 4px; + background-color: #fff; + border: none; +} + +#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; +} + + +#prevBtn { + margin-left: 80px; +} + + +#nextBtn { + margin-right: 80px; +} + +#prevBtn:hover, #nextBtn:hover { + background-color: #357ae8; } \ No newline at end of file