* {
    color: var(--font);
}

#userInfo {
    background: linear-gradient(
        90deg,
        var(--bg-dark-opacity) 0%,
        var(--bg-dark) 200%
    );
    display: flex;
    border-bottom: solid 2px var(--color-pry);
    a {
        position: absolute;
        margin: 1dvw 0 0 1vw;

        height: 5vh;
        display: flex;

        align-items: center;
        color: var(--eternal-blue);
        text-transform: uppercase;
        font-weight: 600;
        span {
            background-color: var(--eternal-blue);
            color: var(--bg-dark);
            padding: 1dvh;
            margin: 0 1dvw 0 0;
            border-radius: 100vw;
        }
    }
    ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        img {
            cursor: pointer;
            width: 20dvh;
            height: 20dvh;
            object-fit: cover;
            border-radius: 100vw;
            border: solid 2px var(--eternal-blue);
            margin: 2dvh;
        }
        label {
            font-family: "Roboto Mono", monospace;
            font-size: 1.5rem;
            margin: 0 0 2vw 0;
        }
    }
}

#posts {
    width: 100%;
    min-height: 60dvh;
    justify-content: center;
    display: flex;
    margin: 1dvh 0 3dvh 0;
    ul {
        width: 98%;
        max-width: 98%;
        gap: 1dvh;
        display: flex;
        flex-wrap: wrap;

        a li {
            position: relative;
            width: 24dvw;
            height: calc(15dvw * 2);

            background-color: var(--lines);
            display: flex;
            flex-direction: column;
            align-items: center;
            #delpost {
                position: absolute;
                top: 1dvh;
                right: 1dvh;
                padding: 1dvh;
                background-color: var(--eternal-blue);
                color: var(--bg-dark);
                border-radius: 100vw;
                transition: 0.3s;
            }
            #delpost:hover {
                background-color: #ff0000;
                color: #ffffff;
            }
            img {
                object-fit: cover;
                margin: 1dvh 0 1dvh 0;
                width: 95%;
                height: 30dvh;
            }
            div {
                position: relative;
                display: flex;
                border-bottom: solid 1px var(--font);
                width: 100%;
                height: 1.5dvw;
                overflow: hidden;
                padding: 1dvh 0 0 0;
                label {
                    padding: 0 0 0 1dvh;
                    width: 100%;
                }
                h3 {
                    right: 1dvh;
                    padding: 0 1dvh 0 1dvh;
                    border-left: solid 2px var(--font);
                    text-align: right;
                }
            }
            p {
                width: 95%;
                overflow: hidden;
                padding: 1dvh;
            }
            hgroup {
                position: absolute;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: var(--bg-light);
                padding: 1dvh;
                border-radius: 1dvh;
                right: 1dvh;
                bottom: 1dvh;
                z-index: 100;
                span {
                    margin: 0 1dvh 0 0;
                }
            }
        }
    }
}

@media (width < 600px) {
    #posts {
        ul {
            overflow-x: hidden;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            a {
                width: 98%;
                li {
                    width: 100%;
                    height: calc(60dvw * 2);
                    img {
                        width: 40dvh;
                        height: 40dvh;
                        object-fit: cover;
                    }
                    div {
                        display: flex;
                        align-items: center;
                        height: 6dvw;
                        label {
                            font-size: 1rem;
                            width: 70%;
                        }
                        h3 {
                            width: 30%;
                            font-size: 1rem;
                        }
                    }
                }
            }
        }
    }
}
