@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    font-family: Montserrat;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: .75rem;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

header {
    padding: .75rem;
    background-color: rgb(231,231,231);
    border-radius: .5rem;
}

.navbar {
    display: flex;
    width: 50%;
    margin: 0 auto;
    justify-content: space-between;
}

.navbar > a {
    margin-right: .75rem;
    text-decoration: none;
    color: black;
    font-weight: 500;
}

.navbar > a:hover {
    color: rgb(64,64,64);
}

.mainContent {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 1.5rem;
}

.mainText {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 18px;
}

input {
    font-family: inherit;
    background: white;
    border-style: solid;
    padding: .25rem;
    border-radius: .33rem;
}

button {
    font-family: inherit;
    background: white;
    border-style: solid;
    padding: .25rem;
    border-radius: .33rem;
    cursor: pointer;
}

.errorMessage {
    margin-top: .75rem;
    margin-bottom: .75rem;
    color: red;
    width: fit-content;
    animation-name: spin;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes spin {
    0% {transform: rotate(0deg) skewX(-20deg); color: red}
    50% {transform:rotate(180deg) skewX(50deg); color: yellow}
    100% {transform:rotate(360deg) skewX(-20deg); color: red}
}

.createForm, .categorySelect {
    display: block;
    margin-bottom: .75rem;
}

.submitButton {
    margin-left: .25rem;
}

.categoryName {
    color: rgb(32,32,32);
    font-size: 14px;
    margin-bottom: .5rem;
}

.postName {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: .75rem;
}

.editPost, .deletePost {
    font-family: inherit;
    background: white;
    border: 1px solid #CCCCCC;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 14px;
    font-weight: 600;
    min-width: 80px;
}

.editPost {
    color: #3498db;
}

.deletePost {
    color: #e74c3c;
}

.postActions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.commentHeader {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: .5rem;
}

.author {
    margin-bottom: .33rem;
}

.comment {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    background-color: rgb(231,231,231);
    margin-bottom: 1rem;
    padding: .75rem;
    border-radius: 0.75rem;
    box-sizing: border-box;
    width: max-content;
}

.commentInfo {
    align-items: center;
    display: flex;
    margin-bottom: .5rem;
}

.commentAuthor {
    font-weight: 600;
    margin-right: .5rem;
}

.commentDate {
    font-size: 12px;
}

.commentActions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
}


.commentActions > button {
	font-size: 12px;
}