@font-face {
    font-family: "Twitter Chirp";
    src: url("/font/tweet/chirp-regular-web.woff");
    font-weight: normal;
}
@font-face {
    font-family: "Twitter Chirp";
    src: url("/font/tweet/chirp-medium-web.woff");
    font-weight: 500;
}
@font-face {
    font-family: "Twitter Chirp";
    src: url("/font/tweet/chirp-bold-web.woff");
    font-weight: bold;
}
@font-face {
    font-family: "Twitter Chirp";
    src: url("/font/tweet/chirp-heavy-web.woff");
    font-weight: 900;
}
@media (prefers-color-scheme:light) {
  :root {
    --backgroundcolor: #ffffff;
    --secondarycolor: #ebeef0;
    --textcolor: #000000;
    --textcolor2: #5b7083;
    --tertiarycolor: #f7f8fa;
    --bluecolor: #1da1f2;
  }
}
@media (prefers-color-scheme:dark) {
  :root {
    --backgroundcolor: #15202b;
    --secondarycolor: #38444d;
    --textcolor: #ffffff;
    --textcolor2: #8899a6;
    --tertiarycolor: #1d2733;
    --bluecolor: #1da1f2;
  }
}
@media (orientation:landscape) {
  :root {
    --smallfont: 1rem;
    --contentfont: 1.25rem;
    --fakebuttonsize: 24px;
    --buttontext: 1.25rem;
  }
  .tweetMain {
    border: 2px solid var(--secondarycolor);
  }
}
@media (orientation:portrait) {
  :root {
    --smallfont: 0.75rem;
    --contentfont: 1rem;
    --fakebuttonsize: 20px;
    --buttontext: 1rem;
  }
}
p {
  margin: 0;
}
#main {
  display: flex;
  flex-direction: column;
  min-height: 75vh;
  justify-content: space-between;
}
.tweetMain {
  position: relative;
  width: calc(100vw - 2rem);
  max-width: 600px;
  padding: 1rem;
  background-color: var(--backgroundcolor);
  font-family: "Twitter Chirp", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}
.tweetMain * {
  font-family: "Twitter Chirp", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}
.tweetProfile {
  display: flex;
}
.tweetProfile img {
  width: 3em;
  height: 3em;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin: 0.5em 0.5em 0.5em 0;
  cursor: pointer;
  background-image: url(/img/tweet/default-pfp.webp);
  background-position: center;
  background-size: cover;
}
.tweetProfile div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25em;
  max-width: 15em;
  height: 3em;
  margin: 0.5em 0.25em;
}
.username {
  position: relative;
  display: flex;
  font-size: var(--smallfont);
  font-weight: bold;
  word-break: break-all;
}
.handle {
  color: var(--textcolor2);
  font-size: var(--smallfont);
  word-break: break-all;
}
.tweetSettings {
  position: absolute;
  top: 1em;
  right: 1em;
}
.tweetSettings svg {
  fill: var(--textcolor2);
  width: 1.5em;
  height: 1.5em;
}
.tweetContent p {
  font-size: var(--contentfont);
  margin: 0.5em 0;
  line-height: 1.25em;
}
.tweetContent img {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--secondarycolor);
  border-radius: 1em;
  margin-bottom: 1em;
}
.tweetDetails {
  margin: 1em 0;
}
.tweetDetails p {
  color: var(--textcolor2);
  font-size: var(--smallfont);
}
.tweetStats {
  display: flex;
  gap: 1em;
  border-top: 1px solid var(--secondarycolor);
  padding: 1em 0;
}
.tweetStats p {
  font-size: var(--smallfont);
  color: var(--textcolor2);
}
.tweetNumber {
  font-weight: bold;
  color: var(--textcolor);
}
.tweetButtons {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--secondarycolor);
  padding: 1em 0;
}
.tweetButton {
  width: var(--fakebuttonsize);
  height: var(--fakebuttonsize);
  fill: var(--textcolor2);
}
.tweetBottomButton {
  background: var(--secondarycolor);
  background-image: none;
  padding: 0.75em 0;
  margin: 0;
  width: 10em;
  border: none;
  border-radius: 500px;
  font-size: var(--buttontext);
  font-family: "Twitter Chirp", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  font-weight: bold;
  box-shadow: none;
}
#tweetButton {
  background: var(--bluecolor);
  color: #ffffff;
}
button.tweetBottomButton:hover {
  background: var(--secondarycolor);
  background-image: none;
  box-shadow: 0.25em 0.25em 0.5em var(--shadowcolor);
}
#tweetButton:hover {
  box-shadow: 0.25em 0.25em 0.5em var(--shadowcolor);
}
#verified {
  display: none;
}
#verified svg {
  position: relative;
  width: 1.5em;
  height: 1em;
  fill: var(--bluecolor);
}
.tweetContext {
  display: none;
  border: 1px solid var(--secondarycolor);
  border-radius: 1em;
  overflow: hidden;
}
.contextHeader {
  max-width: 100%;
  background: var(--tertiarycolor);
  padding: 1em;
  font-size: var(--smallfont);
  font-weight: bold;
}
.contextHeader svg {
  position: relative;
  fill: var(--bluecolor);
  width: 1em;
  height: 1em;
  bottom: -2px;
}
#context {
  margin: 1em;
  font-size: var(--smallfont);
}
.contextFooter {
  position: relative;
  font-size: var(--smallfont);
  font-weight: bold;
  color: var(--textcolor2);
  padding: 1em;
  border-top: 1px solid var(--secondarycolor);
}
.contextRate {
  position: absolute;
  right: 0.75em;
  bottom: 0.75em;
  padding: 0.25em 0.75em;
  font-size: var(--smallfont);
  color: var(--textcolor);
  border: 1px solid var(--secondarycolor);
  border-radius: 1em;
}
input {
  display: none;
}
.linkText {
  color: var(--bluecolor);
}
.copyright {
  margin: 0.5rem;
}
#tweetResult {
  display: none;
}
#tweetResult p {
  font-family: "Twitter Chirp", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  font-size: var(--contentfont);
  margin: 1em 0;
}
#resultImage {
  width: calc(100vw - 2rem);
  max-width: 600px;
  border: 2px dashed var(--secondarycolor);
}