
@font-face {
  font-family: SourceCodePro;
  font-weight: normal;
  src: url("/fonts/SourceCodePro-Regular.otf") format("opentype");
}
body {
  font-family: SourceCodePro, "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.5em;
}
#search-input {
  font-size: 1.5em;
  width: 100%;
}
.search_time {
  margin-top: 4px;
  font-weight: bold;
  font-size: 0.75rem;
}
.search_text {
  display: inline;
}
.search_link {
  display: inline;
}
#sorting {
  margin-top: 8px;
  line-height: 1.7em;
}
.sort-button {
  font-size: 1.0em;
}
.wrapper {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  word-wrap: break-word;
}
.flex-wrap {
  display: flex;
  flex-direction: column;
}
.tweet {
    background-color: #e8e8e8;
    max-width: 600px;
    padding: 16px;
    font-family: 'Input Mono', SourceCodePro, "Courier New", Courier, monospace;
    font-size: 1rem;
    border: 2px solid black;
    border-radius: 16px;
}
.tweet img {
  max-height: 100%;
  vertical-align: bottom;
  width: 100%;
  object-fit: cover;
}
.tweet video {
  max-height: 100%;
  vertical-align: bottom;
  width: 100%;
}
.tweet ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  gap: 8px;
  padding-left: 0px;
  margin-bottom: 0px;
}
.tweet li {
  height: 20vh;
  width: 20vh;
  flex-grow: 1;
}
.tweet .display_name {
  margin-bottom: 0;
  margin-top: 0;
}
.tweet .user_name {
  margin-top: 4px;
}
.tweet .favorite_count {
  display: inline-block;
  margin-bottom: 0;
}
.tweet .retweet_count {
  display: inline-block;
  margin-left: 16px;
  margin-bottom: 0;
}
.tweet .created_at {
  margin-bottom: 0;
  font-weight: bold;
}
.tweet .permalink {
  margin-left: 16px;
}
.child {
  margin-top: 16px;
  margin-left: 64px;
  max-width: calc(600px - 64px);
  background-color: white;
}
.parent {
  margin-bottom: 16px;
  margin-right: 64px;
  max-width: calc(600px - 64px);
  background-color: white;
}
@media screen and (max-width: 599px) {
  .tweet li {
    height: 15vh;
    width: 15vh;
    flex-grow: 1;
  }
}
@media(prefers-color-scheme: dark) {
  body {
    background-color: #eee;
    color: #333;
  }
  a {
    color: #c00;
    text-decoration: none;
  }
  a:hover {
    color: #fff;
    text-decoration: none;
    background-color: #999;
  }
  .tweet {
    background-color: #eee;
    border: 1px solid gray; /*#33ff00;*/
    border-radius: 5px;
  }
  .child {
    background-color: #ddd;
  }
  .parent {
    background-color: #ddd;
  }
  button {
    background-color: white;
    color: black;
    border: 1px solid gray;
    padding: 0.25rem 0.5rem;
    font-family: 'Input Mono', SourceCodePro, "Courier New", Courier, monospace;
    cursor: pointer;
  }
  button:hover {
    color: white;
    background-color: black;
  }
  input {
    background-color: white;
    color: black;
    border: 1px solid gray;
    font-family: 'Input Mono', SourceCodePro, "Courier New", Courier, monospace;
  }
  .tweet .favorite_count {
    color: #333;
  }
  .tweet .retweet_count {
    color: #333;
  }
  .tweet .created_at {
    color: #333;
  }
}
#tabs {
  margin: -16px 0 0;
}
.tab:first-child {
  margin-left: -16px;
  border-top-left-radius: 4px;
}
.hr {
  margin: 0 -16px 16px -16px;
  border: 0.1px solid gray;
}
.tab {
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  padding: 4px 10px;
  border-right: 1px solid black;
  text-decoration: underline;
  box-sizing: border-box;
}
.tab.active {
  text-decoration: none;
  background-color: #eee;
}
.tab.active:hover {
  text-decoration: none;
  color: white;
  background-color: black;
}
#browse-sort > button {
  font-size: 1.0em;
}
#page-num {
  font-size: 1.0em;
  width: 80px;
}
#browse-sort {
  line-height: 1.7em;
}
#paging {
  margin: 8px 0;
}
.search_divider {
  border: 0.1px solid gray;
  margin: 2rem 0;
}
