* {
  font-family: sans-serif;
}
body {
    background-color: #fefefe;
    padding: 20px;
}
h1 {
    margin-top: 0%;
    text-align: center;
    font-size: 30px;
    font-style: italic;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    max-width: 1600px;
    margin: 0 auto;
}

.sidebar {
    flex: 1;
    background-color: #f4f4f8;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.blog-titles {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}
.blog-titles h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}
.add-blog {
    background-color: #f9f9fb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
input[type=text] {
    width: 90%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}
textarea {
    width: 100%;
    height: 120px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-size: 16px;
    resize: none;
}
.add-blog button{
    background-color: blue;
    border: none;
    color: white;
    padding: 16px 32px;
    margin: 4px 2px;
    width: 70%;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.add-blog button:hover {
    background-color: darkblue;
}
.add-blog button:focus {
    outline: none;
    transform: translateX(20px);
}
#display-blog {
    flex: 3;
    padding: 20px;
    border-radius: 10px;
    max-width: 1000px;
    /* background-color: green; */
}

/* style dynamically added section */
.post {
    text-align: center;
    background-color: #f4f4f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.post img {
    width: 70%;
    height: auto;
    border-radius: 10px;
}
.post button {
    background-color: blue;
    border: none;
    color: white;
    padding: 16px 32px;
    margin: 4px 2px;
    width: 20%;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-right: 100px;
}
.post button:hover {
    background-color: darkblue;
}
.post button:focus {
    outline: none;
    transform: translateX(20px);
}

