pdf-rocket-reader / style.css
Majdnr111's picture
this app has to work on both pc and phones(android or ios)
c1b928a verified
Raw History Blame Contribute Delete
3.97 kB
:root {
--primary: #4361ee;
--secondary: #3f37c9;
--accent: #4895ef;
--light: #f8f9fa;
--dark: #212529;
--gray: #6c757d;
--success: #4cc9f0;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--dark);
background-color: #ffffff;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.hero {
text-align: center;
padding: 3rem 1rem;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
border-radius: 0 0 20px 20px;
margin-bottom: 2rem;
}
@media (min-width: 768px) {
.hero {
padding: 5rem 0;
}
}
.hero h1 {
font-size: 2rem;
margin-bottom: 1rem;
color: var(--primary);
}
@media (min-width: 768px) {
.hero h1 {
font-size: 3rem;
}
}
.subtitle {
font-size: 1.2rem;
color: var(--gray);
margin-bottom: 2rem;
}
.cta-button {
display: inline-block;
padding: 0.6rem 1.2rem;
background-color: var(--primary);
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: all 0.3s ease;
margin-bottom: 0.5rem;
width: 100%;
max-width: 200px;
}
@media (min-width: 768px) {
.cta-button {
padding: 0.8rem 1.8rem;
margin-bottom: 0;
width: auto;
}
}
.cta-button:hover {
background-color: var(--secondary);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.cta-button.secondary {
background-color: white;
color: var(--primary);
border: 2px solid var(--primary);
margin-left: 1rem;
}
.cta-button.secondary:hover {
background-color: var(--primary);
color: white;
}
.features {
padding: 4rem 0;
}
.features h2 {
text-align: center;
margin-bottom: 3rem;
font-size: 2rem;
color: var(--primary);
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature-card {
background: white;
padding: 2rem;
border-radius: 10px;
text-align: center;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
}
.feature-card i {
font-size: 2.5rem;
color: var(--accent);
margin-bottom: 1rem;
}
.feature-card h3 {
margin-bottom: 1rem;
color: var(--dark);
}
.feature-card p {
color: var(--gray);
}
/* PDF Reader Styles */
.pdf-container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}
.pdf-controls {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0.5rem;
margin-bottom: 1rem;
padding: 1rem;
background: #f8f9fa;
border-radius: 8px;
}
@media (min-width: 768px) {
.pdf-controls {
flex-direction: row;
justify-content: center;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
}
.pdf-controls button, .pdf-controls input {
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
background: var(--primary);
color: white;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s;
}
.pdf-controls button:hover {
background: var(--secondary);
}
.pdf-controls input {
background: white;
color: var(--dark);
border: 1px solid #ddd;
}
#page-info {
font-weight: 600;
color: var(--dark);
}
.pdf-viewer-container {
width: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
border: 1px solid #ddd;
border-radius: 8px;
background: #f5f5f5;
min-height: 50vh;
display: flex;
justify-content: center;
align-items: center;
}
@media (min-width: 768px) {
.pdf-viewer-container {
min-height: 80vh;
}
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2.2rem;
}
.hero {
padding: 3rem 0;
}
}