.forum-main {
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, var(--background-radial-grad));
    border-radius: 10px;
    border: 2px solid var(--primary-green);
    min-width: 800px;
    width: 65%;
    text-align: center;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.forum-main h2 {
    display: inline-block;
    margin: 0;
    font-size: 3rem;
    vertical-align: middle;
    color: var(--ternary-green);
}

.forum-add-button {
    background-color: var(--secondary-green);
    color: white;
    border: none;
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.forum-add-button:hover {
    background-color: var(--ternary-green);
    transform: scale(1.05);
}

.vlakno-add-button {
    background-color: var(--secondary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.vlakno-add-button:hover {
    background-color: var(--ternary-green);
    transform: scale(1.05);
}

.main-article.vlakno {
    display: flex;
    flex-direction: column;
}

.forum-section,
.threads-section,
.chat-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.forum-topic,
.thread {
    padding: 15px;
    background-color: white;
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    margin-top: 5px;
}

.forum-topic h3 a,
.thread h3 a {
    color: var(--ternary-green);
    text-decoration: none;
    transition: color 0.3s;
}

.forum-topic h3 a:hover,
.thread h3 a:hover {
    color: var(--secondary-green);
}

.chat-section .messages {
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    max-height: 300px;
    overflow-y: auto;
    width: 95%;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    position: relative;
}

.chat-section .message {
    float: left;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.comment-actions {
    display: inline-block;
    margin-left: 10px;
}

.comment-actions a {
    margin-right: 5px;
    text-decoration: none;
    color: inherit;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
}

.chat-form textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid var(--primary-green);
    border-radius: 8px;
}

.chat-form button {
    align-self: flex-end;
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.ChatFoto {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid black;
    margin-right: 5px;
}

.headchatarticle {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 15px;
    font-size: larger;
    border-radius: 8px;
    border: 1px solid var(--primary-green);
}

.headchatarticle p strong {
    text-wrap: wrap;
}

@media (max-width: 1000px) {
    .forum-main {
        padding: 15px;
        min-width: auto;
        width: 85%;
    }

    .forum-main h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 700px) {
    .headchatarticle {
        margin: 0;
    }

    .headchatarticle p {
        font-size: 17px;
    }

    .forum-main {
        width: 80%;
        padding: 10px;
        width: 95%;
    }

    .forum-main h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}