/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* variables */

:root {
    --post-text-secondary-color: #0f0f0f;
    /* #828282 */
    --post-color: #f9f98b;
    --post-text-color: #000000;
}


/* global */
html {
    font-size: 16px;
    font-weight: 400;
    scroll-behavior: smooth;
}

/* header */

header {
    border-bottom: #131313 solid 2px;
    padding-bottom: 1rem;
    margin-bottom: 4rem;
}

.title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-image {
    height: 64px;
    width: 64px;
    vertical-align: middle;
}

/**/
.controls {
    float: right;
}

#logout {
  display: inline;
}

/**/

body{
    background-color: #ededed;
    padding:5em;
    font-family: "Inconsolata", monospace;
    font-weight: 400;
    font-style: normal;
}

/* log in form */

.login tr > td {
  padding-bottom: 1em;
}

.login input {
    display: block;
}

.login-btn {
    margin: 1rem 0;
    padding: 0.2rem 0.4rem;
}

/* grid display */

.deck {
    display: grid;
    gap: 5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
}

/*
#f9f900
*/

.card{
    border: solid var(--post-border-color) 2px;
    background-color: var(--post-color, #f9f98b);
    padding: 1rem;
    border-radius: 0;
    width: auto;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
    box-shadow: 8px 8px 2px 2px #e0e0e0;
    color: var(--post-text-color, #000);
    position: relative;
}

.card a,
.card a:visited,
.card a:active {
    color: var(--post-text-color, rgba(0, 0, 255, 1));
    text-decoration: none;
}

.card p {
    font-weight: 500;
    font-size: 18px;
}

/* */

.comment-counts {
    position: absolute;
    bottom: 1rem;
    color: var(--post-text-secondary-color, #828282);
    font-weight: 400;
}

.comment-counts a,
.comment-counts a:visited,
.comment-counts a:active {
    color: var(--post-text-secondary-color, rgba(0, 0, 255, 1));
    text-decoration: none;
}

.replies {
    border-left: #828282 1px solid;
    padding-left: 1rem;
}

.notes {
    font-family: "IBM Plex Sans Condensed", monospace;
    font-weight: 400;
    color: var(--post-text-secondary-color, #828282);
}

/* mesages */

.replies {
    margin-left: 1rem;
}

.messages {
    margin: 0;
}

.messages li {
    list-style: none;
}


/* anchors */

a,
a:visited,
a:active {
    color: rgba(0, 0, 255, 1);
    text-decoration: none;
}

.controls a svg, .controls button svg {
  width: auto;
  min-height: 1.5rem;
  vertical-align: middle;
}



/* forms */

.form-container {
    border: solid 1px black;
    margin: auto;
    padding: 1rem;
}

form label {
    display: block;
}

.post-form textarea {
    width: 80%;
}

.post-form input {
    width: 40%;
}

.post-form input.color-input {
    width: 60px;
    padding: 0;
    border: none;
    background: none;
}


/* post view */

p {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.btn {
    margin: 1rem 0;
}

/* mobile */

@media only screen and (max-width: 600px) {

.card {
    padding: 2rem;
    max-width: 300px;
    margin: auto;
    min-height: 300px;
}

p {
    overflow-wrap: anywhere;
}


}
