diff --git a/css/styles.css b/css/styles.css index db5b882..51d966f 100644 --- a/css/styles.css +++ b/css/styles.css @@ -1,16 +1,24 @@ body { font-family: Arial, sans-serif; - background-color: #121212; - color: #ffffff; + background-color: #2c2c2c; + color: white; margin: 0; padding: 0; + display: flex; + flex-direction: column; + height: 100vh; } .container { - width: 90%; - max-width: 800px; + display: flex; + flex-direction: column; + justify-content: space-between; + width: 100%; + max-width: 600px; margin: 0 auto; + height: 100%; padding: 20px; + box-sizing: border-box; } h1 { @@ -22,68 +30,59 @@ h1 { flex-direction: column; } -textarea { +#messageInput { + width: 100%; padding: 10px; margin-bottom: 10px; - border: 1px solid #444; + border: none; border-radius: 5px; - background-color: #222; - color: #fff; - width: 100%; + resize: none; } button { padding: 10px; border: none; - border-radius: 5px; - background-color: #007bff; - color: #fff; + background-color: #5a5a5a; + color: white; cursor: pointer; } button:hover { - background-color: #0056b3; + background-color: #3c3c3c; } .messages-container { + flex-grow: 1; + overflow-y: auto; margin-top: 20px; } .message { - background-color: #333; + background-color: #444; padding: 15px; - margin-bottom: 10px; border-radius: 5px; + margin-bottom: 10px; } -.message p { - margin: 0; -} - -.upvote { - background-color: #28a745; +.upvote-btn { + background-color: #888; + color: white; border: none; padding: 5px; - border-radius: 5px; - color: #fff; cursor: pointer; + border-radius: 5px; } -.upvote:hover { - background-color: #218838; -} - -.toggle-container { - display: flex; - align-items: center; - margin-bottom: 20px; +.upvote-btn:hover { + background-color: #666; } +/* Styling for the toggle button */ .switch { position: relative; display: inline-block; - width: 34px; - height: 20px; + width: 60px; + height: 34px; } .switch input { @@ -101,25 +100,25 @@ button:hover { bottom: 0; background-color: #ccc; transition: .4s; - border-radius: 20px; + border-radius: 34px; } .slider:before { position: absolute; content: ""; - height: 12px; - width: 12px; - border-radius: 50%; + height: 26px; + width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; + border-radius: 50%; } input:checked + .slider { - background-color: #007bff; + background-color: #5a5a5a; } input:checked + .slider:before { - transform: translateX(14px); + transform: translateX(26px); } diff --git a/index.html b/index.html index 4610794..a02c065 100644 --- a/index.html +++ b/index.html @@ -29,12 +29,11 @@