
.posts-area {
    display: flex;
    flex-direction: row;
    justify-content: center;


    min-height: 100vh;
    height: fit-content;
    width: 100vw;

    background: linear-gradient(55deg, var(--theme-colour1), var(--theme-colour2), var(--theme-colour3));
}

.posts-container {

    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;

    width: 70vw;
    max-width: 50vw;
    min-height: 5vh;
    height: fit-content;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;

    border-radius: 10px;
    border: solid transparent 1px;

    background-color: rgba(54, 53, 58, 0);
}

.post-container {
    display: inline-flexbox;
    margin: 10px;
}

.post {
    display: flex;
    flex-direction: column;
    background-color: var(--post-colour);
    padding: 1rem;
    width: clamp(30rem, 30vw, 50rem);

    border-radius: 10px;
    transition: all 0.5s ease;
}

.post:hover {
    transform: translateY(-0.5rem);
}

.post-profile-container {
    display: flex;

    margin-top: 0rem;

    #post-pfp {
        height: 3rem;
        border-radius: 100%;
    }
}

#post-mname {
    color: var(--primary-font-colour);
    font-weight: 450;
    display: none;
}

#post-username {
    color: var(--accent-font-colour);
    font-size: clamp(10px, 1.2vw, 14px);
}

.post-name-container {
    padding: 1rem;
}

.post-body {
    color: var(--primary-font-colour);
    font-size: clamp(10px, 1.2vw, 14px);
}

.post-image-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    img {
        display: block;
    }
}

.post-image {
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 8px;
  object-fit: contain;
}

#new-post-controls {
    display: flex;
    flex-direction: column;
    
}

#post-text-input {
    font-size: clamp(10px, 1.2vw, 14px);
    font-family: 'Roboto', 'Bahnschrift', 'Segoe UI', sans-serif;

    width: clamp(30rem, 30vw, 50rem);
    height: fit-content;
    min-height: 7rem;

    margin-bottom: 0.3rem;
    padding: 10px;
    resize: none;


    background-color: var(--post-colour);
    color: var(--primary-font-colour);
    opacity: 0.3;
    border-color: transparent;

    border-radius: 10px;
}

#post-text-input:focus {
    outline: none;
    opacity: 1;
}

#post-image-input {
    background: black;
    display: none;
}

.make-post-button {

    font-size: 2vh;

    border: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: transparent;

    width: 40%;
    height: 4vh;

    color: var(--primary-font-colour);
    background-color: var(--post-colour);

    transition: all 0.3s ease;
}

.make-post-button:hover {
    transform: scale(1.1);
}

.make-post-button:active {
    opacity: 0.1;
    transition: opacity 0.1s ease;
}




@media (max-aspect-ratio: 3/4) {

    #post-username {
        font-size: 1.2vh;
    }

    .post-body {
        font-size: 2vh;
        padding: 1vw;
    }

    .post-name-container {
        padding-top: 0.7rem;
        padding-left: 0.3rem;
    }

    #post-text-input {
        font-size: 1.5vw;
    }

    #post-text-input::placeholder {
        font-size: 1.5vw; /* Adjust this value as needed */
    }

    .make-post-button {
        font-size: 1.8vw;
        height: 3vw;

        margin-top: 2px;
    }


}