/* General Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; font-family: 'Poppins', sans-serif; background-color: #fefefe; color: #333; overscroll-behavior-y: contain; touch-action: manipulation; } /* App Container */ #app { width: 100%; height: 100vh; display: flex; flex-direction: column; background: #fff; overflow: hidden; } /* Header */ header { padding: 1rem; background: linear-gradient(90deg, #4ca6af, #2e7d64); color: #fff; text-align: center; font-size: 1.25rem; font-weight: bold; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } /* Main Content */ main { flex-grow: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 1rem; } /* Bottom Navigation */ #main-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; align-items: center; background: #fefefe; border-top: 1px solid #e0e0e0; padding: 0.75rem 0; z-index: 10; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); } .nav-icon { text-decoration: none; font-size: 1.5rem; color: #4CAF50; transition: transform 0.3s ease, color 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 5px; } .nav-icon:hover { color: #2E7D32; transform: scale(1.1); } .nav-icon img { width: 24px; height: 24px; } .nav-active { color: #2E7D32; transform: scale(1.2); } /* Post Section */ #post-section { margin-bottom: 1rem; } input, textarea { width: 100%; padding: 0.75rem; font-size: 1rem; margin-bottom: 0.75rem; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; } input:focus, textarea:focus { border-color: #4CAF50; outline: none; background: #fff; } button { width: 100%; padding: 0.75rem; font-size: 1rem; color: #fff; background: linear-gradient(90deg,#4ca6af, #2e7d64); border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background: #2E7D32; } /* Feed Section */ #feed { margin-top: 1rem; } .post { background: #fff; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); } .post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .post-header strong { font-size: 1rem; } .delete-post { background: none; border: none; color: #ff5e57; font-size: 1rem; cursor: pointer; transition: opacity 0.3s ease; } .delete-post:hover { opacity: 0.7; } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #bbb; } ::-webkit-scrollbar-track { background: #f4f4f4; } /* Media Queries */ @media (max-width: 480px) { body { font-size: 0.9rem; } header { font-size: 1.1rem; padding: 0.75rem; } #main-nav { padding: 0.5rem; } input, textarea, button { font-size: 0.9rem; padding: 0.5rem; } }