/* Style Ebook - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@300;400;600&display=swap');

:root {
    --primary-color: #8373E4;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--light-gray);
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

/* Main Content Styles */
main {
    padding: 50px 0;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    line-height: 1.3;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    hyphens: auto;
    word-wrap: break-word;
}

ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Tip Box Styles */
.tip-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
}

.tip-box h3 {
    margin-top: 0;
}

.tip-box p {
    margin-bottom: 0;
}

/* Introduction Section */
.intro p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Chapter Styling */
.chapter h2 {
    color: var(--black);
}

/* App Tips Section */
.app-tips {
    background-color: rgba(131, 115, 228, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.app-tips h2 {
    color: var(--primary-color);
}

.app-tips h2:after {
    width: 150px;
}

.app-tips .tip-box {
    background-color: var(--white);
    border-left: 4px solid var(--primary-color);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--light-gray);
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    .app-tips {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p, li {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
} 