@charset "utf-8";

html {
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
}
ul {
    list-style-type: none;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    background-color: rgb(247, 244, 186);
}
article {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background-color: #ffffff;
    min-height: 100vh;
}
h1 {
    padding-bottom: 5px;
    font-size: 150%;
    margin: 0;
}
input[type="text"],
input[type="file"]{
    /* display: block; */
    margin-left: 20px;
}
.content-wrap {
    margin: 30px;
}
h2 {
    font-size: 110%;
    padding: 0 55px;
    display: inline-block;
    position:relative;
}
h2:before, h2:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: black;
}
h2:before {
  left:0;
}
h2:after {
  right: 0;
}
.sub-title {
    text-align: center;
    margin-bottom: 30px;
}
.post-wrap {
border-bottom: 1px solid #333;
padding: 20px 0;
}
.post-list {
display: grid;
grid-template-columns: 1fr 1fr 5fr;
grid-template-rows: repeat(3, auto);
grid-column-gap: 0px;
grid-row-gap: 20px;
justify-content: space-between;
}
.icon {
grid-area: 1 / 1 / 1 / 1;
width: 40px;
height: 40px;
overflow: hidden;
border-radius: 20px;
border: 1px solid #333;
}
.icon img {
width: 100%;
height: auto;
}
.name { grid-area: 1 / 2 / 2 / 3; }
.time { 
    grid-area: 1 / 4 / 2 / 6;
    justify-self:end;
 }
.message { grid-area: 2 / 1 / 3 / 6; }
.reply-btn { grid-area: 3 / 1 / 4 / 6; }

.head-wrap {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #999999;
}
.message {
    overflow-wrap: anywhere;
}
.my-img {
    max-width: 200px;
}
.co-table {
    border: 1px solid #999;
    margin: 30px 0;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #999;
    padding: 10px;
}
th {
    font-size: 0.9rem;
}
@media (max-width: 600px) {
h1 {
    margin: 0;
    padding-top: 20px;
}
article {
    width: auto;
    margin: 0 15px;
}
.head-wrap {
    display: block;
}
.logout-btn {
    text-align: right;
}
}