html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-width: 100%;
}

body {
    background: linear-gradient(45deg, rgba(245, 245, 245, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(235, 235, 235, 1) 50%, rgba(255, 255, 255, 1) 70%, rgba(245, 245, 245, 1) 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradient 15s ease infinite;
    height: auto;
}

a,
button {
    cursor: pointer;
}

main {
    height: auto;
    width: 100%;
    display: grid;
    justify-items: center;
    background: transparent;
}

#post-section {
    height: auto;
    width: 50%;
    display: grid;
    justify-items: center;
    align-items: center;
    background: transparent;
    gap: var(--gap--height--2);
    margin: var(--margin--height--2);
    grid-template-rows: repeat(1, auto);
}

.post {
    display: grid;
    background-color: var(--white);
    border-radius: var(--radius--2);
    min-width: 200px;
    width: auto;
    box-shadow: .5vh .5vh .5vh 0vh rgba(173, 173, 173, 0.493);
    padding: 2em;
    opacity: 0;
    transform: translateX(-100%);
    animation: slideIn 0.5s ease forwards;
    animation-delay: min(calc((var(--i) - 1) * 0.2s), 1s);
}

.post a {
    width: fit-content;
    color: var(--black);
}

.post-title {
    padding: var(--h1-padding);
    margin: var(--h1-margin);
}

.post-stats {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.post-comment-div {
    padding: var(--gap--height--1);
    border-bottom: 1px solid rgba(216, 216, 216, 0.493)
}

.post-comment-section {
    background-color: var(--light-gray);
    padding: 1em;
    border-radius: var(--radius--1);
    box-shadow: .5vh .5vh .5vh 0vh rgba(173, 173, 173, 0.493);
}

.post-comment-username {
    margin: 0;
    margin-bottom: .4em;
    color: var(--black);
    text-decoration: none;
}

.post-comment-label {
    margin: 0;
    margin-bottom: .5em;
}

.post-comment-body {
    margin: 0;
    margin-left: .8em;
}

.post-tag-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#user-profile {
    display: flex;
    flex-direction: column;
    width: 25rem;
    height: 40rem;
    border: none;
    border-radius: 1rem;
    transform: translateY(100%);
    animation: slideIn 0.3s ease forwards;
}

#user-profile>div {
    display: flex;
    height: 100%;
    padding: 2px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#user-profile>div * {
    margin: auto;
    padding: .1rem;
    text-align: center;
}

#user-profile img {
    width: 5rem;

}

#user-profile button {
    width: 2rem;
    height: 2rem;
    border-radius: .8rem;
    border: none;
    background-color: var(--light-gray);
    align-self: flex-end;
}

#user-profile button:focus {
    outline: none;
}


#user-profile button:hover {
    background-color: var(--gray);
    transition: background-color 0.1s ease-in-out;
    animation: floatUp 0.2s ease forwards;
}

#user-profile::backdrop {
    backdrop-filter: blur(2px);
}

@media screen and (max-width: 1024px) {
    .post {
        width: 80%;
    }

    #post-section {
        min-width: 0;
        width: 80%;
    }

    #user-profile {
        width: clamp(40%, 80%, 25rem);
    }
}