Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzarrabi authored Dec 7, 2024
1 parent 476046c commit fcdfdea
Showing 1 changed file with 101 additions and 50 deletions.
151 changes: 101 additions & 50 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,114 +1,165 @@
/* General Styles */
body {
font-family: 'Roboto', Arial, sans-serif; /* Modern and clean font */
font-family: 'Georgia', serif; /* Classic old-book serif font */
line-height: 1.8;
margin: 0;
padding: 0;
background-color: #f0f2f5; /* Softer background for less strain */
color: #333; /* Neutral text color for better readability */
background-color: #fdf6e3; /* Aged parchment background */
color: #3a2c1a; /* Dark brown for text */
display: flex;
flex-direction: column;
align-items: center;
}

/* Content Box */
.content {
max-width: 800px;
margin: 40px auto;
max-width: 800px; /* Optimal reading width for desktop */
margin: 30px;
padding: 25px;
background-color: #ffffff;
border-radius: 8px; /* Rounded corners for a softer look */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
transition: transform 0.2s ease-in-out; /* Smooth hover effect */
}

.content:hover {
transform: scale(1.02); /* Slight enlargement on hover */
}

h1, h2 {
color: #222; /* Slightly darker headings for emphasis */
margin-top: 0;
background: #fffdf5; /* Slightly lighter parchment */
border-radius: 8px; /* Rounded corners for a soft look */
border: 1px solid #d3c7b7; /* Subtle border for elegance */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Gentle shadow for depth */
}

/* Headings */
h1 {
font-size: 2.8em;
text-align: center;
margin-top: 20px;
font-size: 2.4em; /* Large heading for desktop */
font-weight: bold;
margin-bottom: 0.8em;
text-align: center; /* Center-align the main heading */
color: #3c2f23; /* Darker tone for headings */
text-shadow: 1px 1px 2px #d6cfc4; /* Gentle text shadow */
letter-spacing: 2px; /* Slightly spaced letters for elegance */
}

h2 {
font-size: 2em;
font-weight: 600;
margin-top: 1.8em;
margin-bottom: 1em;
border-bottom: 2px solid #ddd; /* Separator for better structure */
padding-bottom: 0.3em;
margin-top: 30px;
border-bottom: 2px solid #3c2f23; /* Decorative underline */
padding-bottom: 5px;
font-size: 1.8em; /* Subheading size */
color: #3c2f23;
font-style: italic; /* Elegant style for subheadings */
}

/* Paragraphs */
p {
margin-bottom: 1.2em;
margin: 20px 0;
text-align: justify; /* Mimic book text alignment */
font-size: 1.1em;
color: #555; /* Softer paragraph text */
color: #4a3b2e;
}

/* Blockquotes */
blockquote {
margin: 1.5em 0;
padding: 1em 1.5em;
background-color: #fafafa;
border-left: 5px solid #00aaff; /* Brighter accent color */
color: #444;
font-style: italic;
color: #5a4b3c;
margin: 25px 40px;
padding-left: 20px;
border-left: 4px solid #3c2f23; /* Decorative border */
background-color: #f6efe0; /* Subtle background contrast */
}

/* Footer */
footer {
text-align: center;
padding: 15px 0;
background-color: #222;
color: #f4f4f4;
margin-top: 30px;
padding: 15px;
font-size: 0.9em;
position: fixed;
color: #5a4b3c;
border-top: 1px solid #d3c7b7;
width: 100%;
bottom: 0;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Shadow for floating effect */
background-color: #fdf6e3;
}

footer a {
color: #00aaff;
a {
color: #8b4513; /* Rich sienna for links */
text-decoration: none;
font-weight: bold;
}

footer a:hover {
a:hover {
text-decoration: underline;
color: #6a3410; /* Darker sienna on hover */
}

/* Add responsiveness */
@media (max-width: 768px) {
/* Responsive Styles */

/* Medium Devices (Tablets) */
@media (max-width: 1024px) {
.content {
max-width: 90%; /* Adjust content width for smaller screens */
margin: 20px;
padding: 20px;
}

h1 {
font-size: 2em; /* Slightly smaller for tablet screens */
}

h2 {
font-size: 1.6em;
}

p {
font-size: 1em; /* Adjust text size for readability */
}
}

/* Small Devices (Mobile) */
@media (max-width: 768px) {
body {
padding: 10px; /* Add spacing around the edges */
}

.content {
max-width: 100%; /* Full width for mobile */
margin: 10px;
padding: 15px;
}

h1 {
font-size: 2.2em;
font-size: 1.8em; /* Adjust heading size for mobile */
}

h2 {
font-size: 1.8em;
font-size: 1.4em;
}

p {
font-size: 1em;
}

blockquote {
margin: 15px 20px; /* Reduce padding for smaller screens */
padding-left: 15px;
}

footer {
font-size: 0.8em; /* Smaller footer text for mobile */
}
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
h1 {
font-size: 1.8em;
font-size: 1.6em;
}

h2 {
font-size: 1.6em;
font-size: 1.2em;
}

p {
font-size: 0.95em;
}

blockquote {
margin: 10px 15px;
padding-left: 10px;
}

footer {
font-size: 0.8em;
font-size: 0.75em;
}
}

0 comments on commit fcdfdea

Please sign in to comment.