:root {
    --grey : #969896;
    --red : #cc6666;
    --blue : #81a2be;
    --white : #f4f4f4;
    --black : #1d1f21;
}

::selection {
    background: var(--black);
    color: var(--white);
}

html, body {
    margin: 0;
    padding: 0;
    color : var(--black);
    font-family: monospace;
    font-smooth: none;
    -webkit-font-smoothing : none;
    display: flex;
    width: 100dvw;
    flex-direction: column;
    align-items: center;  
}

#postcontainer, .text, .footer {
    width: 40dvw;
}

.footer {
  display: flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  margin-top: 20px;
}

blockquote {
  border-left: 4px solid #ccc;
  margin-bottom: 5px;
  margin-top: 5px;
  padding-left: 16px;
}


.textstuff {
    margin: 10px;
}

.post {
    margin: 10px;
}

.post h2 {
    margin: 0 0 5px 0; 
    color: var(--green);
}

.date {
    color: var(--grey);
}

.tags {
    color: var(--red);
}

img {
    max-width: 100%;
    height: auto;
}

hr {
    width: 100%; 
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Centered modal box */
.modal-content {
  background: #ffffff;
  width: 300px;
  padding: 20px;
  border: 1px black solid;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Close button (X) */
.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
  position: relative;
  top: -15px;
}

.modal-content .titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-content textarea {
height: 150px; 
}

/* Form inputs */
.modal-content input,
.modal-content textarea,
.modal-content button {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}



@media (max-width: 800px) {
    #postcontainer, .text, .footer {
        width: 100dvw;
    }
}


