/* 공통 스타일 설정 */
html, body {
    width: 100%;
}

@font-face {
    font-family: "CustomFont";
    src: url("font/ChosunCentennial_ttf.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: "CustomFont", sans-serif;
    line-height: 1.75; /* 가독성을 고려해 모든 line-height 통일 */
    font-size: 18px; /* 글로벌 폰트 크기 */
    color: #333;
    background-color: #f4f4f9;
    flex-wrap : nowrap;
    white-space: nowrap;
}

/* 헤더 스타일 */
.App-header {
    font-size: calc(12px + 2.5vmin); /* 한 곳에서 폰트 크기 정의 */
    position: relative;
    color: #222;
}

.nav {
    background-color: rgba(210, 139, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    padding: 10px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap : nowrap;
    white-space: nowrap;
}

.nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    position: relative;
    letter-spacing: 0.5px;
    transition: color 0.3s ease-in-out;
}

.nav li a:hover {
    color: #ffd700;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.nav a:hover::after {
    width: 100%;
    left: 0;
}

/* 헤더 이미지 애니메이션 */
@keyframes bgAnimation {
    0% {
        background-image: url('photo/가을1.jpg');
    }
    33% {
        background-image: url('photo/겨울1.jpg');
    }
    66% {
        background-image: url('photo/봄1.jpg');
    }
    100% {
        background-image: url('photo/메인사진.jpg');
    }
}

.header-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    animation: bgAnimation 9s infinite;
    opacity: 0.85;
    filter: brightness(90%);
}

/* 메인 섹션 */
.main {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #faf3e0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

section {
    text-align: center;
    width: 80%;
    max-width: 800px;
    padding: 40px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section .title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #d28b2e;
    text-align: center; /* 가운데 정렬 */
    word-wrap: break-word; /* 긴 단어가 있을 경우 자동 줄바꿈 */
    overflow-wrap: break-word; /* 긴 단어 줄바꿈 보완 */
    white-space: normal; /* 강제 한 줄 유지 해제 */
}

section p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

section button {
    background: #d28b2e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

section button:hover {
    background-color: #ba7725;
}

/* 푸터 */
footer {
    color: #fff;
    padding: 20px;
    background-color: #3a3a3a;
    text-align: center;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

footer ul li {
    display: inline-block; /* 한 줄로 정렬 */
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}