body {
	margin:0;
	color: #3c4858;
	font-weight: 300;
	font-family: Arial, Helvetica, sans-serif;
	word-break: keep-all;
    line-height: 1.618;
    -webkit-tap-highlight-color : transparent !important;
}

ul {
    list-style-type: none;
}

.image-container {
    min-height: 300px;
    position: relative;
    height: auto;
    background-image: url('./CSS/image/page_thumnail/children.jpg');
    background-position: center center;
    background-size: cover;
	padding-bottom: 178px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 회색 필터 */
    z-index: 1;
}

.centered-text {
	position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 39px;
    color: white;
    z-index: 2;
    text-align: center;
    font-weight: bold;
}

.letter-background {
    background-color: #ffffff; /* 글 영역 전체의 흰색 배경 */
    padding-top: 40px; /* 편지지가 위로 올라가 있는 것처럼 보이게 하기 위해 여백 추가 */
}

.letter-section {
    position: relative;
    margin: 0px 30px;
    padding: 70px 25.8% 1px;
    background-color: #fff;
    border-radius: 8px 8px 0px 0px;
    z-index: 2;
    margin-top: -100px;
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
    font-size: 18px;
}

.letter-section p {
    margin-top: 20px; /* 선 아래의 첫 번째 글과 간격 조정 */
}

.letter-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px; /* 아랫부분이 살짝 짤리도록 설정 */
    background: linear-gradient(to bottom, rgb(255, 255, 255), rgba(249, 244, 231, 0));
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

blockquote p {
    font-style: italic;
}

a {
    color: #e91e63; /* 링크 기본 색상 */
    text-decoration: none;
    transition: opacity 0.3s ease; /* 자연스러운 투명도 변화 */
}

a:hover {
    opacity: 0.7; /* 마우스를 올렸을 때 살짝 투명도가 줄어듦 */
}

/* 최상단 이동 버튼 스타일 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 45px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%; /* 버튼을 원형으로 만들기 */
    background-color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top img {
    width: 100%;
    height: 100%;
    object-fit: none;
}

/* 버튼이 나타날 때 */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

h6 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 15px;
}

.responsive-img {
    width: 100%; /* 부모 요소의 너비에 맞게 */
    height: auto; /* 비율을 유지하면서 자동 조정 */
    display: block; /* 하단에 불필요한 여백 제거 */
    margin: 0 auto; /* 중앙 정렬 */
}

@media (max-width: 768px) {
    body {
        word-break: auto-phrase;
    }

    .letter-section {
        padding: 70px 11.8% 1px;
    }

    .centered-text {
        word-break: break-word; /* 표준 속성 */
        word-wrap: break-word; /* 구형 브라우저 지원 */
        overflow-wrap: break-word; /* 최신 표준 */
        white-space: normal; /* 긴 텍스트를 줄바꿈 */
        white-space: nowrap;
        font-size: 24px;
    }

    a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mobile-nav.open {
        position: fixed;
    }

    .logo-container {
        position: fixed;
        padding-left: 15px!important;
        width: 100%;
    }
}

    /* iframe을 반응형으로 만드는 스타일 */
    .responsive-iframe {
        position: relative;
        width: 100%; /* 부모 요소의 너비를 따라감 */
        height: 0; /* 높이를 0으로 설정하고 아래 패딩 비율로 높이를 정의 */
        padding-bottom: 75%; /* 4:3 비율 유지 (450 / 600 * 100%) */
    }

    .responsive-iframe iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* 부모 요소의 너비에 맞춤 */
        height: 100%; /* 부모 요소의 높이에 맞춤 */
        border: 0; /* 테두리 제거 */
    }
