/* It is a collection of css components for each timeline pages. */

.timeline-container {
    display: flex;
    margin: 20px;
    margin-bottom: 70px;
    gap: 20px;
    overflow: hidden;
    height: calc(100vh - 40px);
}

.timeline-container-for-post-list {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    padding-right: 20px;
    scrollbar-width: none;
}

.timeline-container-for-post-detail {
    flex: 1;
    /* padding-left: 30px; */
    /* border-left: 10px solid #191919; */
    position: sticky;
    top: 100px;
    height: 100%;
    max-height: calc(100vh - 40px);
    scrollbar-width: none;
    overflow-y: auto;
}

.timeline-container-for-post-detail .title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #FFF;
}

.timeline-container-for-post-detail .body {
    font-size: 1.1rem;
    line-height: 2.1rem;
    color: #babcbf;
}

.timeline-container-for-post-detail .body p {
    margin-bottom: 30px;
}

.timeline-post {
    border: 1px solid #222;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 30px;
    transition: 0.1s ease-in-out;
}

.timeline-post:last-child {
    margin-bottom: 0;
}

.timeline-post:hover {
    cursor: pointer;
    background-color: #16161d;
}

.timeline-post .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 20px;
    border-left: 9px solid #00bcd4;
    padding-left: 10px;
}

.timeline-post .body {
    font-size: 1.0rem;
    color: #babcbf;
    line-height: 1.7rem;
    margin-bottom: -0.3675px;
}



.timeline-post .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    line-height: 0;
    justify-content: right;
}

.timeline-post .date::before {
    content: "";
    color: #999;

    width: 1rem;
    height: 1rem;
    margin-right: 6px;

    background-image: url("../img/time_symbol.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.timeline-post .date {
    display: flex;
    font-size: 0.8em;
    color: #999;
    align-items: center;
}

.timeline-post .category {
    display: flex;
    font-size: 0.8em;
    color: #999;
    align-items: center;
    margin-right: 20px;
}

.timeline-post .category::before {
    content: "#";
    color: #999;
}

.timeline-post-category {
    margin-bottom: 20px;
}

.timeline-post-category ul {
    display: flex;
    gap: 10px;
    list-style: none;
}

.timeline-post-category-item {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.1s ease-in-out;
}

.timeline-post-category-item:hover {
    background-color: #16161d;
}


.timeline-post-form {
    display: flex;
    flex-direction: column;
}

.timeline-post-form [type="text"],
.timeline-post-form textarea {
    width: 600px;
    background-color: #2a2a2c;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 10px;
    color: #FFF;
    font-size: 1rem;
    outline: none;
    transition: 0.1s ease-in-out;
}

.timeline-post-form select {
    width: 200px;
    background-color: #2a2a2c;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 10px;
    color: #FFF;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: 0.1s ease-in-out;
    margin-bottom: 20px;
}

.timeline-post-form [type="submit"] {
    width: 100px;
    background-color: #2a2a2c;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 10px;
    color: #FFF;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: 0.1s ease-in-out;
}

.timeline-post-button {
    display: flex;
    align-items: center;
    background-color: #16161d;
    border: 1px solid #222;
    border-radius: 7px;
    padding: 15px 20px;
    letter-spacing: 0.1rem;
    color: #FFF;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: 0.1s ease-in-out;
    margin-bottom: 20px;
}

.timeline-post-button::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 10px;
    align-items: center;


    background-image: url("../img/post_icon.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

}