TimelineCheck/styles.css
2025-05-26 21:09:32 -04:00

239 lines
No EOL
4.1 KiB
CSS

/* reset some default browser styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* main page styles */
body {
font-family: 'Source Serif Pro', serif;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #f4f4f4;
padding: 2rem;
color: #333;
}
.container {
max-width: 1000px;
width: 100%;
}
.newspaper {
background-color: #fff;
padding: 2rem;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
border: 1px solid #ddd;
position: relative;
}
/* Newspaper Header Styles */
.newspaper-header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 2px solid #000;
}
.newspaper-masthead {
margin-bottom: 0.5rem;
}
.newspaper-title {
font-family: 'Playfair Display', serif;
font-size: 3.5rem;
font-weight: 900;
letter-spacing: 2px;
margin-bottom: 0.5rem;
line-height: 1.1;
}
.newspaper-subtitle {
font-family: 'Playfair Display', serif;
font-style: italic;
font-size: 1.2rem;
color: #666;
margin-bottom: 0.5rem;
}
.newspaper-date {
font-family: 'Source Serif Pro', serif;
font-style: italic;
color: #666;
font-size: 1.1rem;
}
/* Newspaper Content Styles */
.newspaper-content {
margin-bottom: 2rem;
}
.headline-section {
text-align: center;
margin-bottom: 2rem;
padding: 1rem;
background-color: #f9f9f9;
border: 1px solid #eee;
}
.headline {
font-family: 'Playfair Display', serif;
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
line-height: 1.3;
color: #000;
}
.headline-decoration {
width: 100px;
height: 2px;
background-color: #000;
margin: 1rem auto;
}
.subtext {
font-size: 1.2rem;
color: #444;
line-height: 1.6;
font-style: italic;
}
.newspaper-columns {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
margin: 2rem 0;
padding: 0 1rem;
}
.column {
text-align: justify;
}
.newspaper-text {
font-size: 1.1rem;
line-height: 1.8;
color: #333;
margin-bottom: 1rem;
}
/* Button Styles */
.button-container {
display: flex;
gap: 1rem;
justify-content: center;
margin: 2rem 0;
}
.check-button, .share-button {
padding: 1rem 2rem;
font-size: 1.2rem;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Source Serif Pro', serif;
text-transform: uppercase;
letter-spacing: 1px;
}
.check-button {
background-color: #2c3e50;
}
.share-button {
background-color: #27ae60;
}
.check-button:hover {
background-color: #34495e;
transform: translateY(-2px);
}
.share-button:hover {
background-color: #2ecc71;
transform: translateY(-2px);
}
.check-button:active, .share-button:active {
transform: translateY(0);
}
/* Footer Styles */
.newspaper-footer {
text-align: center;
padding-top: 1rem;
border-top: 1px solid #ddd;
color: #666;
font-size: 0.9rem;
}
/* Copy Notification */
.copy-notification {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #2c3e50;
color: white;
padding: 1rem 2rem;
border-radius: 4px;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1000;
font-family: 'Source Serif Pro', serif;
}
.copy-notification.show {
opacity: 1;
}
/* Animation for headline changes */
@keyframes headlineChange {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.headline.changed {
animation: headlineChange 0.5s ease;
}
/* Responsive Design */
@media (max-width: 768px) {
.newspaper {
padding: 1rem;
}
.newspaper-title {
font-size: 2.5rem;
}
.newspaper-columns {
grid-template-columns: 1fr;
gap: 1rem;
}
.headline {
font-size: 2rem;
}
.button-container {
flex-direction: column;
}
.check-button, .share-button {
width: 100%;
}
}