* {
  box-sizing: border-box;
}

html,
body {
  background-color: #fff;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Space Mono", monospace;
  padding: 35px;
}

body#scribble {
  display: block;
  padding: 0;
}

main {
  flex: 1 0 auto;
}

a {
  color: #0000FF;
}

textarea,
input,
select,
button {
  font-family: "Space Mono", monospace;
}

.site-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 35px;
}
.site-header nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 18px;
}

.logo {
  align-items: center;
  color: #0000FF;
  display: inline-flex;
  font-size: 22px;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid #eee;
  display: flex;
  font-size: 13px;
  gap: 18px;
  margin-top: 35px;
  padding-top: 16px;
}

.flashes {
  background-color: rgb(77.5984443364%, 97.3035164479%, 93.8810565549%);
  border-left: 4px solid #1AD8B7;
  list-style: none;
  margin: 0 0 35px;
  padding: 10px 14px;
}

button,
.button {
  background-color: #0000FF;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  line-height: 47px;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
  min-width: 173px;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
  background-color: #0000cc;
}

.button.secondary {
  background-color: #fff;
  border: 1px solid #0000FF;
  color: #0000FF;
  margin-left: 10px;
}

button.danger {
  background-color: #c0262d;
}

button.link {
  background: none;
  color: #0000FF;
  font-size: inherit;
  line-height: inherit;
  min-width: 0;
  padding: 0;
  text-decoration: underline;
}
button.link.danger {
  color: #c0262d;
}

form.inline {
  display: inline;
}

form.stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}
form.stacked label {
  font-weight: 700;
  margin-top: 10px;
}
form.stacked input,
form.stacked select,
form.stacked textarea {
  border: 1px solid #0000FF;
  font-size: 14px;
  padding: 10px;
}
form.stacked button {
  align-self: flex-start;
  margin-top: 16px;
}

.hint {
  color: #666;
  font-size: 0.85em;
  font-weight: 400;
}

.error {
  color: #c0262d;
  margin: 0;
}

.hp {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.prose {
  line-height: 1.6;
  max-width: 720px;
}
.prose h1 {
  font-size: 26px;
  line-height: 1.3;
}
.prose h2 {
  font-size: 18px;
  margin-top: 2em;
}
.prose pre {
  background-color: #f0f0f0;
  border-radius: 4px;
  font-size: 13px;
  overflow-x: auto;
  padding: 10px;
}

.error-page {
  margin-top: 40px;
}
.error-page .error-code {
  color: #666;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  text-transform: uppercase;
}
.error-page h1 {
  margin-top: 0.4em;
}

.warning {
  background-color: #fff4f4;
  border-left: 4px solid #c0262d;
  font-size: 14px;
  padding: 4px 14px;
}
.warning ul {
  padding-left: 20px;
}

.scribble-actions {
  align-items: center;
  display: flex;
  gap: 24px;
}

.expiry {
  align-items: center;
  border: 0;
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.expiry legend {
  float: left;
  margin-right: 4px;
  padding: 0;
}
.expiry input,
.expiry select {
  border: 1px solid #0000FF;
  font-size: 14px;
  padding: 6px 8px;
}
.expiry input {
  width: 5em;
}

form.extend {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
form.extend button {
  line-height: 34px;
  min-width: 0;
  padding: 0 16px;
}

.change-expiry {
  display: inline-block;
  margin-right: 6px;
  position: relative;
}
.change-expiry summary {
  color: #0000FF;
  cursor: pointer;
  display: inline;
  list-style: none;
  text-decoration: underline;
}
.change-expiry summary::-webkit-details-marker {
  display: none;
}
.change-expiry[open] form.extend {
  background-color: #fff;
  border: 1px solid #0000FF;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-wrap: nowrap;
  margin: 0;
  padding: 10px 12px;
  position: absolute;
  right: 0;
  top: 1.8em;
  white-space: nowrap;
  z-index: 1;
}

body.full .warning {
  margin-bottom: 16px;
}

form.bulk {
  align-items: center;
  background-color: #fff4f4;
  border-left: 4px solid #c0262d;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 14px;
}
form.bulk button {
  line-height: 38px;
}

table.list tr.expired td {
  color: #666;
}

table.list .secrets {
  color: #c0262d;
  font-weight: bold;
}

table.list .none {
  color: #666;
}

nav.filter {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px;
}

.notice {
  border: 2px solid #1AD8B7;
  border-radius: 4px;
  margin: 20px 0;
  padding: 0 14px;
}

table.list {
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 20px;
  width: 100%;
}
table.list th,
table.list td {
  border-bottom: 1px solid #eee;
  padding: 8px 10px 8px 0;
  text-align: left;
}

nav.pages {
  display: flex;
  font-size: 14px;
  gap: 16px;
  justify-content: space-between;
  margin-top: 16px;
}
nav.pages .older {
  margin-left: auto;
}

body.full {
  height: 100%;
}
body.full main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.scribble-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 35px;
}
.scribble-form textarea {
  border: 1px solid #0000FF;
  flex: 1;
  font-size: 12px;
  min-height: 320px;
  outline: none;
  padding: 10px;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .scribble-form textarea {
    max-width: 1024px;
  }
}

.scribble-toolbar {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.scribble-toolbar a,
.scribble-toolbar strong {
  margin-right: 6px;
}

.scribble-frame {
  border: none;
  flex: 1;
  min-height: 60vh;
  width: 100%;
}

figure {
  margin: 0;
  padding: 0;
}

/* for block of numbers */
.hljs-ln-numbers {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: right;
  color: #ccc;
  border-right: 1px solid #CCC;
  vertical-align: top;
  padding-right: 5px;
}

/* for block of code */
.hljs-ln-code {
  padding-left: 10px !important;
}

.hljs-ln-n {
  padding-right: 5px !important;
}

.hljs-ln .hljs-ln-line {
  white-space: pre;
}
