* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: #f9f9f9;
}

header {
    background: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 a {
    text-decoration: none;
    color: #333;
}

header h1 img {
    height: 150px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    max-width: 100%;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

input, button {
    padding: 6px 10px;
}

.container {
    display: flex;
    padding: 30px 40px;
}

.sidebar {
    width: 220px;
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.sidebar h3 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
    margin-bottom: 15px;
    font-size: 16px;
}

.tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

.tag span:hover {
    color: green;
}

.tag.active span {
    color: green;
    font-weight: bold;
}

.tag button {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
}

.tag-add {
    margin-top: 10px;
}

.content {
    flex: 1;
    padding-left: 40px;
}

.post {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post h4 {
    margin: 0 0 10px;
}

.tags {
    color: #777;
    font-size: 13px;
}

#no-post-message {
    color: #999;
    font-size: 16px;
}


.write-container {  
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


#write-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#wrote-form textarea {
    width: 100%;
    height: 400px;           /* 높이 늘리기 */
    resize: vertical;        /* 세로 방향으로 사용자가 직접 크기 조절 가능 */
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    line-height: 1.5;
    box-sizing: border-box;
    
}

#write-form button {
    width: 100%;
    padding: 12px;
    background: green;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}
