body {
    background-color: rgb(12, 26, 50);
}

.card {
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(226, 226, 226);

    .card-header {
        display: flex;
        flex-direction: row;
        align-items: center;

        img {
            object-fit: cover;
            width: 3rem;
            height: 3rem;
        }

        p {
            font-weight: bold;
            font-size: 150%;
        }
    }

    .card-body {

        .card-info {
            font-size: 70%;
            color: rgba(255, 255, 255, 0.5)
        }
        
        .card-img {
            max-height: 50vh;
            object-fit: cover;
        }

        .img-alt-text {
            font-size: 80%;
            color: rgba(255, 255, 255, 0.5)
        }
    }
}

.new-post {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgb(13, 31, 222);
    color: white;

    height: 4vw;
    width: 4vw;
    border-width: 0;
    border-radius: 2vw;
    padding: 0 1.2rem;

    transition:
    width 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.new-post:hover {
    background-color: rgb(255, 255, 255);
    color: black;
    width: fit-content;
    gap: 0.5rem;
}

.new-post::after {
    content: "";
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.3s ease;
}

.new-post:hover::after {
    content: "New Post";
    max-width: 100px;
}

.modal-content {
    background-color: rgb(0, 0, 0);
    color: rgb(226, 226, 226);

    input, textarea {
        background-color: rgb(33, 33, 33);
        color: white;
    }

    input:focus, textarea:focus {
        background-color: rgb(168, 168, 168);
        color: black;
    }

    input::placeholder, textarea::placeholder {
        background-color: rgb(33, 33, 33);
        color: white;
        opacity: 1;
    }

    input:focus::placeholder, textarea:focus::placeholder {
        background-color: inherit;
        color: black;
        opacity: 1;
    }

    #img-preview {
        anchor-name: --img-preview;
    }

    #img-remove {
        position: absolute;
        position-anchor: --img-preview;
        top: anchor(top);
        right: anchor(right);

        border-color: white;

        transition:
            width 0.3s ease,
            background-color 0.3s ease,
            color 0.3s ease;
    }

    #img-remove:hover {
        background-color: rgb(255, 255, 255);
        color: black;
        width: fit-content;
        gap: 0.5rem;
    }

    #img-remove::after {
        content: "";
        white-space: nowrap;
        max-width: 0;
        overflow: hidden;
        transition: max-width 0.3s ease;
    }

    #img-remove:hover::after {
        content: "Remove File";
        max-width: 100px;
    }
}