/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nanum Gothic', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header, footer {
    background-color: #4285f4;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

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

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

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

.intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* 만화 컨테이너 스타일 */
.comic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.full-comic {
    max-width: 100%;
    height: auto;
    margin-bottom: 3rem;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.individual-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.panel {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
}

.panel h3 {
    background-color: #34a853;
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
}

.panel-img {
    width: 100%;
    height: auto;
    display: block;
}

.panel p {
    padding: 1rem;
    font-size: 0.95rem;
}

/* 결론 섹션 스타일 */
.conclusion {
    background-color: #f1f8e9;
    padding: 2rem;
    border-radius: 8px;
}

.conclusion h2 {
    color: #34a853;
    margin-bottom: 1rem;
    text-align: center;
}

.conclusion ul {
    list-style-position: inside;
    max-width: 800px;
    margin: 0 auto;
}

.conclusion li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
}

footer {
    padding: 1.5rem;
    font-size: 0.9rem;
    background-color: #3367d6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .individual-panels {
        grid-template-columns: 1fr;
    }
    
    .intro {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .panel h3 {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .conclusion h2 {
        font-size: 1.5rem;
    }
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.intro, .panel, .conclusion {
    animation: fadeIn 1s ease-in-out;
}

/* 접근성 향상 */
a:focus, button:focus {
    outline: 3px solid #4285f4;
}

/* 인쇄 스타일 */
@media print {
    body {
        background-color: white;
    }
    
    header, footer {
        background-color: white;
        color: black;
    }
    
    .panel {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .panel h3 {
        background-color: white;
        color: black;
        border-bottom: 1px solid #ddd;
    }
}
