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; /* 부드러운 스크롤 */
}

/* 헤더 스타일 */
.header {
    background-color: #00264d;
    color: white;
    text-align: center;
    padding: 20px;
    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);
    }
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header nav {
    margin-top: 10px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    margin: 0 15px;
    font-size: 1.2em;
    font-weight: 600;
    transition: color 0.3s, font-size 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-link:hover {
    color: #b3cce6;
    font-size: 1.3em;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background-color: #b3cce6;
    text-decoration: underline;
}

/* 홈 로고 스타일 */
.home-logo img {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 60px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background-color: #00264d;
    padding: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-logo img:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    background-color: #004080;
}

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

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

/* 섹션 스타일 */
section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

section h2, section h3 {
    margin-bottom: 20px;
    color: #00264d;
    text-transform: capitalize;
    animation: fadeInUp 0.6s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 리스트 스타일 */
section ul {
    list-style: disc;
    margin-left: 20px;
}

section li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}
section blockquote {
    font-style: italic;
    border-left: 5px solid #004080;
    padding: 10px;
    margin: 20px auto;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    color: #555;
    text-align: center;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #004080;
    color: white;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #00264d;
    transform: translateY(-3px);
}
.art-works {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

.art-gallery {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.art-gallery figure {
    width: 48%;
    text-align: center;
}
.art-gallery 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;
}
.art-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.art-gallery figcaption {
    font-size: 1em;
    color: #555;
    margin-top: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
}

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

th {
    background-color: #004080;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    width: 200px;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #004080;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@media (max-width: 768px) {
    .nav-link {
        font-size: 1em;
    }
    .art-gallery {
        flex-direction: column;
    }
    .art-gallery figure {
        width: 100%;
    }
    section {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .nav-link {
        font-size: 0.9em;
    }
    main, section {
        padding: 20px;
    }
    .art-gallery img {
        width: 100%;
    }
}
