diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..866604f --- /dev/null +++ b/styles.css @@ -0,0 +1,161 @@ +html, body { + font-family: 'Spectral', serif; + line-height: 1.6; + margin: 0; + padding: 0; + background: #121212; /* Dark background */ + color: #eee; /* Light text */ + display: flex; + flex-direction: column; + height: 100%; +} + +/* Header */ +main-header { + text-align: center; + padding: 10px; + background: black; /* Dark header */ + position: sticky; + z-index: 100; + top: 0; +} + +header { + text-align: center; + padding: 10px; + background: black; /* Dark header */ + position: fixed; + top: 0; + left: 0; + width: 100%; + transition: transform 0.3s ease-in-out; +} + +.hide-header { + transform: translateY(-100%); +} + +/* Main Content */ +main { + max-width: 700px; + margin: 40px auto; + padding: 20px; + background: #121212; /* Dark content background */ + flex: 1; +} + +/* Buttons */ +button { + font-size: 1rem; + padding: 10px 20px; + border: none; + border-radius: 5px; + background: #007BFF; + color: white; + cursor: pointer; + margin: 10px; +} + +button:hover { + background: #0056b3; +} + +/* Footer */ +footer { + text-align: center; + padding: 20px; + margin-top: 40px; + background: #1e1e1e; +} + +h4 { + font-size: 32px; + margin: 0; + padding: 0; + padding-top: 45px; +} +h3 { + font-size: 18px; + color: grey; + margin: 0; + padding: 0; +} +h2 { + font-size: 11px; + color: grey; + margin: 0; + padding: 0; +} +p { + font-size: 19px; + line-height: 1.6; +} +a { + color: #eee; /* Light text */ + text-decoration: underline; +} +a:hover { + text-decoration: none; +} +blockquote { + margin-top: 10px; + margin-bottom: 10px; + margin-left: 15px; + padding-left: 15px; + border-left: 3px solid #ccc; +} + +/* Home Page: Clickable Post Cards */ +.post-card { + background: #1e1e1e; + padding: 20px; + border-radius: 8px; + margin-bottom: 20px; + cursor: pointer; + transition: background 0.3s ease, transform 0.2s ease; + box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4); +} + +.post-card p { + margin: 0; +} + +.post-card h4 { + padding-top: 0; +} + +.post-card:hover { + background: #292929; + transform: translateY(-2px); +} + +.post-card h2 { + margin: 0; + color: #ffffff; +} + +.post-card .post-date { + font-size: 0.9em; + color: #aaa; +} + +.post-card .post-excerpt { + color: #ccc; +} + +/* Home button (circular image) */ +.home-button { + width: 50px; /* Adjust size as needed */ + height: 50px; + border-radius: 50%; /* Makes it circular */ + object-fit: cover; /* Ensures image fills circle */ + border: 2px solid #ccc; /* Optional: adds a subtle border */ + cursor: pointer; + transition: transform 0.2s ease, opacity 0.2s ease; +} + +.home-button:hover { + transform: scale(1.1); /* Slight zoom effect */ + opacity: 0.8; +} +