
/* Page layout belongs to /css/style.css and /css/blog.css. */

#postcontainer,
.text,
.footer {
  width: 100%;
  max-width: 650px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

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

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

.post-link > a {
  text-transform: uppercase;
  color: #ff00aa;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
}

a {
  color: #ff00aa;
}

.post h1 {
  text-transform: uppercase;
}

.textstuff {
  margin: 10px;
}

.post {
  margin: 10px 0;
}

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

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

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

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

hr {
  width: 100%;
}

/* Bloggable content containment */

#postcontainer .post,
#postcontainer .content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

#postcontainer iframe,
#postcontainer video,
#postcontainer img {
  max-width: 100%;
}

#postcontainer pre {
  max-width: 100%;
  overflow-x: auto;
}

/* Ask box */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

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

.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;
}

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