html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* 연한 회색 배경 */
    color: #333; /* 검은 텍스트 */
    line-height: 1.6; /* 기본 줄 간격 */
    scroll-behavior: smooth; /* 부드러운 스크롤 */
}

h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

/* 헤더 스타일 */
.header {
    background-color: #00264d; /* 남색 배경 */
    color: white; /* 흰색 텍스트 */
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
    position: relative; /* 홈 버튼 위치를 위한 상대 위치 */
    border-bottom: 5px solid #004080;
    animation: fadeInDown 1s ease-in-out;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 홈 버튼 스타일 */
.home-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background-color: white; /* 홈 버튼 배경 */
    border-radius: 50%; /* 원형 */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
    transition: transform 0.3s ease, box-shadow 0.3s;
    z-index: 10;
}

.home-logo img {
    width: 40px; /* 홈 버튼 아이콘 크기 */
    height: auto;
    border-radius: 50%; /* 아이콘도 원형 */
}

.home-logo:hover {
    transform: scale(1.1); /* 확대 효과 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* 그림자 강화 */
}

/* 헤더 제목 스타일 */
.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 내비게이션 스타일 */
.header nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff; /* 흰색 텍스트 */
    margin: 0 15px;
    font-size: 1.2em;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: #b3cce6; /* 연한 남색 */
    background-color: rgba(255, 255, 255, 0.2);
}

/* 메인 콘텐츠 스타일 */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 비교 섹션 */
.comparison-section {
    padding: 30px;
    background-color: #ffffff; /* 흰색 배경 */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
    margin-bottom: 30px;
    text-align: center;
}

.comparison-section h2 {
    font-size: 2em;
    color: #00264d; /* 남색 */
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #004080; /* 남색 헤더 */
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* 갤러리 섹션 */
.gallery-section {
    padding: 30px;
    background-color: #ffffff; /* 흰색 배경 */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
    text-align: center;
}

.gallery-section h2 {
    font-size: 2em;
    color: #00264d; /* 남색 */
    margin-bottom: 20px;
}

figure {
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

figure img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

figure img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

figure figcaption {
    font-size: 1em;
    color: #555;
    margin-top: 10px;
}

/* 동영상 섹션 */
.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.video-container video {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-container video:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* 카드 스타일 */
.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 푸터 스타일 */
.footer {
    background-color: #00264d; /* 남색 배경 */
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    margin-top: 30px;
    border-top: 5px solid #004080;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .gallery-section figure img {
        max-height: 200px;
    }

    .nav-link {
        font-size: 1em;
    }

    .header h1 {
        font-size: 2em;
    }

    .card {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .home-logo {
        width: 50px;
        height: 50px;
    }

    .home-logo img {
        width: 30px;
        height: 30px;
    }

    .nav-link {
        font-size: 0.9em;
    }

    .card {
        max-width: 100%;
    }
}
