html, body { height: 100%; margin: 0; padding: 0; }

body { display: flex; flex-direction: column; min-height: 100vh; }

.memorial-container { flex: 1; width: 100%; max-width: 800px; margin: 50px auto; padding: 0 20px; box-sizing: border-box; }

.memorial-header { text-align: center; margin-bottom: 40px; }
.memorial-header h2 { font-family: "Gothic A1", sans-serif; font-size: 2.2rem; font-weight: bolder; color: #2d5a27; margin-bottom: 15px; }
.memorial-header p { color: #666; line-height: 1.6; }

.write-box { background: #fdfcf9; border: 1px solid #eee; padding: 30px; border-radius: 15px; margin-bottom: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.write-row { display: flex; gap: 15px; margin-bottom: 15px; }
.write-row input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Pretendard'; }

.write-content { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; height: 120px; resize: none; margin-bottom: 15px; box-sizing: border-box; font-family: 'Pretendard'; line-height: 1.6; }
.btn-post { float: right; padding: 12px 40px; background: #2d5a27; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }

.post-card { background: white; border-bottom: 1px solid #eee; padding: 25px 10px; position: relative; transition: 0.3s; }
.post-text { line-height: 1.8; color: #444; white-space: pre-wrap; font-size: 1.05rem; }

html, body { height: 100%; margin: 0; padding: 0; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; -webkit-font-smoothing: antialiased; }

body { display: flex; flex-direction: column; min-height: 100vh; }

.memorial-container { flex: 1 0 auto; width: 100%; max-width: 800px; 
    margin: 50px auto; 
    padding: 0 20px; 
    box-sizing: border-box;
}

.memorial-header { text-align: center; margin-bottom: 40px; }
.memorial-header h2 { font-size: 2.2rem; font-weight: bolder; color: #2d5a27; margin-bottom: 15px; }
.memorial-header p { color: #666; line-height: 1.6; }

.write-box { background: #fdfcf9; border: 1px solid #eee; padding: 30px; border-radius: 15px; margin-bottom: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.write-row { display: flex; gap: 15px; margin-bottom: 15px; }
.write-row input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
.write-content { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; height: 120px; resize: none; margin-bottom: 15px; box-sizing: border-box; font-family: inherit; line-height: 1.6; }
.btn-post { float: right; padding: 12px 40px; background: #2d5a27; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }

.post-card { background: white; border-bottom: 1px solid #eee; padding: 25px 10px; position: relative; transition: 0.3s; word-break: break-all; }
.post-info { font-size: 0.9rem; color: #888; margin-bottom: 12px; line-height: 1.2; }
.post-info b { color: #2d5a27; font-weight: 600; margin-right: 10px; font-size: 1rem; }
.post-text { line-height: 1.8; color: #444; white-space: pre-wrap; font-size: 1.05rem; display: block; margin-top: 5px; }

.btn-delete { position: absolute; top: 20px; right: 10px; background: #f8f8f8; border: 1px solid #eee; color: #999; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.btn-delete:hover { background: #dc3545; color: white; border-color: #dc3545; }

/* 반응형 웹 */
@media (max-width: 768px) {
    .memorial-header p { font-size: 14px !important; line-height: 1.6 !important; max-width: 220px !important; margin: 0 auto !important; word-break: keep-all !important; }

    .write-row { display: flex !important; flex-direction: row !important; gap: 8px !important; }
    .write-row input { width: 50% !important; padding: 10px !important; font-size: 14px !important; }

    .btn-post { float: none !important; width: 100% !important; margin-top: 10px; }

    .post-card { padding: 20px 10px !important; }
    .btn-delete { top: 15px; right: 10px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .memorial-container { min-height: 60vh; }
}
