/* 전체 레이아웃 설정 */
body {
    font-family: "Pretendard", sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
}

/* 공통 컨테이너 스타일 */
.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;  /* 최대 너비를 600px로 설정 */
    text-align: center;
    margin-top: 100px;  /* 기존과 동일한 가운데 위치 */
}

/* 제목 스타일 */
h1, h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

/* 폼 스타일 */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 입력 필드 스타일 */
input, textarea {
    padding: 12px;
    font-family: "Pretendard", sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* 버튼 스타일 */
button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-family: "Pretendard", sans-serif;  /* 프리텐다드 폰트 적용 */
    transition: background 0.3s ease-in-out;
}

button:hover {
    background-color: #0056b3;
}

/* 삭제 버튼 스타일 */
.delete-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.delete-btn:hover {
    background-color: #cc0000;
}

/* 게시글 스타일 */
#posts {
    margin-top: 20px;
}

.post {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 링크 스타일 */
a {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

/* 메인 페이지 스타일 */
.main-container {
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: white;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 메인 페이지 버튼 스타일 */
.main-btn {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
    text-align: center;
    font-family: "Pretendard", sans-serif;
}

.main-btn:hover {
    background-color: #0056b3;
}

/* 좌측 상단의 로그인/회원가입 버튼 */
.top-btns {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.top-btns a {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-family: "Pretendard", sans-serif;
}

.top-btns a:hover {
    background-color: #0056b3;
}

/* 게시글 리스트 스타일 */
.post-list {
    margin-top: 20px;
    width: 100%;
}

.post {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 메인 페이지로 돌아가기 버튼 */
.main-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
}

/* 글 작성 입력란 및 목록 영역 넓히기 */
textarea {
    width: 100%;
    max-width: 100%; /* 글 입력란 최대 너비 100% */
}

#posts {
    width: 100%;
    max-width: 100%; /* 글 목록 영역 최대 너비 100% */
}

h1, .post-list {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

/* 로그인, 회원가입 박스 중앙 정렬 */
.container {
    margin-top: 100px;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
}
