body {
    font-family: sans-serif;
    font-size: 18px;
    margin: 2% 20%;
    color: #a9afe6;
}

nav {
    text-align: center;
}

label {
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

input {
    font-size: 20px;

    border: solid #8b8f99;
    border-radius: 5px;

    height: 30px;
    width: 100%;

    background-color: #f0f0f0;
}

button {
    background-color: inherit;
    color: #a9afe6;
    border: none;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 5%;
    background-color: white;

    font-size: 20px;
    gap: 30px; 
}

#add-blog {
    font-size: 1.5em;
}

/* || Modal for adding blog */
.modal {
    padding: 15px;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 550px;

    border-radius: 5px;
    border: solid #c8c8c8;
    background-color: white;

    /* in front of everything */
    z-index: 100;
    transform: translate(-50%, -50%);

    /* scroll when textarea is too long */
    overflow-y: scroll;
}

/* darker background when modal is opened */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* in front of everything but the modal */
    z-index: 50;

    background: rgba(0, 0, 0, 0.6);
}

.closed {
    display: none;
}

.fields {
    display: flex;
    align-items: center;

    border-radius: 10px;
}

#modal-title {
    text-align: center;
}

#submit-blog {
    background-color: #8bbc8a;
    color: black;
    font-weight: bold;
    font-size: 1.20em;

    border-radius: 10px;
    height: 50px;
    width: 49%;
}

#exit-blog {
    background-color: #ac7885;
    color: black;
    font-weight: bold;
    font-size: 1.20em;

    border-radius: 10px;
    height: 50px;
    width: 49%;
}

/* || resizeable textbox */
.grow-wrap {
    display: grid;
}

.grow-wrap::after {
    /* Note the weird space! Needed to preventy jumpy behavior */
    content: attr(data-replicated-value) " ";

    /* This is how textarea text behaves */
    white-space: pre-wrap;

    /* Hidden from view, clicks, and screen readers */
    visibility: hidden;
}

.grow-wrap > textarea {
    /* You could leave this, but after a user resizes, then it ruins the auto sizing */
    resize: none;

    /* Firefox shows scrollbar on growth, you can hide like this. */
    overflow: hidden;
}

.grow-wrap > textarea,
.grow-wrap::after {
    background-color: #f0f0f0;
    border-radius: 5px;

    border: solid #8b8f99;
    padding: 0.5rem;
    font: inherit;

    /* Place on top of each other */
    grid-area: 1 / 1 / 2 / 2;
}