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

/* Base Styles */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --text-color: #3c4043;
    --border-color: #dadce0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

pre {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-color);
}

header h1 {
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 2rem;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.text-content {
    flex: 1 1 60%;
    min-width: 300px;
}

.image-content {
    flex: 1 1 30%;
    min-width: 300px;
}

.tutorial-image {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.image-caption {
    text-align: center;
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Steps */
.step {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.step:last-child {
    border-bottom: none;
}

/* Notes and Issues */
.note, .issue {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 5px 5px 0;
}

.issue {
    background-color: #ffebee;
    border-left-color: var(--accent-color);
}

.issue h4 {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: #8ab4f8;
}

footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    section {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
    }
    
    header, footer {
        background-color: white;
        color: black;
    }
    
    section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .tutorial-image {
        max-width: 400px;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
