body,
html {
  background-color: #2E3440;
  margin: 0 auto;
  padding: 0;
  color: white;
  text-align: center;
  /* width: 100%; */
  max-width: 800px;
  height: 100%;
  
}

body {
  padding: 0 30px;
  display: flex;
  flex-direction: column;
}

header{
  min-height: 41px;
  max-height: 41px;
}

/* //////////////// */
/* Main 부분 */

.board_container {
  border-radius: 5px;
}

#writeBtn {
  display: none;
}

#loginBtn {
  display: none;
}



#divide_line {
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
  height: 2vh;
}


h2,
p,
h3 {
  text-align: start;
}

h3 {
  margin-bottom: 0;
}

p {
  /* line-height: 0.2; */
  margin-top: 10px;
  /* 기본 줄간격 설정 */
}

form {
  margin-bottom: 20px;
}

input,
textarea {
  width: 95%;
  padding: 10px;
  margin: 5px 0 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

button {
  background-color: #FF4E15;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  border: 2px solid white;
}

#my_boards_container {
  display: flex;
}

#my_boards_container button{
  background-color: #2563EB;
}

#posts{
  margin-top: 20px;
}


.post {
  position: relative;
  border-bottom: 1px solid #ddd;
  padding: 10px;
  /* margin-bottom: 3vh; */
}

.post:hover{
  cursor: default;
  background-color: #3B4252;
}

/* .post:last-child {
  border-bottom: none;
} */

.post h2 {
  margin: 0 0 10px 0;
}


.comment {
  text-align: start;
  padding: 5px 0;
  border-top: 1px solid gray;
}

.countComments {
  color: #FF4E15;
}

.board_top {
  /* background-color: red; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.cardologue-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/* input {
  width: 50%;
  max-width: 300px;
  height: 1vh;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
} */


button:hover {
  border: 2px solid white;
  /* background-color: #0056b3; */
}

.error-message {
  color: red;
  text-align: center;
}

/* 엔터 치면 그대로 엔터친 효과 나타나도록 하기 */
textarea {
  white-space: pre-wrap;
}

/* 게시글 너무 길 때 줄이는 css */
.post-content {
  position: relative;
  overflow: hidden;
  max-height: 100px;
  transition: max-height 0.3s ease;
}

.more-link {
  display: block;
  margin-top: 10px;
  color: rgb(0, 140, 255);
  text-decoration: none;
  cursor: pointer;
}

.more-link.hide {
  display: none;
}

.show-full .post-content {
  max-height: none;
}

.show-full .more-link {
  display: none;
}

#pagination {
  text-align: center;
  margin: 20px 0;
}

#page-numbers {
  display: inline-block;
}

.page-number {
  display: inline-block;
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.page-number:hover {
  background-color: #f0f0f0;
}

.page-number.active {
  background-color: #FF4E15;
  color: white;
  border-color: #FF4E15;
}

.divide-line:last-child {
  display: none;
}

.hidden {
  display: none;
}

#icons8 {
  text-align: end;
  color: gray;
  font-size: 10px;
}

/* 맨 위로 버튼 */
#scroll_top_button{
  display: none;
  position: fixed;
  background-color: #181B23;
  height: 50px;
  width: 50px;
  bottom: 80px;
  right: 20px;
  border-radius: 50%;

  color: #FF4E15;
  font-weight: 900;
  /* background-color: white; */
}
